Bug 497884: Intermittent failure in test_classifier.html and test_classifier_worker.html, test harness only change. r=sdwilsh CLOSED TREE
authorDave Townsend <dtownsend@oxymoronical.com>
Wed, 24 Jun 2009 16:44:22 +0100
changeset 26029 0da7f782727e16724f6b63dcd1d1f7cb08d435d8
parent 26023 2747b209db853b8d6fb39d88f05472b3cc03613f
child 26030 bbbc2ea2b79da476bae8b586cc1a8fe22e8911d5
push id1741
push userdtownsend@mozilla.com
push dateWed, 24 Jun 2009 16:29:36 +0000
reviewerssdwilsh
bugs497884
milestone1.9.1pre
Bug 497884: Intermittent failure in test_classifier.html and test_classifier_worker.html, test harness only change. r=sdwilsh CLOSED TREE
build/automation.py.in
--- a/build/automation.py.in
+++ b/build/automation.py.in
@@ -246,16 +246,22 @@ user_pref("browser.EULA.override", true)
 user_pref("javascript.options.jit.content", true);
 user_pref("gfx.color_management.force_srgb", true);
 user_pref("security.default_personal_cert", "Select Automatically"); // Need to client auth test be w/o any dialogs
 user_pref("network.http.prompt-temp-redirect", false);
 user_pref("media.cache_size", 100);
 
 user_pref("geo.wifi.uri", "http://localhost:8888/tests/dom/tests/mochitest/geolocation/network_geolocation.sjs");
 user_pref("camino.warn_when_closing", false); // Camino-only, harmless to others
+
+// Point the url-classifier to the local testing server for fast failures
+user_pref("browser.safebrowsing.provider.0.gethashURL", "http://localhost:8888/safebrowsing-dummy/gethash");
+user_pref("browser.safebrowsing.provider.0.keyURL", "http://localhost:8888/safebrowsing-dummy/newkey");
+user_pref("browser.safebrowsing.provider.0.lookupURL", "http://localhost:8888/safebrowsing-dummy/lookup");
+user_pref("browser.safebrowsing.provider.0.updateURL", "http://localhost:8888/safebrowsing-dummy/update");
 """
   prefs.append(part)
 
   locations = readLocations()
 
   # Grant God-power to all the privileged servers on which tests run.
   privileged = filter(lambda loc: "privileged" in loc.options, locations)
   for (i, l) in itertools.izip(itertools.count(1), privileged):