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

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

Issue 10837235: Fixed tab closing code after framework update. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/webrtc_brutality_test.py
diff --git a/chrome/test/functional/webrtc_brutality_test.py b/chrome/test/functional/webrtc_brutality_test.py
index be115bcbbdf3bcd9a0a51cabf22461a888b85ce2..fbebb117987503720b3ea629a9fe9bc8d386af0f 100755
--- a/chrome/test/functional/webrtc_brutality_test.py
+++ b/chrome/test/functional/webrtc_brutality_test.py
@@ -57,18 +57,16 @@ class WebrtcBrutalityTest(webrtc_test_base.WebrtcTestBase):
url = self.GetFileURLForDataPath('webrtc', 'webrtc_jsep_test.html')
self.NavigateToURL(url)
- tab = self.GetBrowserWindow(0).GetTab(0)
self._GetUserMediaWithoutTakingAction(tab_index=0)
- tab.Close()
+ self.CloseTab(tab_index=0)
def testSuccessfulGetUserMediaAndThenClose(self):
"""Waits for WebRTC to respond, and closes the tab."""
url = self.GetFileURLForDataPath('webrtc', 'webrtc_jsep_test.html')
self.NavigateToURL(url)
- tab = self.GetBrowserWindow(0).GetTab(0)
self.GetUserMedia(tab_index=0, action='allow')
- tab.Close()
+ self.CloseTab(tab_index=0)
def _GetUserMediaWithoutTakingAction(self, tab_index):
self.assertEquals('ok-requested', self.ExecuteJavascript(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698