More Details: - https://github.com/jquery/jquery/pull/357 - http://bugs.jquery.com/ticket/8971
This commit is contained in:
parent
ebac797ac2
commit
632cd6c4ba
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue