Permalink
Browse files

Tests: Post-Summit cleanup

  • Loading branch information...
gibson042 committed Oct 25, 2015
1 parent 5b554cf commit f931786018058174fa63551a7a4a3fccf9de41fa
Showing with 1 addition and 9 deletions.
  1. +1 −1 test/unit/attributes.js
  2. +0 −8 test/unit/dimensions.js
View
@@ -739,7 +739,7 @@ QUnit.test( "prop('tabindex')", function( assert ) {
QUnit.test( "image.prop( 'tabIndex' )", function( assert ) {
assert.expect( 1 );
var image = jQuery("<img src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' />")
var image = jQuery("<img src='data/1x1.jpg' />")
.appendTo("#qunit-fixture");
assert.equal( image.prop("tabIndex" ), -1, "tabIndex on image" );
} );
View
@@ -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 ) {

0 comments on commit f931786

Please sign in to comment.