aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorrwldrn <waldron.rick@gmail.com>2011-04-13 13:58:17 -0400
committerrwldrn <waldron.rick@gmail.com>2011-04-13 13:58:17 -0400
commit59240d31c0c277a60fdc187e0fc9884007971106 (patch)
treee7e387dd17cfebd2fa9481f79053866d6794a9a6 /test
parent4fde550cb62219d7edd14653888608fbbf39c22a (diff)
downloadjquery-59240d31c0c277a60fdc187e0fc9884007971106.tar.gz
jquery-59240d31c0c277a60fdc187e0fc9884007971106.zip
Ticket #8099 Updates per review
Diffstat (limited to 'test')
-rw-r--r--test/unit/effects.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js
index f3ccd218c..082128876 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -163,8 +163,9 @@ test("Persist correct display value", function() {
});
test("show() resolves correct default display #8099", function() {
- expect(5);
- var bug8099 = jQuery("<tt/>").appendTo("#main");
+ expect(7);
+ var bug8099 = jQuery("<tt/>").appendTo("#main"),
+ div8099 = jQuery("<div/>", { className: "hidden" }).appendTo("#main");
equals( bug8099.css("display"), "none", "default display override for all tt" );
equals( bug8099.show().css("display"), "inline", "Correctly resolves display:inline" );
@@ -174,7 +175,11 @@ test("show() resolves correct default display #8099", function() {
equals( bug8099.hide().css("display"), "none", "default display override for all tt" );
equals( bug8099.show().css("display"), "inline", "Correctly resolves display:inline" );
+ equals( div8099.show().css("display"), "block", "default display override for all div.hidden" );
+ equals( div8099.hide().css("display"), "none", "Correctly resolves display:none" );
+
bug8099.remove();
+ div8099.remove();
});