aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/css.js')
-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);