summaryrefslogtreecommitdiffstats
path: root/dom/messagechannel/tests/test_messageChannel_start.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
commitfbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch)
tree4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /dom/messagechannel/tests/test_messageChannel_start.html
parentReleasing progress-linux version 124.0.1-1~progress7.99u1. (diff)
downloadfirefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz
firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/messagechannel/tests/test_messageChannel_start.html')
-rw-r--r--dom/messagechannel/tests/test_messageChannel_start.html34
1 files changed, 17 insertions, 17 deletions
diff --git a/dom/messagechannel/tests/test_messageChannel_start.html b/dom/messagechannel/tests/test_messageChannel_start.html
index 4bc49cc0d6..f9e86da385 100644
--- a/dom/messagechannel/tests/test_messageChannel_start.html
+++ b/dom/messagechannel/tests/test_messageChannel_start.html
@@ -36,12 +36,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=677638
var events = 2;
- a.port1.onmessage = function(evt) {
+ a.port1.onmessage = function() {
ok(true, "This method should be called");
if (!--events) runTests();
}
- a.port2.onmessage = function(evt) {
+ a.port2.onmessage = function() {
ok(true, "This method should be called");
if (!--events) runTests();
}
@@ -55,11 +55,11 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=677638
a.port2.postMessage(43);
ok(true, "MessagePort{1,2}.postmessage() invoked");
- a.port1.addEventListener('message', function(evt) {
+ a.port1.addEventListener('message', function() {
ok(false, "This method should not be called");
});
- a.port2.addEventListener('message', function(evt) {
+ a.port2.addEventListener('message', function() {
ok(false, "This method should not be called");
});
@@ -76,12 +76,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=677638
var events = 2;
- a.port1.addEventListener('message', function(evt) {
+ a.port1.addEventListener('message', function() {
ok(true, "This method should be called");
if (!--events) runTests();
});
- a.port2.addEventListener('message', function(evt) {
+ a.port2.addEventListener('message', function() {
ok(true, "This method should be called");
if (!--events) runTests();
});
@@ -100,12 +100,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=677638
var events = 1;
- a.port1.addEventListener('message', function(evt) {
+ a.port1.addEventListener('message', function() {
ok(true, "This method should be called");
if (!--events) runTests();
});
- a.port2.addEventListener('message', function(evt) {
+ a.port2.addEventListener('message', function() {
ok(false, "This method should not be called");
});
@@ -122,11 +122,11 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=677638
var events = 1;
- a.port1.addEventListener('message', function(evt) {
+ a.port1.addEventListener('message', function() {
ok(false, "This method should not be called");
});
- a.port2.addEventListener('message', function(evt) {
+ a.port2.addEventListener('message', function() {
ok(true, "This method should be called");
if (!--events) runTests();
});
@@ -144,12 +144,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=677638
setTimeout(function() {
var events = 2;
- a.port1.onmessage = function(evt) {
+ a.port1.onmessage = function() {
ok(true, "This method should be called");
if (!--events) runTests();
}
- a.port2.onmessage = function(evt) {
+ a.port2.onmessage = function() {
ok(true, "This method should be called");
if (!--events) runTests();
}
@@ -167,13 +167,13 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=677638
var events = 2;
a.port1.start();
- a.port1.addEventListener('message', function(evt) {
+ a.port1.addEventListener('message', function() {
ok(true, "This method should be called");
if (!--events) runTests();
});
a.port2.start();
- a.port2.addEventListener('message', function(evt) {
+ a.port2.addEventListener('message', function() {
ok(true, "This method should be called");
if (!--events) runTests();
});
@@ -191,17 +191,17 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=677638
addEventListener('message', testOnMessageCloneCb, false);
function testOnMessageCloneCb(event) {
- a.port1.onmessage = function(evt) {
+ a.port1.onmessage = function() {
ok(true, "This method should be called");
testOnMessageCloneFinish();
}
- event.data.onmessage = function(evt) {
+ event.data.onmessage = function() {
ok(true, "This method should be called");
testOnMessageCloneFinish();
}
- a.port2.onmessage = function(evt) {
+ a.port2.onmessage = function() {
ok(false, "This method should not be called");
}
}