Searched refs:EvaluateJavaScript (Results 1 – 25 of 107) sorted by relevance
12345
/external/chromium-trace/catapult/telemetry/telemetry/internal/actions/ |
D | play_unittest.py | 27 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK)) 28 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK)) 31 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK)) 32 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK)) 41 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK)) 42 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK)) 45 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK)) 46 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK)) 55 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_PLAYING_CHECK)) 56 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_PLAYING_CHECK)) [all …]
|
D | scroll_unittest.py | 19 self._tab.EvaluateJavaScript("""document.documentElement.scrollTop 34 self.assertTrue(self._tab.EvaluateJavaScript('window.__didBeginMeasuring')) 35 self.assertTrue(self._tab.EvaluateJavaScript('window.__didEndMeasuring')) 37 scroll_position = self._tab.EvaluateJavaScript( 59 self._tab.EvaluateJavaScript("""document.documentElement.scrollTop 62 self._tab.EvaluateJavaScript("""document.documentElement.scrollLeft 70 viewport_top = self._tab.EvaluateJavaScript( 74 viewport_left = self._tab.EvaluateJavaScript( 101 rect_top = int(self._tab.EvaluateJavaScript( 103 rect_height = int(self._tab.EvaluateJavaScript( [all …]
|
D | seek_unittest.py | 27 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK)) 28 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK)) 37 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK)) 38 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK)) 41 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK)) 42 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK)) 51 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK)) 52 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK)) 55 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK)) 56 self.assertTrue(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK)) [all …]
|
D | action_runner_unittest.py | 65 self.assertEqual(42, self._tab.EvaluateJavaScript('testing')) 74 self.assertTrue(self._tab.EvaluateJavaScript( 78 self._tab.EvaluateJavaScript('document.location.pathname;'), 88 self.assertEqual(101, self._tab.EvaluateJavaScript('window.testing')) 93 self.assertEqual(102, self._tab.EvaluateJavaScript('window.testing')) 107 self.assertEqual(220, self._tab.EvaluateJavaScript('window.testing')) 170 self.assertEqual(1, action_runner.EvaluateJavaScript('valueToTest')) 174 self.assertEqual(2, action_runner.EvaluateJavaScript('valueToTest')) 179 self.assertEqual(3, action_runner.EvaluateJavaScript('valueToTest')) 194 self.assertEqual(1, action_runner.EvaluateJavaScript('valueToTest')) [all …]
|
D | loop_unittest.py | 28 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK)) 29 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK)) 38 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK)) 39 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK)) 42 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK)) 43 self.assertTrue(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK)) 51 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK))
|
D | pinch_unittest.py | 32 2, action_runner.EvaluateJavaScript('window.__test_scaleFactor')) 34 action_runner.EvaluateJavaScript('!isNaN(window.__test_anchorLeft)')) 36 action_runner.EvaluateJavaScript('!isNaN(window.__test_anchorTop)')) 38 action_runner.EvaluateJavaScript('!!window.__test_callback')) 40 800, action_runner.EvaluateJavaScript('window.__test_speed'))
|
D | drag_unittest.py | 28 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(
|
D | repeatable_scroll_unittest.py | 21 self._tab.EvaluateJavaScript('document.documentElement.scrollTop ' 26 self._tab.EvaluateJavaScript('window.innerHeight')) 39 scroll_position = self._tab.EvaluateJavaScript( 59 scroll_position = self._tab.EvaluateJavaScript(
|
/external/autotest/client/cros/video/ |
D | native_html5_player.py | 33 return self.tab.EvaluateJavaScript('canplay()') 58 return self.tab.EvaluateJavaScript(cmd) 67 return self.tab.EvaluateJavaScript(cmd) 75 return self.tab.EvaluateJavaScript('currentTime()') 94 return self.tab.EvaluateJavaScript('finishedSeeking()')
|
D | vimeo_player.py | 23 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)
|
D | youtube_helper.py | 41 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/browser/ |
D | extension_unittest.py | 52 self._extension.EvaluateJavaScript('chrome.runtime != null')) 55 self._extension.EvaluateJavaScript('_testVar')) 67 ext[0].EvaluateJavaScript('chrome.runtime != null')) 78 extension_urls = set([ext.EvaluateJavaScript('location.href;') 149 extension.EvaluateJavaScript('chrome.runtime != null')) 151 self.assertEquals('abcdef', extension.EvaluateJavaScript('_testVar')) 172 extension.EvaluateJavaScript('chrome.runtime != null')) 174 self.assertEquals('abcdef', extension.EvaluateJavaScript('_testVar')) 206 self.assertTrue(webview_context.EvaluateJavaScript( 209 self.assertFalse(self._extension.EvaluateJavaScript(
|
D | user_agent_unittest.py | 17 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/cros/multimedia/ |
D | audio_extension_handler.py | 34 lambda: (self._extension.EvaluateJavaScript( 86 lambda: (self._extension.EvaluateJavaScript( 89 return self._extension.EvaluateJavaScript("window.__audio_info") 154 lambda: (self._extension.EvaluateJavaScript( 183 lambda: (self._extension.EvaluateJavaScript( 234 lambda: (self._extension.EvaluateJavaScript(
|
D | display_facade_native.py | 67 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( 144 return tab.EvaluateJavaScript( 227 modes = tab.EvaluateJavaScript( 562 extension.EvaluateJavaScript('__status') == 'Done'), 637 return tab.EvaluateJavaScript("window.timestamp_list")
|
/external/autotest/client/site_tests/desktopui_ConnectivityDiagnostics/ |
D | desktopui_ConnectivityDiagnostics.py | 43 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_VideoSanity/ |
D | video_VideoSanity.py | 45 return self.tab.EvaluateJavaScript('testvideo.currentTime') 55 return self.tab.EvaluateJavaScript('testvideo.duration') 72 status = self.tab.EvaluateJavaScript(js_script) 80 while float(self.tab.EvaluateJavaScript(current_time_js)) < 1.0: 86 self.tab.EvaluateJavaScript('testvideo.volume=0')
|
/external/autotest/client/site_tests/video_YouTubePage/ |
D | video_YouTubePage.py | 60 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/autotest/client/site_tests/video_YouTubeMseEme/ |
D | video_YouTubeMseEme.py | 83 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/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome_inspector/ |
D | inspector_runtime_unittest.py | 13 res = self._tab.EvaluateJavaScript('1+1') 18 lambda: self._tab.EvaluateJavaScript('fsdfsdfsf')) 23 self._tab.EvaluateJavaScript(""" 52 self.assertEquals(self._tab.EvaluateJavaScript('testVar'), 'host')
|
D | inspector_page_unittest.py | 17 self._tab.EvaluateJavaScript('document.location.pathname;'), 24 self._tab.EvaluateJavaScript('document.location.pathname;'), 36 self.assertEquals(self._tab.EvaluateJavaScript('foo'), 'bar')
|
/external/autotest/client/site_tests/video_MultiplePlayback/ |
D | video_MultiplePlayback.py | 35 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/chromium-trace/catapult/telemetry/telemetry/core/ |
D | tracing_controller_unittest.py | 23 self._tab.EvaluateJavaScript('document.location.pathname;'), 26 self._tab.EvaluateJavaScript(""" 34 self._tab.EvaluateJavaScript(""" 54 self._tab.EvaluateJavaScript(""" 98 tab.EvaluateJavaScript('console.time("%s");' % marker) 99 tab.EvaluateJavaScript('console.timeEnd("%s");' % marker)
|
/external/autotest/client/site_tests/accessibility_Sanity/ |
D | accessibility_Sanity.py | 50 lambda: self._extension.EvaluateJavaScript(poll_cmd), 62 return self._tab.EvaluateJavaScript(poll_cmd) > 0 64 return self._tab.EvaluateJavaScript(poll_cmd) == 0 82 lambda: self._extension.EvaluateJavaScript(poll_cmd) == value,
|
/external/autotest/client/site_tests/video_WebRtcPeerConnectionWithCamera/ |
D | video_WebRtcPeerConnectionWithCamera.py | 44 self.tab.EvaluateJavaScript("testCamera(%s)" % 82 test_progress = self.tab.EvaluateJavaScript(TEST_PROGRESS) 91 partial_results = self.tab.EvaluateJavaScript('getResults()') 121 results = self.tab.EvaluateJavaScript('getResults()')
|
12345