OLD | NEW |
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 Loading... |
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) |
OLD | NEW |