diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-05-05 14:16:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 14:16:41 +0200 |
commit | 297d18dd13f7b810ea5a4afeefa4cb15d9e16e16 (patch) | |
tree | 97dd7fa487c54bb884401a7214754217e4387b53 /test | |
parent | 3d62d5704989f17d3a20ae7521d52e9c8c60b4ee (diff) | |
download | jquery-297d18dd13f7b810ea5a4afeefa4cb15d9e16e16.tar.gz jquery-297d18dd13f7b810ea5a4afeefa4cb15d9e16e16.zip |
CSS: Include `show`, `hide` & `toggle` methods in the jQuery slim build
The `show()`, `hide()` & `toggle()` methods were included in the 3.x jQuery
slim build. The jQuery master build accidentally started to exclude them as
they were only imported in the effects module and the new Rollup-based build
system follows the module dependency graph when excluding modules.
To resolve the issue, import the `css/showHide.js` file directly in the main
`jquery.js` file.
Closes gh-4704
Ref jquery/jquery-migrate#346
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/css.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index 54a9a2fcc..095f3641b 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -487,9 +487,6 @@ QUnit.test( "css(Object) where values are Functions with incoming values", funct jQuery( "#cssFunctionTest" ).remove(); } ); -// .show(), .hide(), can be excluded from the build -if ( jQuery.fn.show && jQuery.fn.hide ) { - QUnit.test( "show()", function( assert ) { assert.expect( 18 ); @@ -968,8 +965,6 @@ QUnit.test( "show/hide 3.0, inline hidden", function( assert ) { } ); } ); -} - QUnit[ QUnit.jQuerySelectors && jQuery.fn.toggle ? "test" : "skip" ]( "toggle()", function( assert ) { assert.expect( 9 ); var div, oldHide, |