summaryrefslogtreecommitdiffstats
path: root/devtools/client/jsonview/test
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/jsonview/test')
-rw-r--r--devtools/client/jsonview/test/browser_jsonview_content_type.js2
-rw-r--r--devtools/client/jsonview/test/browser_jsonview_expand_collapse.js2
-rw-r--r--devtools/client/jsonview/test/browser_jsonview_save_json.js2
-rw-r--r--devtools/client/jsonview/test/browser_jsonview_serviceworker.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/devtools/client/jsonview/test/browser_jsonview_content_type.js b/devtools/client/jsonview/test/browser_jsonview_content_type.js
index c3298cc7d9..f72ac14b5d 100644
--- a/devtools/client/jsonview/test/browser_jsonview_content_type.js
+++ b/devtools/client/jsonview/test/browser_jsonview_content_type.js
@@ -34,7 +34,7 @@ add_task(async function () {
);
SpecialPowers.setBoolPref("browser.download.useDownloadDir", false);
const { MockFilePicker } = SpecialPowers;
- MockFilePicker.init(window);
+ MockFilePicker.init(window.browsingContext);
MockFilePicker.returnValue = MockFilePicker.returnCancel;
for (const kind of Object.keys(contentTypes)) {
diff --git a/devtools/client/jsonview/test/browser_jsonview_expand_collapse.js b/devtools/client/jsonview/test/browser_jsonview_expand_collapse.js
index 46ce800b1f..04e0834f2a 100644
--- a/devtools/client/jsonview/test/browser_jsonview_expand_collapse.js
+++ b/devtools/client/jsonview/test/browser_jsonview_expand_collapse.js
@@ -45,7 +45,7 @@ add_task(async function () {
const json = JSON.stringify({
data: Array(1e5)
.fill()
- .map(x => "hoot"),
+ .map(() => "hoot"),
status: "ok",
});
Assert.greater(
diff --git a/devtools/client/jsonview/test/browser_jsonview_save_json.js b/devtools/client/jsonview/test/browser_jsonview_save_json.js
index 506967df00..d83741685e 100644
--- a/devtools/client/jsonview/test/browser_jsonview_save_json.js
+++ b/devtools/client/jsonview/test/browser_jsonview_save_json.js
@@ -8,7 +8,7 @@ const saveButton = "button.save";
const prettifyButton = "button.prettyprint";
const { MockFilePicker } = SpecialPowers;
-MockFilePicker.init(window);
+MockFilePicker.init(window.browsingContext);
MockFilePicker.returnValue = MockFilePicker.returnOK;
Services.scriptloader.loadSubScript(
diff --git a/devtools/client/jsonview/test/browser_jsonview_serviceworker.js b/devtools/client/jsonview/test/browser_jsonview_serviceworker.js
index 3d68cad065..c8be1a939a 100644
--- a/devtools/client/jsonview/test/browser_jsonview_serviceworker.js
+++ b/devtools/client/jsonview/test/browser_jsonview_serviceworker.js
@@ -34,7 +34,7 @@ add_task(async function () {
resolve();
return;
}
- worker.addEventListener("statechange", evt => {
+ worker.addEventListener("statechange", () => {
if (worker.state === "activated") {
resolve();
}