| OLD | NEW |
| 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 Loading... |
| 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__]) |
| OLD | NEW |