X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=e7f09f62cb133de34f7327ca6e6b21d5555885b6;hb=1ac087f6f90eb41fe79d46b7e1f09cc7e2125670;hp=b2ddca4c60b71bf8c29bf168a09277e6e8a42ebc;hpb=b536d2ac67077aa45ed5d72bd702dab3c81e5d28;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index b2ddca4..e7f09f6 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1532,6 +1532,9 @@ test("show()", function() { ok( pass, "Show" ); jQuery("#main").append('

'); + + var old = jQuery("#show-tests table").show().css("display") !== "table"; + var test = { "div" : "block", "p" : "block", @@ -1539,14 +1542,14 @@ test("show()", function() { "code" : "inline", "pre" : "block", "span" : "inline", - "table" : jQuery.browser.msie ? "block" : "table", - "thead" : jQuery.browser.msie ? "block" : "table-header-group", - "tbody" : jQuery.browser.msie ? "block" : "table-row-group", - "tr" : jQuery.browser.msie ? "block" : "table-row", - "th" : jQuery.browser.msie ? "block" : "table-cell", - "td" : jQuery.browser.msie ? "block" : "table-cell", + "table" : old ? "block" : "table", + "thead" : old ? "block" : "table-header-group", + "tbody" : old ? "block" : "table-row-group", + "tr" : old ? "block" : "table-row", + "th" : old ? "block" : "table-cell", + "td" : old ? "block" : "table-cell", "ul" : "block", - "li" : jQuery.browser.msie ? "block" : "list-item" + "li" : old ? "block" : "list-item" }; jQuery.each(test, function(selector, expected) {