OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 import os | 4 import os |
5 | 5 |
6 from telemetry import benchmark as benchmark_module | 6 from telemetry import benchmark as benchmark_module |
7 from telemetry.core import exceptions | 7 from telemetry.core import exceptions |
8 from telemetry.core import util | 8 from telemetry.core import util |
9 from telemetry.page import page | 9 from telemetry.page import page |
10 from telemetry.page import page_set | 10 from telemetry.page import page_set |
(...skipping 24 matching lines...) Expand all Loading... |
35 domAutomationController._succeeded = false; | 35 domAutomationController._succeeded = false; |
36 domAutomationController._finished = true; | 36 domAutomationController._finished = true; |
37 } | 37 } |
38 } | 38 } |
39 | 39 |
40 window.domAutomationController = domAutomationController; | 40 window.domAutomationController = domAutomationController; |
41 console.log("Harness injected."); | 41 console.log("Harness injected."); |
42 """ | 42 """ |
43 | 43 |
44 class _ContextLostValidator(page_test.PageTest): | 44 class _ContextLostValidator(page_test.PageTest): |
| 45 options = {'output_format': 'gtest'} |
| 46 |
45 def __init__(self): | 47 def __init__(self): |
46 # Strictly speaking this test doesn't yet need a browser restart | 48 # Strictly speaking this test doesn't yet need a browser restart |
47 # after each run, but if more tests are added which crash the GPU | 49 # after each run, but if more tests are added which crash the GPU |
48 # process, then it will. | 50 # process, then it will. |
49 super(_ContextLostValidator, self).__init__( | 51 super(_ContextLostValidator, self).__init__( |
50 needs_browser_restart_after_each_page=True) | 52 needs_browser_restart_after_each_page=True) |
51 | 53 |
52 def CustomizeBrowserOptions(self, options): | 54 def CustomizeBrowserOptions(self, options): |
53 options.AppendExtraBrowserArgs( | 55 options.AppendExtraBrowserArgs( |
54 '--disable-domain-blocking-for-3d-apis') | 56 '--disable-domain-blocking-for-3d-apis') |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 def CreatePageSet(self, options): | 214 def CreatePageSet(self, options): |
213 ps = page_set.PageSet( | 215 ps = page_set.PageSet( |
214 file_path=data_path, | 216 file_path=data_path, |
215 user_agent_type='desktop', | 217 user_agent_type='desktop', |
216 serving_dirs=set([''])) | 218 serving_dirs=set([''])) |
217 ps.AddPage(WebGLContextLostFromGPUProcessExitPage(ps, ps.base_dir)) | 219 ps.AddPage(WebGLContextLostFromGPUProcessExitPage(ps, ps.base_dir)) |
218 ps.AddPage(WebGLContextLostFromLoseContextExtensionPage(ps, ps.base_dir)) | 220 ps.AddPage(WebGLContextLostFromLoseContextExtensionPage(ps, ps.base_dir)) |
219 ps.AddPage(WebGLContextLostFromQuantityPage(ps, ps.base_dir)) | 221 ps.AddPage(WebGLContextLostFromQuantityPage(ps, ps.base_dir)) |
220 ps.AddPage(WebGLContextLostFromSelectElementPage(ps, ps.base_dir)) | 222 ps.AddPage(WebGLContextLostFromSelectElementPage(ps, ps.base_dir)) |
221 return ps | 223 return ps |
OLD | NEW |