Skip to content
Permalink
Browse files

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 jquery/jquery#3589.
As the data here comes from jQuery directly and the changes to fix it
are non-trivial: jquery/jquery#3656, just accept
that scrollbar data in this jQuery version is inaccurate.

Closes gh-1927
Ref jquery/jquery#3589
Ref jquery/jquery#3656
  • Loading branch information
mgol committed Jul 23, 2020
1 parent 42bcdb9 commit b8ec78a37af50b95bab71416b8593e84b239fca7
Showing with 7 additions and 1 deletion.
  1. +7 −1 tests/unit/position/core.js
@@ -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( {

0 comments on commit b8ec78a

Please sign in to comment.
You can’t perform that action at this time.