Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: content/test/gpu/gpu_tests/context_lost.py

Issue 411143003: Add an "in_unit_test_mode" attribute to the environment. Use this to default output format to 'gtes… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comment. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698