Tests: Skip a scrollbar test in jQuery 3.2

jQuery 3.2 incorrectly handle scrollbars in WebKit/Blink-based browsers.
This is fixed in version 3.3, see https://github.com/jquery/jquery/issues/3589.
As the data here comes from jQuery directly and the changes to fix it
are non-trivial: https://github.com/jquery/jquery/pull/3656, just accept
that scrollbar data in this jQuery version is inaccurate.

Closes gh-1927
Ref jquery/jquery#3589
Ref jquery/jquery#3656
This commit is contained in:
Michał Gołębiowski-Owczarek 2020-07-23 15:51:15 +02:00 committed by GitHub
parent 42bcdb90f6
commit b8ec78a37a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -640,7 +640,13 @@ QUnit.test( "within", function( assert ) {
}, "flipfit - left top" );
} );
QUnit.test( "with scrollbars", function( assert ) {
// jQuery 3.2 incorrectly handle scrollbars in WebKit/Blink-based browsers.
// This is fixed in version 3.3, see https://github.com/jquery/jquery/issues/3589.
// As the data here comes from jQuery directly and the changes to fix it
// are non-trivial: https://github.com/jquery/jquery/pull/3656, just accept
// that scrollbar data in this jQuery version is inaccurate.
QUnit[ jQuery.fn.jquery.substring( 0, 4 ) === "3.2." ? "skip" : "test" ](
"with scrollbars", function( assert ) {
assert.expect( 4 );
$( "#scrollx" ).css( {