Home
last modified time | relevance | path

Searched refs:_tab (Results 1 – 25 of 44) sorted by relevance

12

/external/chromium-trace/catapult/telemetry/telemetry/internal/actions/
Dplay_unittest.py25 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 …]
Dscroll_unittest.py15 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 …]
Dseek_unittest.py24 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 …]
Dloop_unittest.py25 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 …]
Drepeatable_scroll_unittest.py17 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(
Dpage_action_unittest.py16 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='')
Dload_media_unittest.py18 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 …]
Daction_runner_unittest.py21 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 …]
Ddrag_unittest.py26 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(
Dmouse_click_unittest.py15 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/
Dtab_unittest.py55 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/
Dinteractive_xmlrpc_server.py41 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/
Dinspector_page_unittest.py17 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())
Dinspector_runtime_unittest.py13 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 …]
Dinspector_memory_unittest.py15 self._tab = self._browser.tabs.New()
19 self._tab.ExecuteJavaScript('gc();')
25 counts = self._tab.dom_stats
Dinspector_console_unittest.py15 initial = self._tab.EvaluateJavaScript('window.__logCount')
17 current = self._tab.EvaluateJavaScript('window.__logCount')
22 self._tab._inspector_backend.GetCurrentConsoleOutputBuffer())
/external/autotest/client/cros/video/
Dyoutube_helper.py35 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/
Dsemiauto_framework.py29 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; '
Dtouch_playback_test_base.py208 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/
Dtab_test_case.py12 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/
Dpower_Consumption.py171 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/
Daction_runner.py34 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/
Dvideo_VimeoVideo.py33 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/
Dmemory_cache_http_server_unittest.py21 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/
Daccessibility_Sanity.py62 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