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

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

Issue 9559016: Fix pyauto breakage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | chrome/test/functional/multiprofile.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/instant.py
diff --git a/chrome/test/functional/instant.py b/chrome/test/functional/instant.py
index 318363374e40132ced579ea58676a4d808180b46..739ad4f4490705384b1f6eea22bd83f5e12e773b 100755
--- a/chrome/test/functional/instant.py
+++ b/chrome/test/functional/instant.py
@@ -157,10 +157,11 @@ class InstantTest(pyauto.PyUITest):
"""Test that instant preview is dismissed by find-in-page."""
self._BringUpInstant()
self.OpenFindInPage()
- self.assertEqual(self.GetActiveTabTitle(), 'about:blank')
+ self.assertEqual(self.GetActiveTabTitle(), 'New Tab')
def testNTPCanDismissInstant(self):
"""Test that instant preview is dismissed by adding new tab page."""
+ self.NavigateToURL('about:blank');
self._BringUpInstant()
self.AppendTab(pyauto.GURL('chrome://newtab'))
self.GetBrowserWindow(0).GetTab(1).Close(True)
@@ -171,14 +172,14 @@ class InstantTest(pyauto.PyUITest):
self._BringUpInstant()
self.AppendTab(pyauto.GURL('chrome://extensions'))
self.GetBrowserWindow(0).GetTab(1).Close(True)
- self.assertEqual(self.GetActiveTabTitle(), 'about:blank')
+ self.assertEqual(self.GetActiveTabTitle(), 'New Tab')
def testNewWindowCanDismissInstant(self):
"""Test that instant preview is dismissed by New Window."""
self._BringUpInstant()
self.OpenNewBrowserWindow(True)
self.CloseBrowserWindow(1)
- self.assertEqual(self.GetActiveTabTitle(), 'about:blank')
+ self.assertEqual(self.GetActiveTabTitle(), 'New Tab')
def testPreFetchInstantURLNotInHistory(self):
"""Test that pre-fetched URLs are not saved in History."""
« no previous file with comments | « no previous file | chrome/test/functional/multiprofile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698