diff options
author | sreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-13 00:36:24 +0000 |
---|---|---|
committer | sreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-13 00:36:24 +0000 |
commit | ea0785cb9bd36e997d8052c74d646410879ed3fc (patch) | |
tree | b3c4804a601a90c4886122a6f37794997fc55728 | |
parent | ab873dd73be8ac1a01dde02a339f5864d6dbebeb (diff) | |
download | chromium_src-ea0785cb9bd36e997d8052c74d646410879ed3fc.zip chromium_src-ea0785cb9bd36e997d8052c74d646410879ed3fc.tar.gz chromium_src-ea0785cb9bd36e997d8052c74d646410879ed3fc.tar.bz2 |
Use a valid 100 chars long query in test.
As it turns out, '#' repeated a hundred times doesn't trigger results from
Google (verified by issuing the same query on www.google.com). Instead, use
'abcd...', which seems to work, for now.
BUG=99866
TEST=python pyauto_functional.py instant.InstantTest.testInstantLoadsFor100CharsLongQuery
Review URL: http://codereview.chromium.org/8244010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105214 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/test/functional/PYAUTO_TESTS | 2 | ||||
-rw-r--r-- | chrome/test/functional/instant.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/test/functional/PYAUTO_TESTS b/chrome/test/functional/PYAUTO_TESTS index 8844bc6..a7ea0ed 100644 --- a/chrome/test/functional/PYAUTO_TESTS +++ b/chrome/test/functional/PYAUTO_TESTS @@ -90,8 +90,6 @@ '-downloads.DownloadsTest.testBigZip', '-downloads.DownloadsTest.testFileRenaming', '-downloads.DownloadsTest.testCrazyFilenames', - # crbug.com/99866 - '-instant.InstantTest.testInstantLoadsFor100CharsLongQuery', # crbug.com/99506 '-notifications.NotificationsTest.testSpecialURLNotification', # crbug.com/71715 diff --git a/chrome/test/functional/instant.py b/chrome/test/functional/instant.py index 5185019..f05f4a0 100644 --- a/chrome/test/functional/instant.py +++ b/chrome/test/functional/instant.py @@ -140,7 +140,9 @@ class InstantTest(pyauto.PyUITest): def testInstantLoadsFor100CharsLongQuery(self): """Test that instant loads for search query of 100 characters.""" - query = '#' * 100 + query = 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz' \ + 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv' + self.assertEqual(100, len(query)) self.SetOmniboxText(query) self.assertTrue(self.WaitUntil(self._DoneLoadingGoogleQuery, args=[query])) |