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

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

Issue 10830193: Remove SWIGged use of BrowserProxy and TabProxy from PyAuto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
Index: chrome/test/functional/instant.py
diff --git a/chrome/test/functional/instant.py b/chrome/test/functional/instant.py
index 19fbae4084221a73ac674b568a35ea693f076e26..f8589fe77774e2a11fe1c4594eff71e11f589f87 100755
--- a/chrome/test/functional/instant.py
+++ b/chrome/test/functional/instant.py
@@ -167,14 +167,14 @@ class InstantTest(pyauto.PyUITest):
self.NavigateToURL('about:blank');
self._BringUpInstant()
self.AppendTab(pyauto.GURL('chrome://newtab'))
- self.GetBrowserWindow(0).GetTab(1).Close(True)
+ self.CloseTab(1, 0)
self.assertEqual(self.GetActiveTabTitle(), 'about:blank')
def testExtnPageCanDismissInstant(self):
"""Test that instant preview is dismissed by extension page."""
self._BringUpInstant()
self.AppendTab(pyauto.GURL('chrome://extensions'))
- self.GetBrowserWindow(0).GetTab(1).Close(True)
+ self.CloseTab(1, 0)
self.assertEqual(self.GetActiveTabTitle(), 'New Tab')
def testNewWindowCanDismissInstant(self):

Powered by Google App Engine
This is Rietveld 408576698