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

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

Issue 2662863002: Add typ boilerplate to Telemetry-based GPU tests. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/depth_capture_integration_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 4
5 import os 5 import os
6 import sys
6 import time 7 import time
7 8
8 from gpu_tests import gpu_integration_test 9 from gpu_tests import gpu_integration_test
9 from gpu_tests import context_lost_expectations 10 from gpu_tests import context_lost_expectations
10 from gpu_tests import path_util 11 from gpu_tests import path_util
11 12
12 import py_utils 13 import py_utils
13 from telemetry.core import exceptions 14 from telemetry.core import exceptions
14 15
15 data_path = os.path.join( 16 data_path = os.path.join(
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 245
245 def _ContextLost_WebGLContextLostInHiddenTab(self, test_path): 246 def _ContextLost_WebGLContextLostInHiddenTab(self, test_path):
246 self._NavigateAndWaitForLoad(test_path) 247 self._NavigateAndWaitForLoad(test_path)
247 # Test losing a context in a hidden tab. This test passes if the tab 248 # Test losing a context in a hidden tab. This test passes if the tab
248 # doesn't crash. 249 # doesn't crash.
249 tab = self.tab 250 tab = self.tab
250 dummy_tab = tab.browser.tabs.New() 251 dummy_tab = tab.browser.tabs.New()
251 tab.EvaluateJavaScript('loseContextUsingExtension()') 252 tab.EvaluateJavaScript('loseContextUsingExtension()')
252 tab.Activate() 253 tab.Activate()
253 self._WaitForTabAndCheckCompletion() 254 self._WaitForTabAndCheckCompletion()
255
256 def load_tests(loader, tests, pattern):
257 del loader, tests, pattern # Unused.
258 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__])
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/depth_capture_integration_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698