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

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: 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/prefs.py ('k') | chrome/test/functional/special_tabs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/shortcuts.py
diff --git a/chrome/test/functional/shortcuts.py b/chrome/test/functional/shortcuts.py
index 937c19764386766fa0853f9026fa9f394d07e756..2b1202640329b2543a1b1b427ca8ff4e94399d3f 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(tab_index=1)
self.assertEqual(1, self.GetTabCount(), msg='Can not close a tab.')
# Verify shortcut reopens the correct tab.
self.RunCommand(pyauto.IDC_RESTORE_TAB)
« no previous file with comments | « chrome/test/functional/prefs.py ('k') | chrome/test/functional/special_tabs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698