diff options
Diffstat (limited to 'chrome/test/functional')
-rw-r--r-- | chrome/test/functional/history.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/test/functional/history.py b/chrome/test/functional/history.py index 052fe79..ec25ce6 100644 --- a/chrome/test/functional/history.py +++ b/chrome/test/functional/history.py @@ -56,11 +56,13 @@ class HistoryTest(pyauto.PyUITest): """Invalid URLs should not go in history.""" assert not self.GetHistoryInfo().History(), 'Expecting clean history.' urls = [ self.GetFileURLForPath('some_non-existing_path'), - 'http://a.nonexisting.domain.blah', - 'ftp://this.should.not.exist/file', + self.GetFileURLForPath('another_non-existing_path'), ] for url in urls: - self.NavigateToURL(url) + if not url.startswith('file://'): + logging.warn('Using %s. Might depend on how dns failures are handled' + 'on the network' % url) + self.NavigateToURL(url) self.assertEqual(0, len(self.GetHistoryInfo().History())) def testNewTabNoHistory(self): |