summaryrefslogtreecommitdiffstats
path: root/parser/htmlparser/tests/mochitest
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 /parser/htmlparser/tests/mochitest
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 'parser/htmlparser/tests/mochitest')
-rw-r--r--parser/htmlparser/tests/mochitest/parser_datreader.js2
-rw-r--r--parser/htmlparser/tests/mochitest/parser_web_testrunner.js2
-rw-r--r--parser/htmlparser/tests/mochitest/test_bug1646140-1.html2
-rw-r--r--parser/htmlparser/tests/mochitest/test_bug1646140-2.html2
4 files changed, 4 insertions, 4 deletions
diff --git a/parser/htmlparser/tests/mochitest/parser_datreader.js b/parser/htmlparser/tests/mochitest/parser_datreader.js
index d3d3ea2c89..081e326724 100644
--- a/parser/htmlparser/tests/mochitest/parser_datreader.js
+++ b/parser/htmlparser/tests/mochitest/parser_datreader.js
@@ -13,7 +13,7 @@
/**
* A few utility functions.
*/
-function log(entry) {}
+function log() {}
function startsWith(s, s2) {
return s.indexOf(s2) == 0;
diff --git a/parser/htmlparser/tests/mochitest/parser_web_testrunner.js b/parser/htmlparser/tests/mochitest/parser_web_testrunner.js
index 5a0cfc64c8..49c09d484a 100644
--- a/parser/htmlparser/tests/mochitest/parser_web_testrunner.js
+++ b/parser/htmlparser/tests/mochitest/parser_web_testrunner.js
@@ -60,7 +60,7 @@ function writeErrorSummary(input, expected, got, isTodo) {
* event handler returned by makeTestChecker() or the callback returned by
* makeFragmentTestChecker() until the 'testcases' iterator is spent.
*/
-function makeTestChecker(input, expected, errors) {
+function makeTestChecker(input, expected) {
return function (e) {
var domAsString = docToTestOutput(e.target.contentDocument);
if (html5Exceptions[input]) {
diff --git a/parser/htmlparser/tests/mochitest/test_bug1646140-1.html b/parser/htmlparser/tests/mochitest/test_bug1646140-1.html
index 8592d0d17f..5dfe7cd8e8 100644
--- a/parser/htmlparser/tests/mochitest/test_bug1646140-1.html
+++ b/parser/htmlparser/tests/mochitest/test_bug1646140-1.html
@@ -7,7 +7,7 @@
SimpleTest.waitForExplicitFinish();
window.svgRanScript = false;
-const o = new MutationObserver(mutations => {
+const o = new MutationObserver(() => {
o.disconnect();
setTimeout(() => {
ok(!svgRanScript, "svg onload must not fire");
diff --git a/parser/htmlparser/tests/mochitest/test_bug1646140-2.html b/parser/htmlparser/tests/mochitest/test_bug1646140-2.html
index 11c370d401..9ea4f305a4 100644
--- a/parser/htmlparser/tests/mochitest/test_bug1646140-2.html
+++ b/parser/htmlparser/tests/mochitest/test_bug1646140-2.html
@@ -10,7 +10,7 @@ document.addEventListener("copy", ev => {
ev.preventDefault();
ev.clipboardData.setData('text/html', "<svg><style><svg/onload=\"window.svgRanScript=true\">");
});
-const o = new MutationObserver(mutations => {
+const o = new MutationObserver(() => {
o.disconnect();
setTimeout(() => {
ok(!svgRanScript, "svg onload must not fire");