aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2011-02-14 12:36:49 -0500
committerjeresig <jeresig@gmail.com>2011-02-14 12:36:49 -0500
commitbb9408516aa0fc8892f4e07a99b1a47bce06081b (patch)
treea1b6e983686ca803c2bea2e928ee272cb01dc589 /test/unit
parent3ad8dd242acec1066f43a9349f4c1a352680d37b (diff)
parentc67867ad0cd546ab461f13336f74b3f762d8fe7d (diff)
downloadjquery-bb9408516aa0fc8892f4e07a99b1a47bce06081b.tar.gz
jquery-bb9408516aa0fc8892f4e07a99b1a47bce06081b.zip
Merge branch '8099' of https://github.com/rwldrn/jquery into rwldrn-8099
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/effects.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js
index a07c076d7..7da814343 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -162,6 +162,18 @@ test("Persist correct display value", function() {
});
});
+test("show() resolves correct default display #8099", function() {
+ expect(3);
+ var bug8099 = jQuery("<tt/>").appendTo("#main");
+
+ equals( bug8099.css("display"), "none", "default display override for all tt" );
+ equals( bug8099.show().css("display"), "inline", "Correctly resolves display:inline" );
+
+ bug8099.remove();
+
+ equals( jQuery("#foo").hide().show().css("display"), "block", "Correctly resolves display:block after hide/show" );
+});
+
test("animate(Hash, Object, Function)", function() {
expect(1);
stop();