diff options
Diffstat (limited to 'test/unit/dimensions.js')
-rw-r--r-- | test/unit/dimensions.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index 7d37e13bc..3f4e15b9e 100644 --- a/test/unit/dimensions.js +++ b/test/unit/dimensions.js @@ -57,7 +57,7 @@ function testWidth( val ) { equal( jQuery(window).width(), document.documentElement.clientWidth, "Window width is equal to width reported by window/document." ); - QUnit.expectJqData( $div[0], "olddisplay" ); + QUnit.expectJqData( this, $div[0], "olddisplay" ); } test("width()", function() { @@ -110,7 +110,7 @@ function testHeight( val ) { equal( jQuery(window).height(), document.documentElement.clientHeight, "Window width is equal to width reported by window/document." ); - QUnit.expectJqData( $div[0], "olddisplay" ); + QUnit.expectJqData( this, $div[0], "olddisplay" ); } test("height()", function() { @@ -166,7 +166,7 @@ test("innerWidth()", function() { equal( div.innerWidth(), 0, "Make sure that disconnected nodes are handled." ); div.remove(); - QUnit.expectJqData( $div[0], "olddisplay" ); + QUnit.expectJqData( this, $div[0], "olddisplay" ); }); test("innerHeight()", function() { @@ -202,7 +202,7 @@ test("innerHeight()", function() { equal( div.innerHeight(), 0, "Make sure that disconnected nodes are handled." ); div.remove(); - QUnit.expectJqData( $div[0], "olddisplay" ); + QUnit.expectJqData( this, $div[0], "olddisplay" ); }); test("outerWidth()", function() { @@ -241,7 +241,7 @@ test("outerWidth()", function() { equal( div.outerWidth(), 0, "Make sure that disconnected nodes are handled." ); div.remove(); - QUnit.expectJqData( $div[0], "olddisplay" ); + QUnit.expectJqData( this, $div[0], "olddisplay" ); }); test("child of a hidden elem (or unconnected node) has accurate inner/outer/Width()/Height() see #9441 #9300", function() { @@ -388,7 +388,7 @@ test("outerHeight()", function() { equal( div.outerHeight(), 0, "Make sure that disconnected nodes are handled." ); div.remove(); - QUnit.expectJqData( $div[0], "olddisplay" ); + QUnit.expectJqData( this, $div[0], "olddisplay" ); }); test("passing undefined is a setter #5571", function() { |