summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/script/test_bug1788532_moduleA.mjs
blob: d667aac48265b2503446dc5fd777ad147ea45102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
let xhrFinished = false;

import("./test_bug1788532_moduleB.mjs")
  .then(() => {
    ok(xhrFinished, "Loaded after XHR finished");
    SimpleTest.finish();
  })
  .catch(e => {
    ok(false, "Caught exception: " + e);
  });

let request = new XMLHttpRequest();
request.open("GET", "./slow.sjs", false);
request.send(null);
xhrFinished = true;