Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1368)

Unified Diff: telemetry/telemetry/internal/actions/action_runner_unittest.py

Issue 2453413002: [Telemetry] Provide convenient method to WaitForNetworkQuiescene (Closed)
Patch Set: Add pydoc Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « telemetry/telemetry/internal/actions/action_runner.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/actions/action_runner_unittest.py
diff --git a/telemetry/telemetry/internal/actions/action_runner_unittest.py b/telemetry/telemetry/internal/actions/action_runner_unittest.py
index 90905b81e0bead3ffc0f4c2792ba0bbe181f21e5..d43ad3593cf2c5a867ad17150e0063fdbee61f6a 100644
--- a/telemetry/telemetry/internal/actions/action_runner_unittest.py
+++ b/telemetry/telemetry/internal/actions/action_runner_unittest.py
@@ -354,6 +354,14 @@ class ActionRunnerTest(tab_test_case.TabTestCase):
self.assertTrue(action_runner.EvaluateJavaScript(
'(document.scrollingElement || document.body).scrollLeft') > 75)
+ def testWaitForNetworkQuiescenceSmoke(self):
+ self.Navigate('blank.html')
+ action_runner = action_runner_module.ActionRunner(self._tab)
+ action_runner.WaitForNetworkQuiescence()
+ self.assertEqual(
+ self._tab.EvaluateJavaScript('document.location.pathname;'),
+ '/blank.html')
+
def testEnterText(self):
self.Navigate('blank.html')
self._tab.ExecuteJavaScript(
« no previous file with comments | « telemetry/telemetry/internal/actions/action_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698