summaryrefslogtreecommitdiffstats
path: root/dom/promise/tests/test_promise_utils.html
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/promise/tests/test_promise_utils.html
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/promise/tests/test_promise_utils.html')
-rw-r--r--dom/promise/tests/test_promise_utils.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/dom/promise/tests/test_promise_utils.html b/dom/promise/tests/test_promise_utils.html
index b20d909351..44777dd965 100644
--- a/dom/promise/tests/test_promise_utils.html
+++ b/dom/promise/tests/test_promise_utils.html
@@ -69,7 +69,7 @@ function promiseAllIterable() {
is(values[1], 1, "Array values should match.");
is(values[2], undefined, "Array values should match.");
runTest();
- }, function(e) {
+ }, function() {
ok(false, "Promise.all shouldn't fail when an iterable is passed.");
runTest();
});
@@ -125,7 +125,7 @@ function promiseAllRejectFails() {
];
var p = Promise.all(arr);
- p.then(function(values) {
+ p.then(function() {
ok(false, "Promise.all shouldn't resolve when iterable has rejected Promises.");
runTest();
}, function(e) {
@@ -140,7 +140,7 @@ function promiseAllCastError() {
throw new ReferenceError("placeholder for nonexistent function call");
} }]);
ok(p instanceof Promise, "Should cast to a Promise.");
- p.then(function(v) {
+ p.then(function() {
ok(false, "promiseAllCastError: should've rejected.");
runTest();
}, function(e) {
@@ -161,7 +161,7 @@ function promiseAllEnumerable() {
}
is(count, 3, "Resolved array from Promise.all should be enumerable");
runTest();
- }, function(e) {
+ }, function() {
ok(false, "promiseAllEnumerable: should've resolved.");
runTest();
});
@@ -230,7 +230,7 @@ function promiseRaceIterable() {
Promise.race(participants()).then(function(winner) {
is(winner, 10, "Winner should be the one that finished earlier.");
runTest();
- }, function(e) {
+ }, function() {
ok(false, "Promise.race shouldn't throw when an iterable is passed!");
runTest();
});
@@ -257,7 +257,7 @@ function promiseRaceReject() {
function promiseRaceThrow() {
var p = Promise.race([
- new Promise(function(resolve) {
+ new Promise(function() {
throw new ReferenceError("placeholder for nonexistent function call");
}),
new Promise(function(resolve) {