Home
last modified time | relevance | path

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

1234

/external/chromium_org/tools/telemetry/telemetry/page/actions/
Dplay_unittest.py27 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 …]
Dseek_unittest.py25 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK))
26 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK))
34 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK))
35 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK))
38 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK))
39 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK))
47 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK))
48 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK))
51 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_SEEKED_CHECK))
52 self.assertTrue(self._tab.EvaluateJavaScript(AUDIO_1_SEEKED_CHECK))
[all …]
Dscroll_unittest.py22 self._tab.EvaluateJavaScript("""document.documentElement.scrollTop
37 self.assertTrue(self._tab.EvaluateJavaScript('window.__didBeginMeasuring'))
38 self.assertTrue(self._tab.EvaluateJavaScript('window.__didEndMeasuring'))
41 scroll_position = self._tab.EvaluateJavaScript(
44 scroll_height = self._tab.EvaluateJavaScript('document.body.scrollHeight')
73 rect_top = int(self._tab.EvaluateJavaScript(
75 rect_height = int(self._tab.EvaluateJavaScript(
79 rect_left = int(self._tab.EvaluateJavaScript(
81 rect_width = int(self._tab.EvaluateJavaScript(
85 viewport_height = int(self._tab.EvaluateJavaScript('window.innerHeight'))
[all …]
Daction_runner_unittest.py65 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'))
193 self.assertEqual(1, action_runner.EvaluateJavaScript('valueToTest'))
[all …]
Dloop_unittest.py27 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK))
28 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK))
36 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK))
37 self.assertFalse(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK))
40 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK))
41 self.assertTrue(self._tab.EvaluateJavaScript(AUDIO_1_LOOP_CHECK))
49 self.assertFalse(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK))
Dpinch_unittest.py32 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'))
Dpage_action.py110 return tab.EvaluateJavaScript(code)
124 if tab.EvaluateJavaScript("""
130 return tab.EvaluateJavaScript("""
Dpinch.py33 if not tab.EvaluateJavaScript('window.__PinchAction_SupportedByBrowser()'):
38 if not tab.EvaluateJavaScript('chrome.gpuBenchmarking.newPinchInterface'):
60 current_scale_factor = tab.EvaluateJavaScript(
Dmedia_action.py43 if tab.EvaluateJavaScript(
46 error = tab.EvaluateJavaScript('window.__error')
/external/chromium_org/tools/telemetry/telemetry/core/
Dextension_unittest.py51 self._extension.EvaluateJavaScript('chrome.runtime != null'))
54 self._extension.EvaluateJavaScript('_testVar'))
66 ext[0].EvaluateJavaScript('chrome.runtime != null'))
75 extension_urls = set([ext.EvaluateJavaScript('location.href;')
148 extension.EvaluateJavaScript('chrome.runtime != null'))
150 self.assertEquals('abcdef', extension.EvaluateJavaScript('_testVar'))
171 extension.EvaluateJavaScript('chrome.runtime != null'))
173 self.assertEquals('abcdef', extension.EvaluateJavaScript('_testVar'))
Dweb_contents.py46 return bool(self.EvaluateJavaScript(expr))
56 raise util.TimeoutException(e.message + self.EvaluateJavaScript("""
92 self.EvaluateJavaScript(self._quiescence_js +
104 def EvaluateJavaScript(self, expr, timeout=DEFAULT_WEB_CONTENTS_TIMEOUT): member in WebContents
132 return self._inspector_backend.EvaluateJavaScript(
Dmemory_cache_http_server_unittest.py20 x = self._tab.EvaluateJavaScript('document.body.innerHTML')
62 content_range = self._tab.EvaluateJavaScript(
67 content_length = self._tab.EvaluateJavaScript(
Dbrowser_info.py33 result = tab.EvaluateJavaScript(_check_webgl_supported_script)
37 result = tab.EvaluateJavaScript(_check_webgl_supported_script)
/external/chromium_org/content/test/gpu/gpu_tests/
Dcontext_lost.py72 util.WaitFor(lambda: tab.EvaluateJavaScript(
89 tab.EvaluateJavaScript(
95 util.WaitFor(lambda: tab.EvaluateJavaScript(
115 if not tab.EvaluateJavaScript(
157 if not tab.EvaluateJavaScript(
171 if not tab.EvaluateJavaScript(
182 tab.EvaluateJavaScript('loseContextUsingExtension()')
189 if not tab.EvaluateJavaScript(
197 if not tab.EvaluateJavaScript(
Dgpu_rasterization.py28 return tab.EvaluateJavaScript('domAutomationController._succeeded')
51 device_pixel_ratio = tab.EvaluateJavaScript('window.devicePixelRatio')
Dhardware_accelerated_feature.py31 if not tab.EvaluateJavaScript('VerifyHardwareAccelerated("%s")' % feature):
33 print tab.EvaluateJavaScript('document.body.innerHTML')
/external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/
Dinspector_runtime_unittest.py12 res = self._tab.EvaluateJavaScript('1+1')
17 lambda: self._tab.EvaluateJavaScript('fsdfsdfsf'))
22 self._tab.EvaluateJavaScript("""
50 self.assertEquals(self._tab.EvaluateJavaScript('testVar'), 'host')
Dinspector_page_unittest.py15 self._tab.EvaluateJavaScript('document.location.pathname;'),
22 self._tab.EvaluateJavaScript('document.location.pathname;'),
34 self.assertEquals(self._tab.EvaluateJavaScript('foo'), 'bar')
Dcros_unittest.py89 self.assertTrue(extension.EvaluateJavaScript(
97 browser.oobe.EvaluateJavaScript("typeof Oobe == 'function'") and
98 browser.oobe.EvaluateJavaScript(
106 return not browser.oobe.EvaluateJavaScript('''
Dinspector_console_unittest.py19 initial = self._tab.EvaluateJavaScript('window.__logCount')
21 current = self._tab.EvaluateJavaScript('window.__logCount')
Dinspector_backend.py99 return not self.EvaluateJavaScript("""
107 self.EvaluateJavaScript("""
122 return self.EvaluateJavaScript(
127 snap = self.EvaluateJavaScript("""
175 def EvaluateJavaScript(self, expr, context_id=None, timeout=60): member in InspectorBackend
/external/chromium_org/chrome/test/telemetry/chromeos/
Dlogin_unittest.py62 self.assertTrue(extension.EvaluateJavaScript(
71 lambda: extension.EvaluateJavaScript('window.__login_status'), 10)
113 self.assertTrue(extension.EvaluateJavaScript(
121 browser.oobe.EvaluateJavaScript("typeof Oobe == 'function'") and
122 browser.oobe.EvaluateJavaScript(
130 return not browser.oobe.EvaluateJavaScript('''
198 return browser.oobe.EvaluateJavaScript(
237 util.WaitFor(lambda: browser.oobe.EvaluateJavaScript(
/external/chromium_org/tools/perf/metrics/
Dstartup_metric.py56 result = t.EvaluateJavaScript(
64 tab_title = t.EvaluateJavaScript('document.title')
96 result = tab.EvaluateJavaScript(get_histogram_js % histogram_name)
/external/chromium_org/tools/perf/measurements/
Dimage_decoding.py71 return tab.EvaluateJavaScript('isDone')
85 min_iterations = tab.EvaluateJavaScript('minIterations')
99 tab.EvaluateJavaScript('averageLoadingTimeMs()')))
/external/chromium_org/tools/perf/benchmarks/
Dspeedometer.py60 tab.EvaluateJavaScript('benchmarkClient._timeValues'), important=True))
66 tab.EvaluateJavaScript("""

1234