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 from telemetry import benchmark | 4 from telemetry import benchmark |
5 from telemetry.page import page | 5 from telemetry.page import page |
6 from telemetry.page import page_set | 6 from telemetry.page import page_set |
7 from telemetry.page import page_test | 7 from telemetry.page import page_test |
8 | 8 |
9 from webgl_conformance import conformance_harness_script | 9 from webgl_conformance import conformance_harness_script |
10 from webgl_conformance import conformance_path | 10 from webgl_conformance import conformance_path |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 super(WebglRobustnessPage, self).RunNavigateSteps(action_runner) | 58 super(WebglRobustnessPage, self).RunNavigateSteps(action_runner) |
59 action_runner.WaitForJavaScriptCondition('webglTestHarness._finished') | 59 action_runner.WaitForJavaScriptCondition('webglTestHarness._finished') |
60 | 60 |
61 class WebglRobustness(benchmark.Benchmark): | 61 class WebglRobustness(benchmark.Benchmark): |
62 test = WebglConformanceValidator | 62 test = WebglConformanceValidator |
63 | 63 |
64 @classmethod | 64 @classmethod |
65 def Name(cls): | 65 def Name(cls): |
66 return 'webgl_robustness' | 66 return 'webgl_robustness' |
67 | 67 |
68 def CreatePageSet(self, options): | 68 def CreateStorySet(self, options): |
69 ps = page_set.PageSet( | 69 ps = page_set.PageSet( |
70 base_dir=conformance_path, | 70 base_dir=conformance_path, |
71 serving_dirs=['']) | 71 serving_dirs=['']) |
72 ps.AddUserStory(WebglRobustnessPage(ps, ps.base_dir)) | 72 ps.AddUserStory(WebglRobustnessPage(ps, ps.base_dir)) |
73 return ps | 73 return ps |
OLD | NEW |