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

Unified Diff: tools/telemetry/telemetry/unittest/tab_test_case.py

Issue 437443006: [Telemetry] Fix android unittests that run after testRendererCrash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove __class__ 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/unittest/tab_test_case.py
diff --git a/tools/telemetry/telemetry/unittest/tab_test_case.py b/tools/telemetry/telemetry/unittest/tab_test_case.py
index 431817d2a918725896aadce898053c49af7c7609..fbd0ee43e10fe8495f8088e23af4743846d3c268 100644
--- a/tools/telemetry/telemetry/unittest/tab_test_case.py
+++ b/tools/telemetry/telemetry/unittest/tab_test_case.py
@@ -45,6 +45,9 @@ class TabTestCase(unittest.TestCase):
while len(self._browser.tabs) > 1:
self._browser.tabs[0].Close()
else:
+ if not self._browser.tabs:
+ self.tearDownClass()
+ self.setUpClass()
self._tab = self._browser.tabs[0]
self._tab.Navigate('about:blank')
self._tab.WaitForDocumentReadyStateToBeInteractiveOrBetter()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698