aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorrwldrn <waldron.rick@gmail.com>2011-04-13 13:43:52 -0400
committerrwldrn <waldron.rick@gmail.com>2011-04-13 13:43:52 -0400
commit4fde550cb62219d7edd14653888608fbbf39c22a (patch)
tree77357545f668795d9e356619e3e84ea1a72c393f /test/unit
parent81de96af740f8d397585d8a6fc2a3765dfd16d49 (diff)
downloadjquery-4fde550cb62219d7edd14653888608fbbf39c22a.tar.gz
jquery-4fde550cb62219d7edd14653888608fbbf39c22a.zip
Ticket #8099 Conditional iframe approache, caches both iframe and iframedoc for reuse
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/effects.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js
index b68b9b6b0..f3ccd218c 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -163,15 +163,19 @@ test("Persist correct display value", function() {
});
test("show() resolves correct default display #8099", function() {
- expect(3);
+ expect(5);
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" );
+ equals( jQuery("#foo").hide().show().css("display"), "block", "Correctly resolves display:block after hide/show" );
+
+ equals( bug8099.hide().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" );
});