1
0
Fork 0
firefox/dom/geolocation/test/unit/test_geolocation_timeout_wrap.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

17 lines
459 B
JavaScript

const { HttpServer } = ChromeUtils.importESModule(
"resource://testing-common/httpd.sys.mjs"
);
var httpserver = null;
function run_test() {
Services.prefs.setBoolPref("geo.provider.network.scan", false);
httpserver = new HttpServer();
httpserver.start(-1);
Services.prefs.setCharPref(
"geo.provider.network.url",
"http://localhost:" + httpserver.identity.primaryPort + "/geo"
);
run_test_in_child("./test_geolocation_timeout.js");
}