diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2022-02-28 18:26:53 +0100 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2022-02-28 18:28:14 +0100 |
commit | be3bd560f47ba46e01dcf42c3f6833aaa8596a33 (patch) | |
tree | 8bec8565dc9b33caaced254cc93acf0da04e8676 | |
parent | b24e83bd9d7fceedadf1fe32a5982972500b772c (diff) | |
download | jquery-be3bd560f47ba46e01dcf42c3f6833aaa8596a33.tar.gz jquery-be3bd560f47ba46e01dcf42c3f6833aaa8596a33.zip |
Tests: Workaround an XML parsing bug in Firefox
See https://bugzilla.mozilla.org/show_bug.cgi?id=1751796
Closes gh-5018
(cherry picked from commit af1cd6f218f699abc34b1582a910c0df00312aee)
-rw-r--r-- | test/unit/core.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/unit/core.js b/test/unit/core.js index 15b84b89d..75266b9cd 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1454,7 +1454,13 @@ QUnit[ column = columnMatch && columnMatch[ 1 ]; assert.strictEqual( line, "1", "reports error line" ); - assert.strictEqual( column, "11", "reports error column" ); + + // Support: Firefox 96-97+ + // Newer Firefox may report the column number smaller by 2 than it should. + // Accept both values until the issue is fixed. + // See https://bugzilla.mozilla.org/show_bug.cgi?id=1751796 + assert.ok( [ "9", "11" ].indexOf( column ) > -1, "reports error column" ); + // assert.strictEqual( column, "11", "reports error column" ); } ); testIframe( |