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 WebglConformanceValidator | |
10 from webgl_conformance import conformance_harness_script | 9 from webgl_conformance import conformance_harness_script |
11 from webgl_conformance import conformance_path | 10 from webgl_conformance import conformance_path |
| 11 from webgl_conformance import WebglConformanceValidator |
12 | 12 |
13 | 13 |
14 robustness_harness_script = conformance_harness_script + r""" | 14 robustness_harness_script = conformance_harness_script + r""" |
15 var robustnessTestHarness = {}; | 15 var robustnessTestHarness = {}; |
16 robustnessTestHarness._contextLost = false; | 16 robustnessTestHarness._contextLost = false; |
17 robustnessTestHarness.initialize = function() { | 17 robustnessTestHarness.initialize = function() { |
18 var canvas = document.getElementById('example'); | 18 var canvas = document.getElementById('example'); |
19 canvas.addEventListener('webglcontextlost', function() { | 19 canvas.addEventListener('webglcontextlost', function() { |
20 robustnessTestHarness._contextLost = true; | 20 robustnessTestHarness._contextLost = true; |
21 }); | 21 }); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 CreatePageSet(self, options): |
69 ps = page_set.PageSet( | 69 ps = page_set.PageSet( |
70 file_path=conformance_path, | 70 file_path=conformance_path, |
71 user_agent_type='desktop', | 71 user_agent_type='desktop', |
72 serving_dirs=['']) | 72 serving_dirs=['']) |
73 ps.AddUserStory(WebglRobustnessPage(ps, ps.base_dir)) | 73 ps.AddUserStory(WebglRobustnessPage(ps, ps.base_dir)) |
74 return ps | 74 return ps |
OLD | NEW |