summaryrefslogtreecommitdiffstats
path: root/dom/tests/unit/test_geolocation_timeout_wrap.js
blob: 79691a4564234a4f8a0ac0a403152b5846978f1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const { HttpServer } = ChromeUtils.import("resource://testing-common/httpd.js");
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");

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");
}