summaryrefslogtreecommitdiffstats
path: root/browser/components/shell/test
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/shell/test')
-rw-r--r--browser/components/shell/test/browser_1119088.js2
-rw-r--r--browser/components/shell/test/browser_420786.js2
-rw-r--r--browser/components/shell/test/browser_setDesktopBackgroundPreview.js2
-rw-r--r--browser/components/shell/test/head.js4
4 files changed, 5 insertions, 5 deletions
diff --git a/browser/components/shell/test/browser_1119088.js b/browser/components/shell/test/browser_1119088.js
index bc0995fe51..62fc953f44 100644
--- a/browser/components/shell/test/browser_1119088.js
+++ b/browser/components/shell/test/browser_1119088.js
@@ -101,7 +101,7 @@ add_task(async function () {
gBrowser,
url: "about:logo",
},
- async browser => {
+ async () => {
let dirSvc = Cc["@mozilla.org/file/directory_service;1"].getService(
Ci.nsIDirectoryServiceProvider
);
diff --git a/browser/components/shell/test/browser_420786.js b/browser/components/shell/test/browser_420786.js
index 025cd87943..9cbdc8c4b7 100644
--- a/browser/components/shell/test/browser_420786.js
+++ b/browser/components/shell/test/browser_420786.js
@@ -14,7 +14,7 @@ add_task(async function () {
gBrowser,
url: "about:logo",
},
- browser => {
+ () => {
var brandName = Services.strings
.createBundle("chrome://branding/locale/brand.properties")
.GetStringFromName("brandShortName");
diff --git a/browser/components/shell/test/browser_setDesktopBackgroundPreview.js b/browser/components/shell/test/browser_setDesktopBackgroundPreview.js
index b2dbe13db8..b8e2a38dd5 100644
--- a/browser/components/shell/test/browser_setDesktopBackgroundPreview.js
+++ b/browser/components/shell/test/browser_setDesktopBackgroundPreview.js
@@ -12,7 +12,7 @@ add_task(async function () {
gBrowser,
url: "about:logo",
},
- async browser => {
+ async () => {
const dialogLoad = BrowserTestUtils.domWindowOpened(null, async win => {
await BrowserTestUtils.waitForEvent(win, "load");
Assert.equal(
diff --git a/browser/components/shell/test/head.js b/browser/components/shell/test/head.js
index db1f8811fd..692ba918d0 100644
--- a/browser/components/shell/test/head.js
+++ b/browser/components/shell/test/head.js
@@ -89,7 +89,7 @@ async function testWindowSizePositive(width, height) {
}
let data = await IOUtils.read(screenshotPath);
- await new Promise((resolve, reject) => {
+ await new Promise(resolve => {
let blob = new Blob([data], { type: "image/png" });
let reader = new FileReader();
reader.onloadend = function () {
@@ -126,7 +126,7 @@ async function testGreen(url, path) {
}
let data = await IOUtils.read(path);
- let image = await new Promise((resolve, reject) => {
+ let image = await new Promise(resolve => {
let blob = new Blob([data], { type: "image/png" });
let reader = new FileReader();
reader.onloadend = function () {