summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/sunspider
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/data/sunspider')
-rw-r--r--chrome/test/data/sunspider/README.chromium4
-rw-r--r--chrome/test/data/sunspider/automation.js31
-rw-r--r--chrome/test/data/sunspider/sunspider-results.html2
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).