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

Unified Diff: tools/testing/run_selenium.py

Issue 9361040: Reduce flakiness of browser tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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: tools/testing/run_selenium.py
===================================================================
--- tools/testing/run_selenium.py (revision 4018)
+++ tools/testing/run_selenium.py (working copy)
@@ -111,7 +111,10 @@
if browser == 'chrome':
browser = selenium.webdriver.Chrome()
elif browser == 'ff':
- browser = selenium.webdriver.Firefox()
+ profile = selenium.webdriver.firefox.firefox_profile.FirefoxProfile()
+ profile.set_preference('dom.max_script_run_time', 0)
Emily Fortuna 2012/02/08 18:03:21 This is to prevent Firefox from popping up a windo
+ profile.set_preference('dom.max_chrome_script_run_time', 0)
+ browser = selenium.webdriver.Firefox(firefox_profile=profile)
elif browser == 'ie' and platform.system() == 'Windows':
browser = selenium.webdriver.Ie()
elif browser == 'safari' and platform.system() == 'Darwin':
« tools/testing/dart/test_suite.dart ('K') | « tools/testing/perf_testing/create_graph.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698