Index: chrome/test/functional/chromeos_login.py |
diff --git a/chrome/test/functional/chromeos_login.py b/chrome/test/functional/chromeos_login.py |
index db4995184094e5bacc9e09f266601a97d4221173..cfe0dbfe9f5dcfb938bc498431cf2f810be116d4 100755 |
--- a/chrome/test/functional/chromeos_login.py |
+++ b/chrome/test/functional/chromeos_login.py |
@@ -206,7 +206,12 @@ class ChromeosLogin(pyauto.PyUITest): |
# Build up some history and setup state in "Local State". |
url = self.GetHttpURLForDataPath('title2.html') |
- self.NavigateToURL(url) |
+ def _NavigateAndRecord(): |
+ self.NavigateToURL(url) |
craigdh
2012/08/17 00:29:49
Do you need to navigate every time you try this? O
Nirnimesh
2012/08/17 00:39:19
Done.
|
+ return len(self.GetHistoryInfo().History()) |
+ # chromeos often takes a while to register URLs into history. |
+ self.assertTrue(self.WaitUntil(_NavigateAndRecord), |
+ msg='Could not open %s successfully' % url) |
open('/home/chronos/__magic__', 'w').close() |
open('/home/chronos/user/__magic__', 'w').close() |