No need to test for widows & orphans values in IE6-8. Fixes #8971
This commit is contained in:
parent
02ad0aa3b6
commit
86d5d3e809
|
@ -396,25 +396,32 @@ test("jQuery.cssProps behavior, (bug #8402)", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
test("widows & orphans #8936", function () {
|
test("widows & orphans #8936", function () {
|
||||||
expect(4);
|
|
||||||
|
|
||||||
var $p = jQuery("<p>").appendTo("#main").end();
|
var $p = jQuery("<p>").appendTo("#main").end();
|
||||||
|
|
||||||
$p.css({
|
if ( "widows" in $p[0].style ) {
|
||||||
widows: 0,
|
expect(4);
|
||||||
orphans: 0
|
$p.css({
|
||||||
});
|
widows: 0,
|
||||||
|
orphans: 0
|
||||||
|
});
|
||||||
|
|
||||||
equal( $p.css("widows"), 0, "widows correctly start with value 0");
|
equal( $p.css("widows"), 0, "widows correctly start with value 0");
|
||||||
equal( $p.css("orphans"), 0, "orphans correctly start with value 0");
|
equal( $p.css("orphans"), 0, "orphans correctly start with value 0");
|
||||||
|
|
||||||
$p.css({
|
$p.css({
|
||||||
widows: 3,
|
widows: 3,
|
||||||
orphans: 3
|
orphans: 3
|
||||||
});
|
});
|
||||||
|
|
||||||
|
equal( $p.css("widows"), 3, "widows correctly set to 3");
|
||||||
|
equal( $p.css("orphans"), 3, "orphans correctly set to 3");
|
||||||
|
} else {
|
||||||
|
|
||||||
|
expect(1);
|
||||||
|
ok( true, "jQuery does not attempt to test for style props that definitely don't exist in older versions of IE");
|
||||||
|
}
|
||||||
|
|
||||||
equal( $p.css("widows"), 3, "widows correctly set to 3");
|
|
||||||
equal( $p.css("orphans"), 3, "orphans correctly set to 3");
|
|
||||||
|
|
||||||
$p.remove();
|
$p.remove();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue