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

Unified Diff: chrome/test/webdriver/run_webdriver_tests.py

Issue 6694007: Small test and ChromeDriver fixes to enable additional tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 9 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
Index: chrome/test/webdriver/run_webdriver_tests.py
diff --git a/chrome/test/webdriver/run_webdriver_tests.py b/chrome/test/webdriver/run_webdriver_tests.py
index 527846aa0d1cc1f63e35edb0c3765fb5187c10a3..7e798160ee8a903aaf5dee4de917f0df7a4bbad8 100644
--- a/chrome/test/webdriver/run_webdriver_tests.py
+++ b/chrome/test/webdriver/run_webdriver_tests.py
@@ -243,8 +243,21 @@ class Main(object):
logging.debug('Excluded %d test(s): %s' % (len(excluded), excluded))
return args
+ def _FakePytestHack(self):
+ """Adds a fake 'pytest' module to the system modules.
+
+ This is a hack for getting the text_handling_tests to run. It is the only
dennis_jeffrey 2011/03/23 16:57:02 Optional: you may want to describe why this hack e
kkania 2011/03/26 01:58:32 Done.
+ file that uses the pytest module, which we're not sure we want to pull
+ into chromium yet.
dennis_jeffrey 2011/03/23 16:57:02 This comment may be ambiguous: what is it that you
kkania 2011/03/26 01:58:32 Done.
+ """
+ import imp
+ sys.modules['pytest'] = imp.new_module('pytest')
+
def _Run(self):
"""Run the tests."""
+ # TODO(kkania): Remove this hack.
+ self._FakePytestHack()
+
test_names = self._GetTestNames(self._args)
# The tests expect to run with preset 'driver' and 'webserver' class

Powered by Google App Engine
This is Rietveld 408576698