diff options
author | rwldrn <waldron.rick@gmail.com> | 2011-04-25 13:10:23 -0400 |
---|---|---|
committer | rwldrn <waldron.rick@gmail.com> | 2011-04-25 13:13:57 -0400 |
commit | 86d5d3e80962e695a9d5f0b2c7fd2b566327424c (patch) | |
tree | bdbfe06cc747be8e10a5a634d187886c0e1d6876 /test | |
parent | 02ad0aa3b6d3c28494465539976211b6a89cb1e0 (diff) | |
download | jquery-86d5d3e80962e695a9d5f0b2c7fd2b566327424c.tar.gz jquery-86d5d3e80962e695a9d5f0b2c7fd2b566327424c.zip |
No need to test for widows & orphans values in IE6-8. Fixes #8971
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/css.js | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index a34f54a06..ba0fab9f3 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -396,25 +396,32 @@ test("jQuery.cssProps behavior, (bug #8402)", function() { }); test("widows & orphans #8936", function () { - expect(4); var $p = jQuery("<p>").appendTo("#main").end(); - $p.css({ - widows: 0, - orphans: 0 - }); + if ( "widows" in $p[0].style ) { + expect(4); + $p.css({ + widows: 0, + 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"), 0, "widows correctly start with value 0"); + equal( $p.css("orphans"), 0, "orphans correctly start with value 0"); - $p.css({ - widows: 3, - orphans: 3 - }); + $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"); + } else { + + expect(1); + ok( true, "jQuery does not attempt to test for style props that definitely don't exist in older versions of IE"); + } - equal( $p.css("widows"), 3, "widows correctly set to 3"); - equal( $p.css("orphans"), 3, "orphans correctly set to 3"); $p.remove(); }); |