Skip to content

Commit 1ac087f

Browse files
committed
Updated the show() tests to work without the use of jQuery.browser (the test suite now passes 100% in IE8).
1 parent b536d2a commit 1ac087f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

test/unit/core.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,21 +1532,24 @@ test("show()", function() {
15321532
ok( pass, "Show" );
15331533

15341534
jQuery("#main").append('<div id="show-tests"><div><p><a href="#"></a></p><code></code><pre></pre><span></span></div><table><thead><tr><th></th></tr></thead><tbody><tr><td></td></tr></tbody></table><ul><li></li></ul></div>');
1535+
1536+
var old = jQuery("#show-tests table").show().css("display") !== "table";
1537+
15351538
var test = {
15361539
"div" : "block",
15371540
"p" : "block",
15381541
"a" : "inline",
15391542
"code" : "inline",
15401543
"pre" : "block",
15411544
"span" : "inline",
1542-
"table" : jQuery.browser.msie ? "block" : "table",
1543-
"thead" : jQuery.browser.msie ? "block" : "table-header-group",
1544-
"tbody" : jQuery.browser.msie ? "block" : "table-row-group",
1545-
"tr" : jQuery.browser.msie ? "block" : "table-row",
1546-
"th" : jQuery.browser.msie ? "block" : "table-cell",
1547-
"td" : jQuery.browser.msie ? "block" : "table-cell",
1545+
"table" : old ? "block" : "table",
1546+
"thead" : old ? "block" : "table-header-group",
1547+
"tbody" : old ? "block" : "table-row-group",
1548+
"tr" : old ? "block" : "table-row",
1549+
"th" : old ? "block" : "table-cell",
1550+
"td" : old ? "block" : "table-cell",
15481551
"ul" : "block",
1549-
"li" : jQuery.browser.msie ? "block" : "list-item"
1552+
"li" : old ? "block" : "list-item"
15501553
};
15511554

15521555
jQuery.each(test, function(selector, expected) {

0 commit comments

Comments
 (0)