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

Unified Diff: chrome/test/functional/shortcuts.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/shortcuts.py
diff --git a/chrome/test/functional/shortcuts.py b/chrome/test/functional/shortcuts.py
index 937c19764386766fa0853f9026fa9f394d07e756..d6e93e326d8228e0bf6b3092dd19d68ca9f7ef61 100755
--- a/chrome/test/functional/shortcuts.py
+++ b/chrome/test/functional/shortcuts.py
@@ -35,7 +35,7 @@ class ShortcutsTest(pyauto.PyUITest):
url = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title2.html'))
self.NavigateToURL(url)
title = self.GetActiveTabTitle()
- self.GetBrowserWindow(0).GetTab(1).Close()
+ self.CloseTab(1, 0)
self.assertEqual(1, self.GetTabCount(), msg='Can not close a tab.')
# Verify shortcut reopens the correct tab.
self.RunCommand(pyauto.IDC_RESTORE_TAB)

Powered by Google App Engine
This is Rietveld 408576698