From f931786018058174fa63551a7a4a3fccf9de41fa Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Sun, 25 Oct 2015 15:25:56 -0400 Subject: [PATCH] Tests: Post-Summit cleanup Ref 67d7a2eefee768b59eb3d51cb1fb2c671873e58a Ref c752a5030bc00eb5b45dea9c28963f824a5c4f44 --- test/unit/attributes.js | 2 +- test/unit/dimensions.js | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/test/unit/attributes.js b/test/unit/attributes.js index c1e159b8f..b70022f9e 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -739,7 +739,7 @@ QUnit.test( "prop('tabindex')", function( assert ) { QUnit.test( "image.prop( 'tabIndex' )", function( assert ) { assert.expect( 1 ); - var image = jQuery("") + var image = jQuery("") .appendTo("#qunit-fixture"); assert.equal( image.prop("tabIndex" ), -1, "tabIndex on image" ); } ); diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index aa628ee71..cdf024837 100644 --- a/test/unit/dimensions.js +++ b/test/unit/dimensions.js @@ -56,8 +56,6 @@ function testWidth( val, assert ) { assert.equal( blah.width(), null, "Make sure 'null' is returned on an empty set" ); assert.equal( jQuery( window ).width(), document.documentElement.clientWidth, "Window width is equal to width reported by window/document." ); - - assert.expectJqData( this, $div[ 0 ], "olddisplay" ); } QUnit.test( "width()", function( assert ) { @@ -109,8 +107,6 @@ function testHeight( val, assert ) { assert.equal( blah.height(), null, "Make sure 'null' is returned on an empty set" ); assert.equal( jQuery( window ).height(), document.documentElement.clientHeight, "Window width is equal to width reported by window/document." ); - - assert.expectJqData( this, $div[ 0 ], "olddisplay" ); } QUnit.test( "height()", function( assert ) { @@ -165,7 +161,6 @@ QUnit.test( "innerWidth()", function( assert ) { assert.equal( div.innerWidth(), 0, "Make sure that disconnected nodes are handled." ); div.remove(); - assert.expectJqData( this, $div[ 0 ], "olddisplay" ); } ); QUnit.test( "innerHeight()", function( assert ) { @@ -200,7 +195,6 @@ QUnit.test( "innerHeight()", function( assert ) { assert.equal( div.innerHeight(), 0, "Make sure that disconnected nodes are handled." ); div.remove(); - assert.expectJqData( this, $div[ 0 ], "olddisplay" ); } ); QUnit.test( "outerWidth()", function( assert ) { @@ -239,7 +233,6 @@ QUnit.test( "outerWidth()", function( assert ) { assert.equal( div.outerWidth(), 0, "Make sure that disconnected nodes are handled." ); div.remove(); - assert.expectJqData( this, $div[ 0 ], "olddisplay" ); } ); QUnit.test( "child of a hidden elem (or unconnected node) has accurate inner/outer/Width()/Height() see #9441 #9300", function( assert ) { @@ -395,7 +388,6 @@ QUnit.test( "outerHeight()", function( assert ) { assert.equal( div.outerHeight(), 0, "Make sure that disconnected nodes are handled." ); div.remove(); - assert.expectJqData( this, $div[ 0 ], "olddisplay" ); } ); QUnit.test( "passing undefined is a setter #5571", function( assert ) { -- 2.39.5