diff -r 000000000000 -r 6474c204b198 dom/tests/unit/test_geolocation_timeout_wrap.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dom/tests/unit/test_geolocation_timeout_wrap.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,19 @@ +const Cc = Components.classes; +const Ci = Components.interfaces; +const Cu = Components.utils; + +Cu.import("resource://testing-common/httpd.js"); + +var httpserver = null; + +function run_test() { + var prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch); + prefs.setBoolPref("geo.wifi.scan", false); + + httpserver = new HttpServer(); + httpserver.start(-1); + prefs.setCharPref("geo.wifi.uri", "http://localhost:" + + httpserver.identity.primaryPort + "/geo"); + prefs.setBoolPref("dom.testing.ignore_ipc_principal", true); + run_test_in_child("./test_geolocation_timeout.js"); +}