Index: chrome/test/functional/history.py |
=================================================================== |
--- chrome/test/functional/history.py (revision 51546) |
+++ chrome/test/functional/history.py (working copy) |
@@ -183,8 +183,12 @@ |
history = self.GetHistoryInfo().History() |
self.assertEqual(1, len(history)) |
self.assertTrue('zoinks' in history[0]['url']) # yes it gets lower-cased. |
+ # Python's time might be slightly off (~10 ms) from Chrome's time (on win). |
+ # time.time() on win counts in 1ms steps whereas it's 1us on linux. |
+ # So give the new history item some time separation, so that we can rely |
+ # on the history ordering. |
+ now = time.time() + 5 |
John Grabowski
2010/07/02 23:53:02
perhaps refactor into a routine called getNextTime
Nirnimesh
2010/07/03 00:15:18
Part of the problem is that Chrome's time is sligh
|
# Full interface (specify both title and url) |
- now = time.time() |
self.AddHistoryItem({'title': 'Google', |
'url': 'http://www.google.com', |
'time': now}) |