Landing pull request 357. Update unit tests for widows & orphans. Supplements #8971 Fixes #8971.

More Details:
 - https://github.com/jquery/jquery/pull/357
 - http://bugs.jquery.com/ticket/8971
This commit is contained in:
rwldrn 2011-04-28 15:56:02 -04:00 committed by timmywil
parent ebac797ac2
commit 632cd6c4ba

View file

@ -406,16 +406,16 @@ test("widows & orphans #8936", function () {
orphans: 0 orphans: 0
}); });
equal( $p.css("widows"), 0, "widows correctly start with value 0"); equal( $p.css("widows") || jQuery.style( $p[0], "widows" ), 0, "widows correctly start with value 0");
equal( $p.css("orphans"), 0, "orphans correctly start with value 0"); equal( $p.css("orphans") || jQuery.style( $p[0], "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("widows") || jQuery.style( $p[0], "widows" ), 3, "widows correctly set to 3");
equal( $p.css("orphans"), 3, "orphans correctly set to 3"); equal( $p.css("orphans") || jQuery.style( $p[0], "orphans" ), 3, "orphans correctly set to 3");
} else { } else {
expect(1); expect(1);