OLD | NEW |
1 # Copyright 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 | 4 |
5 import math | 5 import math |
6 import os | 6 import os |
7 | 7 |
8 from core import perf_benchmark | 8 from core import perf_benchmark |
9 | 9 |
10 from telemetry import benchmark | 10 from telemetry import benchmark |
11 from telemetry import page as page_module | 11 from telemetry import page as page_module |
12 from telemetry.page import page_test | 12 from telemetry.page import legacy_page_test |
13 from telemetry import story | 13 from telemetry import story |
14 from telemetry.value import scalar | 14 from telemetry.value import scalar |
15 | 15 |
16 from metrics import power | 16 from metrics import power |
17 | 17 |
18 | 18 |
19 class _DromaeoMeasurement(page_test.PageTest): | 19 class _DromaeoMeasurement(legacy_page_test.LegacyPageTest): |
20 | 20 |
21 def __init__(self): | 21 def __init__(self): |
22 super(_DromaeoMeasurement, self).__init__() | 22 super(_DromaeoMeasurement, self).__init__() |
23 self._power_metric = None | 23 self._power_metric = None |
24 | 24 |
25 def CustomizeBrowserOptions(self, options): | 25 def CustomizeBrowserOptions(self, options): |
26 power.PowerMetric.CustomizeBrowserOptions(options) | 26 power.PowerMetric.CustomizeBrowserOptions(options) |
27 | 27 |
28 def WillStartBrowser(self, platform): | 28 def WillStartBrowser(self, platform): |
29 self._power_metric = power.PowerMetric(platform) | 29 self._power_metric = power.PowerMetric(platform) |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 """Dromaeo CSS Query jquery JavaScript benchmark. | 327 """Dromaeo CSS Query jquery JavaScript benchmark. |
328 | 328 |
329 Tests traversing a DOM structure using the Prototype JavaScript Library. | 329 Tests traversing a DOM structure using the Prototype JavaScript Library. |
330 """ | 330 """ |
331 tag = 'cssqueryjquery' | 331 tag = 'cssqueryjquery' |
332 query_param = 'cssquery-jquery' | 332 query_param = 'cssquery-jquery' |
333 | 333 |
334 @classmethod | 334 @classmethod |
335 def Name(cls): | 335 def Name(cls): |
336 return 'dromaeo.cssqueryjquery' | 336 return 'dromaeo.cssqueryjquery' |
OLD | NEW |