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

Unified Diff: chrome/test/functional/chromeos_browser.py

Issue 10134043: Used test util to crash the browser, and restart the browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed testCloseAllTabs Created 8 years, 8 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: chrome/test/functional/chromeos_browser.py
diff --git a/chrome/test/functional/chromeos_browser.py b/chrome/test/functional/chromeos_browser.py
index e5937eb7297228d7d63981ca5086fabb86bda5ef..d079a83da998b3268fd60a0be66bd0f45e3e92c7 100755
--- a/chrome/test/functional/chromeos_browser.py
+++ b/chrome/test/functional/chromeos_browser.py
@@ -5,6 +5,7 @@
import pyauto_functional # pyauto_functional must come before pyauto.
import pyauto
+import test_utils
class ChromeosBrowserTest(pyauto.PyUITest):
@@ -28,8 +29,8 @@ class ChromeosBrowserTest(pyauto.PyUITest):
def testCrashBrowser(self):
"""Verify that after broswer crash is recovered, user can still navigate
to other URL."""
- crash_url = 'about:inducebrowsercrashforrealz'
- self.NavigateToURL(crash_url)
+ test_utils.CrashBrowser(self)
+ self.RestartBrowser(clear_profile=False)
url = self.GetHttpURLForDataPath('english_page.html')
self.NavigateToURL(url)
self.assertEqual('This page is in English', self.GetActiveTabTitle())
« 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