From 632cd6c4ba625ed1586b5c09140614ee3eef867f Mon Sep 17 00:00:00 2001 From: rwldrn Date: Thu, 28 Apr 2011 15:56:02 -0400 Subject: [PATCH] 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 --- test/unit/css.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/css.js b/test/unit/css.js index 1e4f9f90..380709d1 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);