| 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 # pylint: disable=W0401,W0614 | |
| 9 from telemetry.page.actions.all_page_actions import * | |
| 10 | 8 |
| 11 from webgl_conformance import WebglConformanceValidator | 9 from webgl_conformance import WebglConformanceValidator |
| 12 from webgl_conformance import conformance_harness_script | 10 from webgl_conformance import conformance_harness_script |
| 13 from webgl_conformance import conformance_path | 11 from webgl_conformance import conformance_path |
| 14 | 12 |
| 15 | 13 |
| 16 robustness_harness_script = conformance_harness_script + r""" | 14 robustness_harness_script = conformance_harness_script + r""" |
| 17 var robustnessTestHarness = {}; | 15 var robustnessTestHarness = {}; |
| 18 robustnessTestHarness._contextLost = false; | 16 robustnessTestHarness._contextLost = false; |
| 19 robustnessTestHarness.initialize = function() { | 17 robustnessTestHarness.initialize = function() { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 class WebglRobustness(benchmark.Benchmark): | 61 class WebglRobustness(benchmark.Benchmark): |
| 64 test = WebglConformanceValidator | 62 test = WebglConformanceValidator |
| 65 | 63 |
| 66 def CreatePageSet(self, options): | 64 def CreatePageSet(self, options): |
| 67 ps = page_set.PageSet( | 65 ps = page_set.PageSet( |
| 68 file_path=conformance_path, | 66 file_path=conformance_path, |
| 69 user_agent_type='desktop', | 67 user_agent_type='desktop', |
| 70 serving_dirs=['']) | 68 serving_dirs=['']) |
| 71 ps.AddPage(WebglRobustnessPage(ps, ps.base_dir)) | 69 ps.AddPage(WebglRobustnessPage(ps, ps.base_dir)) |
| 72 return ps | 70 return ps |
| OLD | NEW |