Commit 928fd149 authored by phoglund@chromium.org's avatar phoglund@chromium.org

Fixed tab closing code after framework update.


NOTRY=True
BUG=


Review URL: https://chromiumcodereview.appspot.com/10837235

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151673 0039d316-1c4b-4281-b951-d872f2087c98
parent ec322853
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment