Index: chrome/test/functional/apptest.py |
diff --git a/chrome/test/functional/apptest.py b/chrome/test/functional/apptest.py |
index 233e76e22d27b967ad744d845b900ed25b7848fb..1f55f91c5c37f117d54b2e5ef3b254b16cd149b3 100644 |
--- a/chrome/test/functional/apptest.py |
+++ b/chrome/test/functional/apptest.py |
@@ -43,6 +43,15 @@ class PyAutoEventsTest(pyauto.PyUITest): |
self.GetNextEvent(self.AddDomMutationObserver('remove', 'id("fail")/a')) |
self.GetNextEvent(success_id) |
+ def testWaitUntilNavigationCompletes(self): |
+ """Basic test for WaitUntilNavigationCompletes.""" |
+ url = self.GetHttpURLForDataPath('apptest', 'dom_mutations.html') |
+ js = """window.location.href = "%s"; |
+ window.domAutomationController.send("done");""" % url |
+ self.ExecuteJavascript(js) |
+ self.WaitUntilNavigationCompletes() |
+ self.WaitForDomNode('id("login")') |
+ |
def _ExpectEvent(self, event_id, expected_event_name): |
"""Checks that the next event is expected.""" |
e = self.GetNextEvent(event_id) |