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

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: Used named arguments and deleted unused test files, as suggested by Nirnimesh. 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
« no previous file with comments | « chrome/test/functional/indexeddb.py ('k') | chrome/test/functional/media/media_stat_perf.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 19fbae4084221a73ac674b568a35ea693f076e26..66817f5c74821ff56d1c669926b7c483d201d8bd 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(tab_index=1)
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(tab_index=1)
self.assertEqual(self.GetActiveTabTitle(), 'New Tab')
def testNewWindowCanDismissInstant(self):
« no previous file with comments | « chrome/test/functional/indexeddb.py ('k') | chrome/test/functional/media/media_stat_perf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698