Home | History | Annotate | Download | only in functional

Lines Matching refs:tab_index

266       self.CloseTab(tab_index=index)
276 Takes (tab_index, name, url) as parameters.
283 tab_index = None
287 tab_index = tab['index']
290 if tab_index:
291 verify_func(tab_index, name, url)
293 def _VerifyElementPresent(self, element_id, expected_value, tab_index, msg,
300 tab_index: Tab index to work on.
315 lambda: self.ExecuteJavascript(js_code, tab_index),
334 def _VerifyInputEventsExample(self, tab_index, name, url):
338 tab_index: Tab index integer that the example is on.
343 tab_index, msg='Example %s failed. URL: %s' % (name, url))
347 self.ExecuteJavascript(js_code, tab_index)
353 tab_index)).group(), expect_retval='DidHandleInputEvent')
356 def _VerifyMultithreadedInputEventsExample(self, tab_index, name, url):
360 tab_index: Tab index integer that the example is on.
367 tab_index).find('DidChangeView') + 1))
373 self.ExecuteJavascript(js_code, tab_index)
377 tab_index, msg='Example %s failed. URL: %s' % (name, url))
384 self.ExecuteJavascript(js_code, tab_index)
388 tab_index, msg='Example %s failed. URL: %s' % (name, url))
392 self.ExecuteJavascript(js_code, tab_index)
398 tab_index).find('Mouse event', self.GetDOMValue(
399 'document.getElementById("eventString").innerHTML', tab_index).find(
405 def _VerifyFileIoExample(self, tab_index, name, url):
409 tab_index: Tab index integer that the example is on.
417 'document.getElementById("statusField").innerHTML', tab_index)\
423 'confirm_infobar', 0, tab_index)
424 self.PerformActionOnInfobar('accept', infobar_index, 0, tab_index)
434 self.ExecuteJavascript(js_code, tab_index)
442 self.ExecuteJavascript(js_code, tab_index)
451 tab_index)
455 tab_index).find('test') != -1, msg='Loaded wrong text or failed')
462 self.ExecuteJavascript(js_code, tab_index)
470 self.ExecuteJavascript(js_code, tab_index)
473 def _VerifyWebSocketExample(self, tab_index, name, url):
477 tab_index: Tab index integer that the example is on.
484 'document.getElementById("statusField").innerHTML', tab_index),
493 self.ExecuteJavascript(js_code, tab_index)
496 success = self._VerifyElementPresent('log', 'connected', tab_index,
504 self.ExecuteJavascript(js_code, tab_index)
507 'document.getElementById("log").textContent', tab_index))))
510 def _VerifyDynamicLibraryOpen(self, tab_index, name, url):
514 tab_index: Tab index integer that the example is on.
520 tab_index, msg='Example %s failed. URL: %s' % (name, url))
527 self.ExecuteJavascript(js_code, tab_index)
532 tab_index)))
537 def _VerifyLoadProgressExample(self, tab_index, name, url):
541 tab_index: Tab index integer that the example is on.
548 'document.getElementById("statusField").innerHTML', tab_index),
556 'document.getElementById("log").innerHTML', tab_index))
560 def _VerifyPiGeneratorExample(self, tab_index, name, url):
564 tab_index: Tab index integer that the example is on.
570 tab_index)[0:3],
574 def _VerifySineSynthExample(self, tab_index, name, url):
578 tab_index: Tab index integer that the example is on.
585 tab_index), timeout=150, expect_retval='440')
590 tab_index)
592 def _VerifyGetURLExample(self, tab_index, name, url):
596 tab_index: Tab index integer that the example is on.
603 tab_index), timeout=150, expect_retval='SUCCESS')
608 tab_index)
610 tab_index, msg='Example %s failed. URL: %s' % (name, url))