summaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-09-07 02:46:55 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2013-11-11 00:43:27 +0100
commit4b39a8289031bb7de25e9f018d9fd8235a35ec49 (patch)
tree1fe8494c0be1e315a81c739d70f7b390823e5eb8 /test/unit/css.js
parent2ace149f485438e8a3af6650f3bb18c1c22e48b6 (diff)
downloadjquery-4b39a8289031bb7de25e9f018d9fd8235a35ec49.tar.gz
jquery-4b39a8289031bb7de25e9f018d9fd8235a35ec49.zip
Fix #14340. Remove remnants of oldIE from unit tests. Close gh-1425.
Diffstat (limited to 'test/unit/css.js')
-rw-r--r--test/unit/css.js39
1 files changed, 13 insertions, 26 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 4c1a9a241..9cef70be7 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -700,29 +700,22 @@ test("widows & orphans #8936", function () {
var $p = jQuery("<p>").appendTo("#qunit-fixture");
- if ( "widows" in $p[0].style ) {
- expect(4);
- $p.css({
- "widows": 0,
- "orphans": 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
- });
+ expect( 4 );
+ $p.css({
+ "widows": 0,
+ "orphans": 0
+ });
- 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 {
+ 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" );
- expect(1);
- ok( true, "jQuery does not attempt to test for style props that definitely don't exist in older versions of IE");
- }
+ $p.css({
+ "widows": 3,
+ "orphans": 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" );
$p.remove();
});
@@ -761,12 +754,6 @@ test("can't get background-position in IE<9, see #10796", function() {
}
});
-test("percentage properties for bottom and right in IE<9 should not be incorrectly transformed to pixels, see #11311", function() {
- expect( 1 );
- var div = jQuery("<div style='position: absolute; width: 1px; height: 20px; bottom:50%;'></div>").appendTo( "#qunit-fixture" );
- ok( window.getComputedStyle || div.css( "bottom" ) === "50%", "position properties get incorrectly transformed in IE<8, see #11311" );
-});
-
if ( jQuery.fn.offset ) {
test("percentage properties for left and top should be transformed to pixels, see #9505", function() {
expect( 2 );