aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2014-03-20 03:39:36 -0400
committerDave Methvin <dave.methvin@gmail.com>2014-03-20 22:54:38 -0400
commit890d441aa5d319e49951ba6f0ec719cd4cb96759 (patch)
tree7cad3a1a1904a0928f84fad7de1d39e283fc3f78 /test/unit
parent5a8f76933288396b915800a18240aa17d3414201 (diff)
downloadjquery-890d441aa5d319e49951ba6f0ec719cd4cb96759.tar.gz
jquery-890d441aa5d319e49951ba6f0ec719cd4cb96759.zip
Effects: Don't overwrite display:none when .hide()ing hidden elements
Fixes #14848 Closes gh-1548
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/effects.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js
index 3016bdbf3..15e67ec1a 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -1620,6 +1620,19 @@ test( "hide, fadeOut and slideUp called on element width height and width = 0 sh
this.clock.tick( 400 );
});
+test( "hide should not leave hidden inline elements visible (#14848)", 2, function() {
+ var el = jQuery("#simon1");
+
+ el.hide( 1, function() {
+ equal( el.css( "display" ), "none", "hidden" );
+ el.hide( 1, function() {
+ equal( el.css( "display" ), "none", "still hidden" );
+ });
+ });
+
+ this.clock.tick( 100 );
+});
+
test( "Handle queue:false promises", 10, function() {
var foo = jQuery( "#foo" ).clone().addBack(),
step = 1;