Searched refs:_tab (Results 1 – 25 of 44) sorted by relevance
12
/external/chromium-trace/catapult/telemetry/telemetry/internal/actions/ |
D | play_unittest.py | 25 action.WillRunAction(self._tab) 27 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK)) 28 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK)) 29 action.RunAction(self._tab) 31 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK)) 32 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK)) 39 action.WillRunAction(self._tab) 41 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK)) 42 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK)) 43 action.RunAction(self._tab) [all …]
|
D | scroll_unittest.py | 15 self._tab.ExecuteJavaScript("""document.body.style.height = 19 self._tab.EvaluateJavaScript("""document.documentElement.scrollTop 23 i.WillRunAction(self._tab) 25 self._tab.ExecuteJavaScript(""" 32 i.RunAction(self._tab) 34 self.assertTrue(self._tab.EvaluateJavaScript('window.__didBeginMeasuring')) 35 self.assertTrue(self._tab.EvaluateJavaScript('window.__didEndMeasuring')) 37 scroll_position = self._tab.EvaluateJavaScript( 45 branch_num = self._tab.browser._browser_backend.devtools_client \ 53 self._tab.ExecuteJavaScript("""document.body.style.height = [all …]
|
D | seek_unittest.py | 24 action.WillRunAction(self._tab) 25 action.RunAction(self._tab) 27 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK)) 28 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK)) 35 action.WillRunAction(self._tab) 37 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK)) 38 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK)) 39 action.RunAction(self._tab) 41 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK)) 42 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK)) [all …]
|
D | loop_unittest.py | 25 action.WillRunAction(self._tab) 26 action.RunAction(self._tab) 28 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK)) 29 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK)) 36 action.WillRunAction(self._tab) 38 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK)) 39 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK)) 40 action.RunAction(self._tab) 42 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK)) 43 self.assertTrue(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK)) [all …]
|
D | repeatable_scroll_unittest.py | 17 self._tab.ExecuteJavaScript('document.body.style.height = ' 21 self._tab.EvaluateJavaScript('document.documentElement.scrollTop ' 24 self._browser_info = browser_info_module.BrowserInfo(self._tab.browser) 26 self._tab.EvaluateJavaScript('window.innerHeight')) 35 i.WillRunAction(self._tab) 37 i.RunAction(self._tab) 39 scroll_position = self._tab.EvaluateJavaScript( 55 i.WillRunAction(self._tab) 57 i.RunAction(self._tab) 59 scroll_position = self._tab.EvaluateJavaScript(
|
D | page_action_unittest.py | 16 runner = action_runner.ActionRunner(self._tab) 33 self._tab, 'function(el) { return el.textContent; }', 38 self._tab, 'function(el) { return el.textContent; }', 43 self._tab, 'function(el) { return el.textContent; }', 48 self._tab, 'function(el) { return el.textContent; }', 58 self._tab, 'function(el) { return el; }', 65 self._tab, 'function(el, info) { return info; }', 71 self._tab, 'function() {}', selector='div', text='foo') 76 self._tab, 'function() {}', selector='div', element_function='foo') 81 self._tab, 'function() {}', text='foo', element_function='')
|
D | load_media_unittest.py | 18 return self._tab.EvaluateJavaScript( 26 action.WillRunAction(self._tab) 27 action.RunAction(self._tab) 34 action.WillRunAction(self._tab) 35 action.RunAction(self._tab) 43 action.WillRunAction(self._tab) 44 action.RunAction(self._tab) 52 action.WillRunAction(self._tab) 53 action.RunAction(self._tab) 62 action.WillRunAction(self._tab) [all …]
|
D | action_runner_unittest.py | 21 renderer_thread = timeline_model.GetRendererThreadFromTabId(self._tab.id) 29 action_runner = action_runner_module.ActionRunner(self._tab, 61 action_runner = action_runner_module.ActionRunner(self._tab, 65 self.assertEqual(42, self._tab.EvaluateJavaScript('testing')) 69 action_runner = action_runner_module.ActionRunner(self._tab, 74 self.assertTrue(self._tab.EvaluateJavaScript( 78 self._tab.EvaluateJavaScript('document.location.pathname;'), 82 action_runner = action_runner_module.ActionRunner(self._tab) 88 self.assertEqual(101, self._tab.EvaluateJavaScript('window.testing')) 93 self.assertEqual(102, self._tab.EvaluateJavaScript('window.testing')) [all …]
|
D | drag_unittest.py | 26 self._tab.ExecuteJavaScript(js) 28 div_width = self._tab.EvaluateJavaScript( 30 div_height = self._tab.EvaluateJavaScript( 36 i.WillRunAction(self._tab) 42 self._tab.ExecuteJavaScript(''' 49 i.RunAction(self._tab) 51 self.assertTrue(self._tab.EvaluateJavaScript('window.__didBeginMeasuring')) 52 self.assertTrue(self._tab.EvaluateJavaScript('window.__didEndMeasuring')) 54 div_position_x = self._tab.EvaluateJavaScript( 56 div_position_y = self._tab.EvaluateJavaScript(
|
D | mouse_click_unittest.py | 15 self._tab.ExecuteJavaScript(""" 27 i.WillRunAction(self._tab) 28 i.RunAction(self._tab) 29 self.assertTrue(self._tab.EvaluateJavaScript( 35 self._tab.ExecuteJavaScript(""" 47 i.WillRunAction(self._tab) 49 i.RunAction(self._tab)
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/browser/ |
D | tab_unittest.py | 55 self._tab.Navigate(self.UrlOfUnittestFile('blank.html')) 56 self._tab.WaitForDocumentReadyStateToBeComplete() 59 self._tab.Navigate(self.UrlOfUnittestFile('blank.html')) 60 self._tab.WaitForDocumentReadyStateToBeInteractiveOrBetter() 63 self.assertEquals(self._tab.browser, self._browser) 67 lambda: self._tab.Navigate('chrome://crash', 71 self._tab.EvaluateJavaScript(""" 79 self._tab.WaitForJavaScriptExpression( 82 self._tab.WaitForJavaScriptExpression( 91 util.WaitFor(lambda: _IsDocumentVisible(self._tab), timeout=5) [all …]
|
/external/autotest/client/common_lib/cros/ |
D | interactive_xmlrpc_server.py | 41 self._tab = self._chrome.browser.tabs[0] 42 self._tab.Navigate( 61 self._tab.ExecuteJavaScript('document.body.innerHTML = %s; ' % 63 self._tab.Activate() 64 self._tab.WaitForDocumentReadyStateToBeInteractiveOrBetter() 81 self._tab.ExecuteJavaScript( 84 self._tab.Activate() 85 self._tab.WaitForDocumentReadyStateToBeInteractiveOrBetter() 124 self._tab.EvaluateJavaScript('window.__ready') == 1, 128 result = self._tab.EvaluateJavaScript('window.__result') [all …]
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome_inspector/ |
D | inspector_page_unittest.py | 17 self._tab.EvaluateJavaScript('document.location.pathname;'), 20 self._tab.ExecuteJavaScript('document.getElementById("clickme").click();') 21 self._tab.WaitForNavigate() 24 self._tab.EvaluateJavaScript('document.location.pathname;'), 29 self._tab.ExecuteJavaScript('document.cookie="foo=bar"') 30 self.assertEquals(self._tab.GetCookieByName('foo'), 'bar') 35 self._tab.WaitForDocumentReadyStateToBeComplete() 36 self.assertEquals(self._tab.EvaluateJavaScript('foo'), 'bar') 40 if not self._tab.screenshot_supported: 43 res = image_util.Pixels(self._tab.Screenshot())
|
D | inspector_runtime_unittest.py | 13 res = self._tab.EvaluateJavaScript('1+1') 18 lambda: self._tab.EvaluateJavaScript('fsdfsdfsf')) 23 self._tab.EvaluateJavaScript(""" 35 self._tab.ExecuteJavaScript('window') 39 starting_contexts = self._tab.EnableAllContexts() 45 self._tab.WaitForJavaScriptExpression(test_defined_js, timeout=10) 49 util.WaitFor(lambda: self._tab.EnableAllContexts() == expected_contexts, 52 self.assertEquals(self._tab.EvaluateJavaScript('testVar'), 'host') 57 return self._tab.EvaluateJavaScriptInContext(test_defined_js, 67 return self._tab.EvaluateJavaScriptInContext('testVar', context_id) [all …]
|
D | inspector_memory_unittest.py | 15 self._tab = self._browser.tabs.New() 19 self._tab.ExecuteJavaScript('gc();') 25 counts = self._tab.dom_stats
|
D | inspector_console_unittest.py | 15 initial = self._tab.EvaluateJavaScript('window.__logCount') 17 current = self._tab.EvaluateJavaScript('window.__logCount') 22 self._tab._inspector_backend.GetCurrentConsoleOutputBuffer())
|
/external/autotest/client/cros/video/ |
D | youtube_helper.py | 35 self._tab = youtube_tab 41 self._video_duration = (int(self._tab.EvaluateJavaScript( 52 return int(self._tab.EvaluateJavaScript('player.getCurrentTime()')) 57 return self._tab.EvaluateJavaScript( 68 self._tab.ExecuteJavaScript( 74 return self._tab.EvaluateJavaScript('player.getPlaybackQuality()') 108 self._tab.ExecuteJavaScript( 145 video_qualities = self._tab.EvaluateJavaScript( 177 self._tab.ExecuteJavaScript('player.pauseVideo()') 179 self._tab.ExecuteJavaScript('player.playVideo()') [all …]
|
/external/autotest/client/cros/ |
D | semiauto_framework.py | 29 self._tab = self._browser.tabs[0] 32 self._tab.Navigate(self._browser.platform.http_server.UrlOf( 48 self._tab.ExecuteJavaScript('window.__ready = 0; ' 50 self._tab.Activate() 51 self._tab.WaitForDocumentReadyStateToBeInteractiveOrBetter() 96 complete = lambda: self._tab.EvaluateJavaScript('window.__ready') == 1 100 result = self._tab.EvaluateJavaScript('window.__result') 101 self._tab.ExecuteJavaScript('window.__ready = 0; '
|
D | touch_playback_test_base.py | 208 self._tab.Navigate(self._tab.url) 229 self._tab = cr.browser.tabs[0] 230 self._tab.Navigate(cr.browser.platform.http_server.UrlOf( 243 self._tab.WaitForDocumentReadyStateToBeComplete() 245 lambda: self._tab.EvaluateJavaScript('pageReady'), 268 self._tab.ExecuteJavaScript( 271 self._tab.ExecuteJavaScript( 305 return int(self._tab.EvaluateJavaScript('document.body.scrollTop')) 307 return int(self._tab.EvaluateJavaScript('document.body.scrollLeft'))
|
/external/chromium-trace/catapult/telemetry/telemetry/testing/ |
D | tab_test_case.py | 12 self._tab = None 23 self._tab = self._browser.tabs[0] 28 self._tab.Navigate('about:blank') 29 self._tab.WaitForDocumentReadyStateToBeInteractiveOrBetter() 37 self._tab.Navigate(url, script_to_evaluate_on_commit) 38 self._tab.WaitForDocumentReadyStateToBeComplete() 44 self._tab = self._browser.tabs[0]
|
/external/autotest/client/site_tests/power_Consumption/ |
D | power_Consumption.py | 171 self._tab.Activate() 172 self._tab.Navigate(url) 174 tab_title = self._tab.EvaluateJavaScript('document.title') 189 bg_tab = self._tab 256 tab = self._tab 332 self._tab.Navigate(full_url(url)) 333 self._tab.ExecuteJavaScript(js_loop_enable) 338 self._tab.Navigate(full_url(url)) 339 self._tab.ExecuteJavaScript(js_loop_enable) 345 self._tab.Navigate(full_url(url)) [all …]
|
/external/chromium-trace/catapult/telemetry/telemetry/page/ |
D | action_runner.py | 34 self._tab = tab 40 return self._tab 43 action.WillRunAction(self._tab) 44 action.RunAction(self._tab) 77 return Interaction(self._tab, label, flags) 116 url = self._tab.browser.platform.http_server.UrlOf(url[7:]) 125 self._tab.WaitForNavigate(timeout_in_seconds_seconds) 130 self._tab.WaitForDocumentReadyStateToBeInteractiveOrBetter( 135 self._tab.ExecuteJavaScript('window.location.reload()') 136 self._tab.WaitForDocumentReadyStateToBeInteractiveOrBetter() [all …]
|
/external/autotest/client/site_tests/video_VimeoVideo/ |
D | video_VimeoVideo.py | 33 return self._tab.EvaluateJavaScript('vimeo_player.status') 38 self._tab.WaitForJavaScriptExpression( 58 self._tab.WaitForJavaScriptExpression( 61 return float(self._tab.EvaluateJavaScript('vimeo_player.duration')) 70 self._tab = browser.tabs[0] 71 self._tab.Navigate(browser.platform.http_server.UrlOf(
|
/external/chromium-trace/catapult/telemetry/telemetry/core/ |
D | memory_cache_http_server_unittest.py | 21 x = self._tab.EvaluateJavaScript('document.body.innerHTML') 47 self._tab.ExecuteJavaScript(""" 58 self._tab.WaitForJavaScriptExpression('loaded', 5) 59 content_range = self._tab.EvaluateJavaScript( 64 content_length = self._tab.EvaluateJavaScript(
|
/external/autotest/client/site_tests/accessibility_Sanity/ |
D | accessibility_Sanity.py | 62 return self._tab.EvaluateJavaScript(poll_cmd) > 0 64 return self._tab.EvaluateJavaScript(poll_cmd) == 0 101 self._tab.Navigate(self._url) # reload page to remove old indicators 113 self._tab = cr.browser.tabs[0] 118 self._tab.Navigate(self._url)
|
12