| 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 logging | 5 import logging |
| 6 | 6 |
| 7 from telemetry.testing import serially_executed_browser_test_case | 7 from telemetry.testing import serially_executed_browser_test_case |
| 8 from telemetry.util import screenshot | 8 from telemetry.util import screenshot |
| 9 | 9 |
| 10 from gpu_tests import exception_formatter | 10 from gpu_tests import exception_formatter |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 cls.tab = cls.browser.tabs[0] | 187 cls.tab = cls.browser.tabs[0] |
| 188 except Exception: | 188 except Exception: |
| 189 # restart the browser to make sure a failure in a test doesn't | 189 # restart the browser to make sure a failure in a test doesn't |
| 190 # propagate to the next test iteration. | 190 # propagate to the next test iteration. |
| 191 logging.exception("Failure during browser startup") | 191 logging.exception("Failure during browser startup") |
| 192 cls._RestartBrowser('failure in setup') | 192 cls._RestartBrowser('failure in setup') |
| 193 raise | 193 raise |
| 194 | 194 |
| 195 def setUp(self): | 195 def setUp(self): |
| 196 self._EnsureTabIsAvailable() | 196 self._EnsureTabIsAvailable() |
| 197 |
| 198 def LoadAllTestsInModule(module): |
| 199 # Just delegates to serially_executed_browser_test_case to reduce the |
| 200 # number of imports in other files. |
| 201 return serially_executed_browser_test_case.LoadAllTestsInModule(module) |
| OLD | NEW |