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

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

Issue 258603004: Get rid of FromDict from robohornet_pro, scirra, spaceport, sunspider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « tools/perf/benchmarks/scirra.py ('k') | tools/perf/benchmarks/sunspider.py » ('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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 4
5 """Runs spaceport.io's PerfMarks benchmark.""" 5 """Runs spaceport.io's PerfMarks benchmark."""
6 6
7 import logging 7 import logging
8 import os 8 import os
9 9
10 from metrics import power 10 from metrics import power
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 # crbug.com/166703: This test frequently times out on Windows. 67 # crbug.com/166703: This test frequently times out on Windows.
68 @test.Disabled('mac', 'win') 68 @test.Disabled('mac', 'win')
69 class Spaceport(test.Test): 69 class Spaceport(test.Test):
70 """spaceport.io's PerfMarks benchmark.""" 70 """spaceport.io's PerfMarks benchmark."""
71 test = _SpaceportMeasurement 71 test = _SpaceportMeasurement
72 72
73 def CreatePageSet(self, options): 73 def CreatePageSet(self, options):
74 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', 74 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test',
75 'data', 'third_party', 'spaceport') 75 'data', 'third_party', 'spaceport')
76 return page_set.PageSet.FromDict( 76 ps = page_set.PageSet(file_path=spaceport_dir)
77 {'pages': [{'url': 'file://index.html'}]}, 77 ps.AddPageWithDefaultRunNavigate('file://index.html')
78 spaceport_dir) 78 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/scirra.py ('k') | tools/perf/benchmarks/sunspider.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698