diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-03-11 20:03:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 20:03:54 +0100 |
commit | 0ec25abba212efde462a8abcf3376f50116fd6c4 (patch) | |
tree | ca3667e28336695a713bd55b88269ee33ba9f1c9 /test/unit/basic.js | |
parent | 84b6a0beb1de193520bb5541c841cbecc7195a5b (diff) | |
download | jquery-0ec25abba212efde462a8abcf3376f50116fd6c4.tar.gz jquery-0ec25abba212efde462a8abcf3376f50116fd6c4.zip |
Build: Run the basic test suite in jsdom
The basic test suite is now run in jsdom on all supported Node.js versions
(8, 10 & 11 as of now).
Closes gh-4310
Diffstat (limited to 'test/unit/basic.js')
-rw-r--r-- | test/unit/basic.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/basic.js b/test/unit/basic.js index b57c0c0ba..bed27dcba 100644 --- a/test/unit/basic.js +++ b/test/unit/basic.js @@ -193,7 +193,9 @@ QUnit.test( "manipulation", function( assert ) { ); } ); -QUnit.test( "offset", function( assert ) { +// Support: jsdom 13.2+ +// jsdom returns 0 for offset-related properties +QUnit[ /jsdom\//.test( navigator.userAgent ) ? "skip" : "test" ]( "offset", function( assert ) { assert.expect( 3 ); var parent = jQuery( "<div style='position:fixed;top:20px;'/>" ).appendTo( "#qunit-fixture" ), |