| 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 test | 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 # pylint: disable=W0401,W0614 | 8 # pylint: disable=W0401,W0614 |
| 9 from telemetry.page.actions.all_page_actions import * | 9 from telemetry.page.actions.all_page_actions import * |
| 10 | 10 |
| 11 from webgl_conformance import WebglConformanceValidator | 11 from webgl_conformance import WebglConformanceValidator |
| 12 from webgl_conformance import conformance_harness_script | 12 from webgl_conformance import conformance_harness_script |
| 13 from webgl_conformance import conformance_path | 13 from webgl_conformance import conformance_path |
| 14 | 14 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 super(WebglRobustnessPage, self).__init__( | 53 super(WebglRobustnessPage, self).__init__( |
| 54 url='file://extra/lots-of-polys-example.html', | 54 url='file://extra/lots-of-polys-example.html', |
| 55 page_set=page_set, | 55 page_set=page_set, |
| 56 base_dir=base_dir) | 56 base_dir=base_dir) |
| 57 self.script_to_evaluate_on_commit = robustness_harness_script | 57 self.script_to_evaluate_on_commit = robustness_harness_script |
| 58 | 58 |
| 59 def RunNavigateSteps(self, action_runner): | 59 def RunNavigateSteps(self, action_runner): |
| 60 action_runner.NavigateToPage(self) | 60 action_runner.NavigateToPage(self) |
| 61 action_runner.WaitForJavaScriptCondition('webglTestHarness._finished') | 61 action_runner.WaitForJavaScriptCondition('webglTestHarness._finished') |
| 62 | 62 |
| 63 class WebglRobustness(test.Test): | 63 class WebglRobustness(benchmark.Benchmark): |
| 64 test = WebglConformanceValidator | 64 test = WebglConformanceValidator |
| 65 | 65 |
| 66 def CreatePageSet(self, options): | 66 def CreatePageSet(self, options): |
| 67 ps = page_set.PageSet( | 67 ps = page_set.PageSet( |
| 68 file_path=conformance_path, | 68 file_path=conformance_path, |
| 69 user_agent_type='desktop', | 69 user_agent_type='desktop', |
| 70 serving_dirs=['']) | 70 serving_dirs=['']) |
| 71 ps.AddPage(WebglRobustnessPage(ps, ps.base_dir)) | 71 ps.AddPage(WebglRobustnessPage(ps, ps.base_dir)) |
| 72 return ps | 72 return ps |
| OLD | NEW |