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