summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/test/mochitest/webrequest_test.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/extensions/test/mochitest/webrequest_test.jsm')
-rw-r--r--toolkit/components/extensions/test/mochitest/webrequest_test.jsm22
1 files changed, 0 insertions, 22 deletions
diff --git a/toolkit/components/extensions/test/mochitest/webrequest_test.jsm b/toolkit/components/extensions/test/mochitest/webrequest_test.jsm
deleted file mode 100644
index bfb148301..000000000
--- a/toolkit/components/extensions/test/mochitest/webrequest_test.jsm
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-
-this.EXPORTED_SYMBOLS = ["webrequest_test"];
-
-Components.utils.importGlobalProperties(["fetch", "XMLHttpRequest"]);
-
-this.webrequest_test = {
- testFetch(url) {
- return fetch(url);
- },
-
- testXHR(url) {
- return new Promise(resolve => {
- let xhr = new XMLHttpRequest();
- xhr.open("HEAD", url);
- xhr.onload = () => {
- resolve();
- };
- xhr.send();
- });
- },
-};