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

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

Issue 10105011: Adding pyauto test: browser still function after browser crash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified copyright to 2012 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 8b4adb981f3e71bb88d71a1571361236d9dc2e96..1a77b840a0d66660d5658b8946f5f50037ccaa74 100755
--- a/chrome/test/functional/chromeos_browser.py
+++ b/chrome/test/functional/chromeos_browser.py
@@ -1,5 +1,5 @@
-#!/usr/bin/python
-# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+#!/usr/bin/env python
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -39,6 +39,14 @@ class ChromeosBrowserTest(pyauto.PyUITest):
self.assertTrue(info[0]['incognito'],
msg='Incognito window is not displayed.')
+ 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)
+ self.NavigateToURL('http://www.google.com')
Nirnimesh 2012/04/18 23:21:54 I don't think this call will succeed. The pyauto c
Nirnimesh 2012/04/18 23:21:54 Do not use live URLs. Use one of the existing data
tturchetto 2012/04/23 21:29:39 Done.
tturchetto 2012/04/23 21:29:39 Done.
+ self.assertEqual("Google", self.GetActiveTabTitle())
+
def testFullScreen(self):
"""Verify that a browser window can enter and exit full screen mode."""
self.ApplyAccelerator(pyauto.IDC_FULLSCREEN)
« 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