summaryrefslogtreecommitdiffstats
path: root/dom/cache/test/browser/browser_cache_pb_window.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/cache/test/browser/browser_cache_pb_window.js
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz
firefox-adbda400be353e676059e335c3c0aaf99e719475.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/cache/test/browser/browser_cache_pb_window.js')
-rw-r--r--dom/cache/test/browser/browser_cache_pb_window.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/dom/cache/test/browser/browser_cache_pb_window.js b/dom/cache/test/browser/browser_cache_pb_window.js
index bb45210796..bd59063a32 100644
--- a/dom/cache/test/browser/browser_cache_pb_window.js
+++ b/dom/cache/test/browser/browser_cache_pb_window.js
@@ -2,15 +2,15 @@
var name = "pb-window-cache";
function testMatch(browser) {
- return SpecialPowers.spawn(browser, [name], function (name) {
+ return SpecialPowers.spawn(browser, [name], function () {
return new Promise((resolve, reject) => {
content.caches
.match("http://foo.com")
- .then(function (response) {
+ .then(function () {
ok(true, "caches.match() should be successful");
resolve();
})
- .catch(function (err) {
+ .catch(function () {
ok(false, "caches.match() should not throw error");
reject();
});
@@ -23,11 +23,11 @@ function testHas(browser) {
return new Promise(function (resolve, reject) {
content.caches
.has(name)
- .then(function (result) {
+ .then(function () {
ok(true, "caches.has() should be successful");
resolve();
})
- .catch(function (err) {
+ .catch(function () {
ok(false, "caches.has() should not throw error");
reject();
});
@@ -40,11 +40,11 @@ function testOpen(browser) {
return new Promise(function (resolve, reject) {
content.caches
.open(name)
- .then(function (c) {
+ .then(function () {
ok(true, "caches.open() should be successful");
resolve();
})
- .catch(function (err) {
+ .catch(function () {
ok(false, "caches.open() should not throw error");
reject();
});
@@ -57,11 +57,11 @@ function testDelete(browser) {
return new Promise(function (resolve, reject) {
content.caches
.delete(name)
- .then(function (result) {
+ .then(function () {
ok(true, "caches.delete() should be successful");
resolve();
})
- .catch(function (err) {
+ .catch(function () {
ok(false, "caches.delete should not throw error");
reject();
});
@@ -70,15 +70,15 @@ function testDelete(browser) {
}
function testKeys(browser) {
- return SpecialPowers.spawn(browser, [name], function (name) {
+ return SpecialPowers.spawn(browser, [name], function () {
return new Promise(function (resolve, reject) {
content.caches
.keys()
- .then(function (names) {
+ .then(function () {
ok(true, "caches.keys() should be successful");
resolve();
})
- .catch(function (err) {
+ .catch(function () {
ok(false, "caches.keys should not throw error");
reject();
});
@@ -129,7 +129,7 @@ function test() {
privateTab = BrowserTestUtils.addTab(pw.gBrowser, "http://example.com/");
return BrowserTestUtils.browserLoaded(privateTab.linkedBrowser);
})
- .then(tab => {
+ .then(() => {
return Promise.all([
testMatch(privateTab.linkedBrowser),
testHas(privateTab.linkedBrowser),