Skip to content

Commit f931786

Browse files
committed
Tests: Post-Summit cleanup
Ref 67d7a2e Ref c752a50
1 parent 5b554cf commit f931786

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

test/unit/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ QUnit.test( "prop('tabindex')", function( assert ) {
739739

740740
QUnit.test( "image.prop( 'tabIndex' )", function( assert ) {
741741
assert.expect( 1 );
742-
var image = jQuery("<img src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' />")
742+
var image = jQuery("<img src='data/1x1.jpg' />")
743743
.appendTo("#qunit-fixture");
744744
assert.equal( image.prop("tabIndex" ), -1, "tabIndex on image" );
745745
} );

test/unit/dimensions.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ function testWidth( val, assert ) {
5656
assert.equal( blah.width(), null, "Make sure 'null' is returned on an empty set" );
5757

5858
assert.equal( jQuery( window ).width(), document.documentElement.clientWidth, "Window width is equal to width reported by window/document." );
59-
60-
assert.expectJqData( this, $div[ 0 ], "olddisplay" );
6159
}
6260

6361
QUnit.test( "width()", function( assert ) {
@@ -109,8 +107,6 @@ function testHeight( val, assert ) {
109107
assert.equal( blah.height(), null, "Make sure 'null' is returned on an empty set" );
110108

111109
assert.equal( jQuery( window ).height(), document.documentElement.clientHeight, "Window width is equal to width reported by window/document." );
112-
113-
assert.expectJqData( this, $div[ 0 ], "olddisplay" );
114110
}
115111

116112
QUnit.test( "height()", function( assert ) {
@@ -165,7 +161,6 @@ QUnit.test( "innerWidth()", function( assert ) {
165161
assert.equal( div.innerWidth(), 0, "Make sure that disconnected nodes are handled." );
166162

167163
div.remove();
168-
assert.expectJqData( this, $div[ 0 ], "olddisplay" );
169164
} );
170165

171166
QUnit.test( "innerHeight()", function( assert ) {
@@ -200,7 +195,6 @@ QUnit.test( "innerHeight()", function( assert ) {
200195
assert.equal( div.innerHeight(), 0, "Make sure that disconnected nodes are handled." );
201196

202197
div.remove();
203-
assert.expectJqData( this, $div[ 0 ], "olddisplay" );
204198
} );
205199

206200
QUnit.test( "outerWidth()", function( assert ) {
@@ -239,7 +233,6 @@ QUnit.test( "outerWidth()", function( assert ) {
239233
assert.equal( div.outerWidth(), 0, "Make sure that disconnected nodes are handled." );
240234

241235
div.remove();
242-
assert.expectJqData( this, $div[ 0 ], "olddisplay" );
243236
} );
244237

245238
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 ) {
395388
assert.equal( div.outerHeight(), 0, "Make sure that disconnected nodes are handled." );
396389

397390
div.remove();
398-
assert.expectJqData( this, $div[ 0 ], "olddisplay" );
399391
} );
400392

401393
QUnit.test( "passing undefined is a setter #5571", function( assert ) {

0 commit comments

Comments
 (0)