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

Side by Side Diff: tools/perf/benchmarks/sunspider.py

Issue 24451002: [telemetry] Support absolute paths by changing file:/// to file://. More robust file path handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test on mac, apparently /tmp is a symlink to /private/tmp Created 7 years, 2 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 | « tools/perf/benchmarks/spaceport.py ('k') | tools/perf/page_sets/blank_page.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import collections 4 import collections
5 import json 5 import json
6 import os 6 import os
7 7
8 from telemetry import test 8 from telemetry import test
9 from telemetry.core import util 9 from telemetry.core import util
10 from telemetry.page import page_measurement 10 from telemetry.page import page_measurement
(...skipping 28 matching lines...) Expand all
39 39
40 class Sunspider(test.Test): 40 class Sunspider(test.Test):
41 """Apple's SunSpider JavaScript benchmark.""" 41 """Apple's SunSpider JavaScript benchmark."""
42 test = SunspiderMeasurement 42 test = SunspiderMeasurement
43 43
44 def CreatePageSet(self, options): 44 def CreatePageSet(self, options):
45 sunspider_dir = os.path.join(util.GetChromiumSrcDir(), 45 sunspider_dir = os.path.join(util.GetChromiumSrcDir(),
46 'chrome', 'test', 'data', 'sunspider') 46 'chrome', 'test', 'data', 'sunspider')
47 return page_set.PageSet.FromDict( 47 return page_set.PageSet.FromDict(
48 { 48 {
49 'serving_dirs': [''], 49 'serving_dirs': ['.'],
50 'pages': [{ 'url': 'file:///sunspider-1.0/driver.html' }], 50 'pages': [{ 'url': 'file://sunspider-1.0/driver.html' }],
51 }, 51 },
52 sunspider_dir) 52 sunspider_dir)
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/spaceport.py ('k') | tools/perf/page_sets/blank_page.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698