diff options
author | patrick@chromium.org <patrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-30 23:28:32 +0000 |
---|---|---|
committer | patrick@chromium.org <patrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-30 23:28:32 +0000 |
commit | 70e0acd2223d7a2f36aa0552112ed7f80ca32b87 (patch) | |
tree | 9cd51e69703410c5ed905fd7af4f825692cde3d3 /chrome/test/data/sunspider | |
parent | 2da8d317072968241f986ffed0be477900831889 (diff) | |
download | chromium_src-70e0acd2223d7a2f36aa0552112ed7f80ca32b87.zip chromium_src-70e0acd2223d7a2f36aa0552112ed7f80ca32b87.tar.gz chromium_src-70e0acd2223d7a2f36aa0552112ed7f80ca32b87.tar.bz2 |
- Add UI test for the V8 Benchmark Suite.
- Modify the V8 Benchmark Suite to work with the UI test framework.
- Add utils for JavaScript UI tests.
- Move automation.js files for SunSpider and V8 Benchmark to the
src/chrome/test/ui directory.
- Overload UITest::PrintResult for convenience.
BUG=9255
Review URL: http://codereview.chromium.org/42628
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12823 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/sunspider')
-rw-r--r-- | chrome/test/data/sunspider/README.chromium | 4 | ||||
-rw-r--r-- | chrome/test/data/sunspider/automation.js | 31 | ||||
-rw-r--r-- | chrome/test/data/sunspider/sunspider-results.html | 2 |
3 files changed, 3 insertions, 34 deletions
diff --git a/chrome/test/data/sunspider/README.chromium b/chrome/test/data/sunspider/README.chromium index eda84cd..8dd5c82 100644 --- a/chrome/test/data/sunspider/README.chromium +++ b/chrome/test/data/sunspider/README.chromium @@ -8,8 +8,8 @@ http://webkit.org/perf/sunspider-0.9/sunspider.html Version: 0.9 Modifications: - - Added automation.js to provide an interface between the benchmark and the - test automation. Included this file in sunspider-results.html. + - Included sunspider_uitest.js in sunspider-results.html. This file provides + an interface between the benchmark and the test automation. - Added json2.js, a parser/stringifier for JSON in JavaScript. This is used to stringify results for consumption by the test automation. Included this file in sunspider-results.html. diff --git a/chrome/test/data/sunspider/automation.js b/chrome/test/data/sunspider/automation.js deleted file mode 100644 index 342d88e..0000000 --- a/chrome/test/data/sunspider/automation.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - Copyright (c) 2009 The Chromium Authors. All rights reserved. - Use of this source code is governed by a BSD-style license that can be - found in the LICENSE file. -*/ - -// Automation utilities. - -function Automation() { -} - -Automation.prototype.SetDone = function() { - document.cookie = '__done=1; path=/'; -} - -Automation.prototype.GetTotal = function() { - // Calculated in sunspider-analyze-results.js. - return mean + ',' + stdDev; -} - -Automation.prototype.GetResults = function() { - var results = {}; - - var input = eval("(" + decodeURI(location.search.substring(1)) + ")"); - for (test in input) - results[test] = input[test].toString(); - - return results; -} - -automation = new Automation(); diff --git a/chrome/test/data/sunspider/sunspider-results.html b/chrome/test/data/sunspider/sunspider-results.html index a0458e9..1bafe53 100644 --- a/chrome/test/data/sunspider/sunspider-results.html +++ b/chrome/test/data/sunspider/sunspider-results.html @@ -76,7 +76,7 @@ function print(str) { <script src="sunspider-compare-results.js"></script> <script src="json2.js"></script> -<script src="automation.js"></script> +<script src="../../ui/sunspider_uitest.js"></script> <script> // At this point the analysis is complete (see sunspider-analyze-results.js). |