aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwldrn <waldron.rick@gmail.com>2011-04-28 15:56:02 -0400
committertimmywil <tim.willison@thisismedium.com>2011-04-28 15:56:02 -0400
commit632cd6c4ba625ed1586b5c09140614ee3eef867f (patch)
tree6ecaad5a497f553b8922a30f3f62fa846fc99cd4
parentebac797ac22225aeca4fad2658aae9b71670fec6 (diff)
downloadjquery-632cd6c4ba625ed1586b5c09140614ee3eef867f.tar.gz
jquery-632cd6c4ba625ed1586b5c09140614ee3eef867f.zip
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
-rw-r--r--test/unit/css.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 1e4f9f908..380709d12 100644
--- a/test/unit/css.js
+++ b/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);