mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
20 lines
619 B
JavaScript
20 lines
619 B
JavaScript
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("geo.testing.ignore_ipc_principal", true);
|
|
run_test_in_child("./test_geolocation_timeout.js");
|
|
}
|