mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Updated the show() tests to work without the use of jQuery.browser (the test suite now passes 100% in IE8).
This commit is contained in:
parent
b536d2ac67
commit
1ac087f6f9
@ -1532,6 +1532,9 @@ test("show()", function() {
|
|||||||
ok( pass, "Show" );
|
ok( pass, "Show" );
|
||||||
|
|
||||||
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>');
|
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>');
|
||||||
|
|
||||||
|
var old = jQuery("#show-tests table").show().css("display") !== "table";
|
||||||
|
|
||||||
var test = {
|
var test = {
|
||||||
"div" : "block",
|
"div" : "block",
|
||||||
"p" : "block",
|
"p" : "block",
|
||||||
@ -1539,14 +1542,14 @@ test("show()", function() {
|
|||||||
"code" : "inline",
|
"code" : "inline",
|
||||||
"pre" : "block",
|
"pre" : "block",
|
||||||
"span" : "inline",
|
"span" : "inline",
|
||||||
"table" : jQuery.browser.msie ? "block" : "table",
|
"table" : old ? "block" : "table",
|
||||||
"thead" : jQuery.browser.msie ? "block" : "table-header-group",
|
"thead" : old ? "block" : "table-header-group",
|
||||||
"tbody" : jQuery.browser.msie ? "block" : "table-row-group",
|
"tbody" : old ? "block" : "table-row-group",
|
||||||
"tr" : jQuery.browser.msie ? "block" : "table-row",
|
"tr" : old ? "block" : "table-row",
|
||||||
"th" : jQuery.browser.msie ? "block" : "table-cell",
|
"th" : old ? "block" : "table-cell",
|
||||||
"td" : jQuery.browser.msie ? "block" : "table-cell",
|
"td" : old ? "block" : "table-cell",
|
||||||
"ul" : "block",
|
"ul" : "block",
|
||||||
"li" : jQuery.browser.msie ? "block" : "list-item"
|
"li" : old ? "block" : "list-item"
|
||||||
};
|
};
|
||||||
|
|
||||||
jQuery.each(test, function(selector, expected) {
|
jQuery.each(test, function(selector, expected) {
|
||||||
|
Loading…
Reference in New Issue
Block a user