Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8047)

Unified Diff: chrome/test/functional/instant.py

Issue 6264007: Fix instant test on Mac: use cgi.parse_qs() instead of urlparse.urlparse() (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/instant.py
===================================================================
--- chrome/test/functional/instant.py (revision 72080)
+++ chrome/test/functional/instant.py (working copy)
@@ -4,11 +4,11 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import cgi
import os
import pyauto_functional # Must be imported before pyauto
import pyauto
-import urlparse
class InstantTest(pyauto.PyUITest):
@@ -33,7 +33,7 @@
self.assertTrue(self.WaitUntil(self._DoneLoading))
location = self.GetInstantInfo().get('location')
if location is not None:
- q = urlparse.parse_qs(location).get('q')
+ q = cgi.parse_qs(location).get('q')
if q is not None and query in q:
return True
return False
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698