Home | History | Annotate | Download | only in functional

Lines Matching refs:tab_index

37   def GetUserMedia(self, tab_index, action='accept',
42 tab_index: The tab to request user media on.
54 'getUserMedia("%s")' % constraints, tab_index=tab_index))
56 self.WaitForInfobarCount(1, tab_index=tab_index)
57 self.PerformActionOnInfobar(action, infobar_index=0, tab_index=tab_index)
58 self.WaitForGetUserMediaResult(tab_index=0)
60 result = self.GetUserMediaResult(tab_index=0)
61 self.AssertNoFailures(tab_index)
64 def WaitForGetUserMediaResult(self, tab_index):
70 tab_index: the tab to query.
73 return self.GetUserMediaResult(tab_index) != 'not-called-yet'
77 def GetUserMediaResult(self, tab_index):
81 tab_index: the tab to query.
87 'obtainGetUserMediaResult()', tab_index=tab_index)
89 def AssertNoFailures(self, tab_index):
93 tab_index: The tab to check.
96 'getAnyTestFailures()', tab_index=tab_index))
98 def Connect(self, user_name, tab_index):
101 tab_index=tab_index))
102 self.AssertNoFailures(tab_index)
104 def CreatePeerConnection(self, tab_index):
106 'preparePeerConnection()', tab_index=tab_index))
108 def AddUserMediaLocalStream(self, tab_index):
110 'addLocalStream()', tab_index=tab_index))
112 def AddWebAudioFile(self, tab_index, input_relative_path):
120 tab_index=tab_index))
122 def PlayWebAudioFile(self, tab_index):
125 'playAudioFile()', tab_index=tab_index))
128 self.WaitUntilPeerConnects(tab_index=from_tab_with_index)
131 'negotiateCall()', tab_index=from_tab_with_index))
135 tab_index=from_tab_with_index)
139 tab_index=to_tab_with_index)
143 'hangUp()', tab_index=from_tab_with_index))
144 self.WaitUntilHangUpVerified(tab_index=from_tab_with_index)
145 self.AssertNoFailures(tab_index=from_tab_with_index)
147 def WaitUntilPeerConnects(self, tab_index):
150 tab_index=tab_index),
155 def WaitUntilReadyState(self, ready_state, tab_index):
158 tab_index=tab_index),
163 tab_index)))
165 def WaitUntilHangUpVerified(self, tab_index):
166 self.WaitUntilReadyState('no-peer-connection', tab_index=tab_index)
168 def Disconnect(self, tab_index):
170 'disconnect()', tab_index=tab_index))