diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /dom/reporting/tests/common_deprecated.js | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-upstream/125.0.1.tar.xz firefox-upstream/125.0.1.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/reporting/tests/common_deprecated.js')
-rw-r--r-- | dom/reporting/tests/common_deprecated.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/dom/reporting/tests/common_deprecated.js b/dom/reporting/tests/common_deprecated.js index 8f8415fcf3..f3ff1028be 100644 --- a/dom/reporting/tests/common_deprecated.js +++ b/dom/reporting/tests/common_deprecated.js @@ -1,5 +1,7 @@ let testingInterface; +/* eslint-disable mozilla/no-comparison-or-assignment-inside-ok */ + // eslint-disable-next-line no-unused-vars function test_deprecatedInterface() { info("Testing DeprecatedTestingInterface report"); @@ -34,7 +36,7 @@ function test_deprecatedInterface() { .replace("worker_deprecated.js", "common_deprecated.js"), "We have a sourceFile" ); - is(report.body.lineNumber, 48, "We have a lineNumber"); + is(report.body.lineNumber, 50, "We have a lineNumber"); is(report.body.columnNumber, 24, "We have a columnNumber"); obs.disconnect(); @@ -86,7 +88,7 @@ function test_deprecatedMethod() { .replace("worker_deprecated.js", "common_deprecated.js"), "We have a sourceFile" ); - is(report.body.lineNumber, 100, "We have a lineNumber"); + is(report.body.lineNumber, 102, "We have a lineNumber"); is(report.body.columnNumber, 22, "We have a columnNumber"); obs.disconnect(); @@ -122,7 +124,7 @@ function test_deprecatedMethodWithDataURI() { }; </script>`; - return new Promise((resolve, reject) => { + return new Promise(resolve => { window.open(uri); window.addEventListener("message", e => { is(e.data, "passed", "The data URI is truncated"); @@ -167,7 +169,7 @@ function test_deprecatedAttribute() { .replace("worker_deprecated.js", "common_deprecated.js"), "We have a sourceFile" ); - is(report.body.lineNumber, 181, "We have a lineNumber"); + is(report.body.lineNumber, 183, "We have a lineNumber"); is(report.body.columnNumber, 8, "We have a columnNumber"); obs.disconnect(); |