Tests: Workaround an XML parsing bug in Firefox

See https://bugzilla.mozilla.org/show_bug.cgi?id=1751796

Closes gh-5018
This commit is contained in:
Michał Gołębiowski-Owczarek 2022-02-28 18:26:53 +01:00 committed by GitHub
parent 683ceb8ff0
commit af1cd6f218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(