| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 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 metrics import power | 8 from metrics import power |
| 9 from telemetry import test | 9 from telemetry import test |
| 10 from telemetry.page import page_measurement | 10 from telemetry.page import page_measurement |
| 11 from telemetry.page import page_set | 11 from telemetry.page import page_set |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 """Apple's SunSpider JavaScript benchmark.""" | 55 """Apple's SunSpider JavaScript benchmark.""" |
| 56 test = _SunspiderMeasurement | 56 test = _SunspiderMeasurement |
| 57 | 57 |
| 58 def CreatePageSet(self, options): | 58 def CreatePageSet(self, options): |
| 59 ps = page_set.PageSet( | 59 ps = page_set.PageSet( |
| 60 archive_data_file='../page_sets/data/sunspider.json', | 60 archive_data_file='../page_sets/data/sunspider.json', |
| 61 make_javascript_deterministic=False, | 61 make_javascript_deterministic=False, |
| 62 file_path=os.path.abspath(__file__)) | 62 file_path=os.path.abspath(__file__)) |
| 63 ps.AddPageWithDefaultRunNavigate(_URL) | 63 ps.AddPageWithDefaultRunNavigate(_URL) |
| 64 return ps | 64 return ps |
| OLD | NEW |