Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: chrome/test/perf/sunspider_uitest.js

Issue 7578004: Move more files from chrome/test to chrome/test/base, part #7 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/perf/sunspider_uitest.cc ('k') | chrome/test/perf/tab_switching_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 */ 5 */
6 6
7 // Automation utilities for running SunSpider as a UI test. 7 // Automation utilities for running SunSpider as a UI test.
8 8
9 function Automation() { 9 function Automation() {
10 } 10 }
11 11
12 Automation.prototype.SetDone = function() { 12 Automation.prototype.SetDone = function() {
13 document.cookie = '__done=1; path=/'; 13 document.cookie = '__done=1; path=/';
14 } 14 }
15 15
16 Automation.prototype.GetTotal = function() { 16 Automation.prototype.GetTotal = function() {
17 // Calculated in sunspider-analyze-results.js. 17 // Calculated in sunspider-analyze-results.js.
18 return mean + ',' + stdDev; 18 return mean + ',' + stdDev;
19 } 19 }
20 20
21 Automation.prototype.GetResults = function() { 21 Automation.prototype.GetResults = function() {
22 var results = {}; 22 var results = {};
23 23
24 var input = eval("(" + decodeURI(location.search.substring(1)) + ")"); 24 var input = eval("(" + decodeURI(location.search.substring(1)) + ")");
25 for (test in input) 25 for (test in input)
26 results[test] = input[test].toString(); 26 results[test] = input[test].toString();
27 27
28 return results; 28 return results;
29 } 29 }
30 30
31 automation = new Automation(); 31 automation = new Automation();
OLDNEW
« no previous file with comments | « chrome/test/perf/sunspider_uitest.cc ('k') | chrome/test/perf/tab_switching_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698