| 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_test | |
| 7 from telemetry.story import story_set as story_set_module | 6 from telemetry.story import story_set as story_set_module |
| 8 | 7 |
| 9 from webgl_conformance import conformance_harness_script | 8 from gpu_tests.webgl_conformance import conformance_harness_script, \ |
| 10 from webgl_conformance import conformance_path | 9 conformance_path, \ |
| 11 from webgl_conformance import WebglConformanceValidator | 10 WebglConformanceValidator |
| 12 | 11 |
| 13 | 12 |
| 14 robustness_harness_script = conformance_harness_script + r""" | 13 robustness_harness_script = conformance_harness_script + r""" |
| 15 var robustnessTestHarness = {}; | 14 var robustnessTestHarness = {}; |
| 16 robustnessTestHarness._contextLost = false; | 15 robustnessTestHarness._contextLost = false; |
| 17 robustnessTestHarness.initialize = function() { | 16 robustnessTestHarness.initialize = function() { |
| 18 var canvas = document.getElementById('example'); | 17 var canvas = document.getElementById('example'); |
| 19 canvas.addEventListener('webglcontextlost', function() { | 18 canvas.addEventListener('webglcontextlost', function() { |
| 20 robustnessTestHarness._contextLost = true; | 19 robustnessTestHarness._contextLost = true; |
| 21 }); | 20 }); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 @classmethod | 63 @classmethod |
| 65 def Name(cls): | 64 def Name(cls): |
| 66 return 'webgl_robustness' | 65 return 'webgl_robustness' |
| 67 | 66 |
| 68 def CreateStorySet(self, options): | 67 def CreateStorySet(self, options): |
| 69 ps = story_set_module.StorySet( | 68 ps = story_set_module.StorySet( |
| 70 base_dir=conformance_path, | 69 base_dir=conformance_path, |
| 71 serving_dirs=['']) | 70 serving_dirs=['']) |
| 72 ps.AddStory(WebglRobustnessPage(ps, ps.base_dir)) | 71 ps.AddStory(WebglRobustnessPage(ps, ps.base_dir)) |
| 73 return ps | 72 return ps |
| OLD | NEW |