Skip to content

Commit 7135c2e

Browse files
committed
Tests: Fix CSS tests in IE & old Firefox
line-height used value is measured in pixels in IE & old Firefox, let's use z-index instead. Ref jquerygh-356
1 parent 0933a39 commit 7135c2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/css.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ QUnit.test( "jQuery.css with arrays", function( assert ) {
5050
expectNoWarning( assert, "String value direct", function() {
5151
var cssValues = jQuery( "<div />" )
5252
.css( {
53-
lineHeight: "1",
53+
"z-index": "2",
5454
fontSize: "16px"
5555
} )
56-
.css( [ "font-size", "lineHeight" ] );
56+
.css( [ "font-size", "zIndex" ] );
5757

58-
assert.deepEqual( cssValues, { "font-size": "16px", lineHeight: "1" },
58+
assert.deepEqual( cssValues, { "font-size": "16px", zIndex: "2" },
5959
".css( array ) works" );
6060
} );
6161
} );

0 commit comments

Comments
 (0)