diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2022-02-28 18:26:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 18:26:53 +0100 |
commit | af1cd6f218f699abc34b1582a910c0df00312aee (patch) | |
tree | 8973e173c742db489771b04adfe5b10440e8da43 | |
parent | 683ceb8ff067ac53a7cb464ba1ec3f88e353e3f5 (diff) | |
download | jquery-af1cd6f218f699abc34b1582a910c0df00312aee.tar.gz jquery-af1cd6f218f699abc34b1582a910c0df00312aee.zip |
Tests: Workaround an XML parsing bug in Firefox
See https://bugzilla.mozilla.org/show_bug.cgi?id=1751796
Closes gh-5018
-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 115d3117d..d7e935a36 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1456,7 +1456,13 @@ QUnit.testUnlessIE( "jQuery.parseXML - error reporting", function( assert ) { 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( |