Skip to content
Permalink
Browse files

Landing pull request 357. Update unit tests for widows & orphans. Sup…

…plements #8971 Fixes #8971.

More Details:
 - #357
 - http://bugs.jquery.com/ticket/8971
  • Loading branch information...
rwaldron authored and timmywil committed Apr 28, 2011
1 parent ebac797 commit 632cd6c4ba625ed1586b5c09140614ee3eef867f
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/unit/css.js
@@ -406,16 +406,16 @@ test("widows & orphans #8936", function () {
orphans: 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("widows") || jQuery.style( $p[0], "widows" ), 0, "widows correctly start with value 0");
equal( $p.css("orphans") || jQuery.style( $p[0], "orphans" ), 0, "orphans correctly start with value 0");

$p.css({
widows: 3,
orphans: 3
});

equal( $p.css("widows"), 3, "widows correctly set to 3");
equal( $p.css("orphans"), 3, "orphans correctly set to 3");
equal( $p.css("widows") || jQuery.style( $p[0], "widows" ), 3, "widows correctly set to 3");
equal( $p.css("orphans") || jQuery.style( $p[0], "orphans" ), 3, "orphans correctly set to 3");
} else {

expect(1);

0 comments on commit 632cd6c

Please sign in to comment.
You can’t perform that action at this time.