Home
last modified time | relevance | path

Searched refs:EvaluateJavaScript (Results 1 – 25 of 122) sorted by relevance

12345

/external/chromium-trace/catapult/telemetry/telemetry/internal/actions/
Dplay_unittest.py29 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK))
30 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK))
33 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK))
34 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK))
43 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK))
44 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK))
47 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK))
48 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK))
57 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK))
58 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK))
[all …]
Dscroll_unittest.py30 self._tab.EvaluateJavaScript('document.scrollingElement.scrollTop'), 0)
44 self.assertTrue(self._tab.EvaluateJavaScript('window.__didBeginMeasuring'))
45 self.assertTrue(self._tab.EvaluateJavaScript('window.__didEndMeasuring'))
47 scroll_position = self._tab.EvaluateJavaScript(
64 self._tab.EvaluateJavaScript('document.scrollingElement.scrollTop'), 0)
68 self._tab.EvaluateJavaScript('document.scrollingElement.scrollLeft'),
76 viewport_top = self._tab.EvaluateJavaScript(
80 viewport_left = self._tab.EvaluateJavaScript(
95 self._tab.EvaluateJavaScript('document.scrollingElement.scrollTop'), 0)
99 self._tab.EvaluateJavaScript('document.scrollingElement.scrollLeft'),
[all …]
Dseek_unittest.py29 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK))
30 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK))
39 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK))
40 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK))
43 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK))
44 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK))
53 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK))
54 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK))
57 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK))
58 self.assertTrue(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK))
[all …]
Daction_runner_unittest.py120 self.assertEqual(42, self._tab.EvaluateJavaScript('testing'))
129 self.assertTrue(self._tab.EvaluateJavaScript(
133 self._tab.EvaluateJavaScript('document.location.pathname;'),
176 self.assertEqual(101, self._tab.EvaluateJavaScript('window.testing'))
181 self.assertEqual(102, self._tab.EvaluateJavaScript('window.testing'))
195 self.assertEqual(220, self._tab.EvaluateJavaScript('window.testing'))
272 self.assertEqual(1, action_runner.EvaluateJavaScript('valueToTest'))
276 self.assertEqual(2, action_runner.EvaluateJavaScript('valueToTest'))
281 self.assertEqual(3, action_runner.EvaluateJavaScript('valueToTest'))
297 self.assertEqual(1, action_runner.EvaluateJavaScript('valueToTest'))
[all …]
Dloop_unittest.py30 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK))
31 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK))
40 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK))
41 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK))
44 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK))
45 self.assertTrue(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK))
53 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK))
Dpinch_unittest.py31 2, action_runner.EvaluateJavaScript('window.__test_scaleFactor'))
33 action_runner.EvaluateJavaScript('!isNaN(window.__test_anchorLeft)'))
35 action_runner.EvaluateJavaScript('!isNaN(window.__test_anchorTop)'))
37 action_runner.EvaluateJavaScript('!!window.__test_callback'))
39 800, action_runner.EvaluateJavaScript('window.__test_speed'))
Ddrag_unittest.py28 div_width = self._tab.EvaluateJavaScript(
30 div_height = self._tab.EvaluateJavaScript(
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(
Drepeatable_scroll_unittest.py26 self._tab.EvaluateJavaScript('document.scrollingElement.scrollTop'), 0)
29 self._window_height = int(self._tab.EvaluateJavaScript(
45 scroll_position = self._tab.EvaluateJavaScript(
67 scroll_position = self._tab.EvaluateJavaScript(
84 inner_height = self._tab.EvaluateJavaScript('window.innerHeight')
85 outer_height = self._tab.EvaluateJavaScript('window.outerHeight')
/external/autotest/client/common_lib/cros/
Dcfm_util.py25 tagName = context.EvaluateJavaScript(
95 utils.poll_for_condition(lambda: not webview_context.EvaluateJavaScript(
108 if webview_context.EvaluateJavaScript("window.hrOobIsStartPageForTest()"):
125 utils.poll_for_condition(lambda: webview_context.EvaluateJavaScript(
133 utils.poll_for_condition(lambda: webview_context.EvaluateJavaScript(
147 utils.poll_for_condition(lambda: not webview_context.EvaluateJavaScript(
161 if webview_context.EvaluateJavaScript("window.hrIsInHangoutForTest()"):
173 if (webview_context.EvaluateJavaScript(
187 if (webview_context.EvaluateJavaScript(
200 utils.poll_for_condition(lambda: not webview_context.EvaluateJavaScript(
[all …]
/external/autotest/client/cros/video/
Dnative_html5_player.py33 return self.tab.EvaluateJavaScript('canplay()')
43 return self.tab.EvaluateJavaScript(
69 return self.tab.EvaluateJavaScript(cmd)
78 return self.tab.EvaluateJavaScript(cmd)
86 return self.tab.EvaluateJavaScript('currentTime()')
105 return self.tab.EvaluateJavaScript('finishedSeeking()')
141 return self.tab.EvaluateJavaScript(cmd)
152 return self.tab.EvaluateJavaScript(cmd)
Dvimeo_player.py23 return self.tab.EvaluateJavaScript('%s.isready' % self.video_id)
41 self.tab.EvaluateJavaScript('%s.seekTo(%d)' % (self.video_id,
49 return self.tab.EvaluateJavaScript('%s.seeked' % self.video_id)
Dyoutube_helper.py41 self._video_duration = (int(self._tab.EvaluateJavaScript(
52 return int(self._tab.EvaluateJavaScript('player.getCurrentTime()'))
57 return self._tab.EvaluateJavaScript(
74 return self._tab.EvaluateJavaScript('player.getPlaybackQuality()')
145 video_qualities = self._tab.EvaluateJavaScript(
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome_inspector/
Dinspector_runtime_unittest.py13 res = self._tab.EvaluateJavaScript('1+1')
18 self._tab.EvaluateJavaScript('var x = 1;\nfsdfsdfsf')
25 self._tab.EvaluateJavaScript("""
51 self.assertEquals(self._tab.EvaluateJavaScript('testVar'), 'host')
56 return self._tab.EvaluateJavaScript(
66 return self._tab.EvaluateJavaScript('testVar', context_id=context_id)
81 lambda: self._tab.EvaluateJavaScript(
/external/autotest/client/cros/multimedia/
Daudio_extension_handler.py38 lambda: (self._extension.EvaluateJavaScript(
113 lambda: (self._extension.EvaluateJavaScript(
116 return self._extension.EvaluateJavaScript("window.__audio_devices")
166 lambda: (self._extension.EvaluateJavaScript(
191 lambda: (self._extension.EvaluateJavaScript(
208 lambda: (self._extension.EvaluateJavaScript(
211 return self._extension.EvaluateJavaScript("window.__output_muted")
277 lambda: (self._extension.EvaluateJavaScript(
Ddisplay_facade_native.py67 extension.EvaluateJavaScript("window.__display_info") != None),
69 return extension.EvaluateJavaScript("window.__display_info")
84 extension.EvaluateJavaScript("window.__window_info") != None),
86 return extension.EvaluateJavaScript("window.__window_info")
111 if not tab.EvaluateJavaScript(
115 + str(tab.EvaluateJavaScript(
145 return tab.EvaluateJavaScript(expression % {'index': display_index})
282 modes = tab.EvaluateJavaScript(
629 extension.EvaluateJavaScript('__status') == 'Done'),
705 return tab.EvaluateJavaScript("window.timestamp_list")
/external/autotest/client/site_tests/desktopui_ConnectivityDiagnostics/
Ddesktopui_ConnectivityDiagnostics.py43 extension.EvaluateJavaScript(self.EXT_CODE)
46 lambda: extension.EvaluateJavaScript('complete;'),
49 if not extension.EvaluateJavaScript('success;'):
50 raise error.TestFail(extension.EvaluateJavaScript('error;'))
/external/autotest/client/site_tests/video_YouTubePage/
Dvideo_YouTubePage.py60 if not self.tab.EvaluateJavaScript(js):
71 return self.tab.EvaluateJavaScript('window.__getVideoState();')
114 return self.tab.EvaluateJavaScript('window.__getCurrentTime();')
129 result = self.tab.EvaluateJavaScript(
149 result = self.tab.EvaluateJavaScript(
223 if not self.tab.EvaluateJavaScript(
257 if not self.tab.EvaluateJavaScript(
282 dropped_frames_percentage = self.tab.EvaluateJavaScript(
/external/chromium-trace/catapult/telemetry/telemetry/internal/browser/
Dextension_unittest.py56 self._extension.EvaluateJavaScript('chrome.runtime != null'))
59 self._extension.EvaluateJavaScript('_testVar'))
71 ext[0].EvaluateJavaScript('chrome.runtime != null'))
81 extension_urls = set([ext.EvaluateJavaScript('location.href;')
161 extension.EvaluateJavaScript('chrome.runtime != null'))
163 self.assertEquals('abcdef', extension.EvaluateJavaScript('_testVar'))
187 self.assertTrue(webview_context.EvaluateJavaScript(
190 self.assertFalse(self._extension.EvaluateJavaScript(
Duser_agent_unittest.py17 ua = self._tab.EvaluateJavaScript('window.navigator.userAgent')
27 ua = self._tab.EvaluateJavaScript('window.navigator.userAgent')
37 ua = self._tab.EvaluateJavaScript('window.navigator.userAgent')
/external/autotest/client/site_tests/video_YouTubeMseEme/
Dvideo_YouTubeMseEme.py83 return self.tab.EvaluateJavaScript(
97 self.tab.EvaluateJavaScript(
248 self.tab.EvaluateJavaScript('window.__testCanPlayWebM();'),
257 self.tab.EvaluateJavaScript('window.__testCanPlayClearKey();'),
266 self.tab.EvaluateJavaScript(
276 self.tab.EvaluateJavaScript('window.__testCanPlayWidevine();'),
/external/autotest/client/site_tests/graphics_WebGLAquarium/
Dgraphics_WebGLAquarium.py118 lambda: tab.EvaluateJavaScript('if (document.readyState === "complete") {'
137 avg_fps = tab.EvaluateJavaScript('g_crosFpsCounter.getAvgFps();')
141 avg_interframe_time = tab.EvaluateJavaScript(
143 avg_render_time = tab.EvaluateJavaScript(
145 std_interframe_time = tab.EvaluateJavaScript(
147 std_render_time = tab.EvaluateJavaScript(
236 results['avg_fps'] = self.active_tab.EvaluateJavaScript(
238 results['avg_render_time'] = self.active_tab.EvaluateJavaScript(
/external/autotest/client/cros/
Dtouch_playback_test_base.py212 self._autotest_ext.EvaluateJavaScript(
429 lambda: self._tab.EvaluateJavaScript('pageReady'),
487 return int(self._tab.EvaluateJavaScript('document.body.scrollTop'))
489 return int(self._tab.EvaluateJavaScript('document.body.scrollLeft'))
538 return int(self._tab.EvaluateJavaScript('window.innerWidth'))
571 return self._tab.EvaluateJavaScript('eventLog')
582 return self._tab.EvaluateJavaScript('timeOfLastEvent')
587 return self._tab.EvaluateJavaScript('eventCount')
597 return self._tab.EvaluateJavaScript('netScrollDelta.%s' % axis)
602 return self._tab.EvaluateJavaScript('clickCount')
/external/autotest/client/site_tests/video_MultiplePlayback/
Dvideo_MultiplePlayback.py35 while (int(tab1.EvaluateJavaScript('testvideo.currentTime'))
36 < int(tab1.EvaluateJavaScript('testvideo.duration'))
38 if (int(tab1.EvaluateJavaScript('testvideo.currentTime'))
41 prev_playback = int(tab1.EvaluateJavaScript(
/external/autotest/client/site_tests/video_WebRtcPeerConnectionWithCamera/
Dvideo_WebRtcPeerConnectionWithCamera.py35 self.tab.EvaluateJavaScript(
46 status = self.tab.EvaluateJavaScript('getStatus()')
71 status = self.tab.EvaluateJavaScript('getStatus()')
75 results = self.tab.EvaluateJavaScript('getResults()')
/external/autotest/client/cros/a11y/
Da11y_test_base.py94 lambda: self._extension.EvaluateJavaScript(poll_cmd),
118 lambda: self._extension.EvaluateJavaScript(poll_cmd),
121 return self._extension.EvaluateJavaScript('window.__enabled')
151 return tab.EvaluateJavaScript(cmd)

12345