2012-12-31 16:36:46 +00:00
|
|
|
const Cc = Components.classes;
|
|
|
|
const Ci = Components.interfaces;
|
2013-07-10 03:45:02 +00:00
|
|
|
const Cu = Components.utils;
|
|
|
|
|
|
|
|
Cu.import("resource://testing-common/httpd.js");
|
|
|
|
|
|
|
|
var httpserver = null;
|
2012-12-31 16:36:46 +00:00
|
|
|
|
|
|
|
function run_test() {
|
|
|
|
var prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch);
|
|
|
|
prefs.setBoolPref("geo.wifi.scan", false);
|
2013-07-10 03:45:02 +00:00
|
|
|
|
|
|
|
httpserver = new HttpServer();
|
|
|
|
httpserver.start(-1);
|
|
|
|
prefs.setCharPref("geo.wifi.uri", "http://localhost:" +
|
|
|
|
httpserver.identity.primaryPort + "/geo");
|
2013-12-02 15:27:57 +00:00
|
|
|
prefs.setBoolPref("dom.testing.ignore_ipc_principal", true);
|
2012-12-31 16:36:46 +00:00
|
|
|
run_test_in_child("./test_geolocation_timeout.js");
|
2013-01-02 21:21:37 +00:00
|
|
|
}
|