mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
parent
5b554cf04e
commit
f931786018
@ -739,7 +739,7 @@ QUnit.test( "prop('tabindex')", function( assert ) {
|
|||||||
|
|
||||||
QUnit.test( "image.prop( 'tabIndex' )", function( assert ) {
|
QUnit.test( "image.prop( 'tabIndex' )", function( assert ) {
|
||||||
assert.expect( 1 );
|
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");
|
.appendTo("#qunit-fixture");
|
||||||
assert.equal( image.prop("tabIndex" ), -1, "tabIndex on image" );
|
assert.equal( image.prop("tabIndex" ), -1, "tabIndex on image" );
|
||||||
} );
|
} );
|
||||||
|
@ -56,8 +56,6 @@ function testWidth( val, assert ) {
|
|||||||
assert.equal( blah.width(), null, "Make sure 'null' is returned on an empty set" );
|
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.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 ) {
|
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( 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.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 ) {
|
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." );
|
assert.equal( div.innerWidth(), 0, "Make sure that disconnected nodes are handled." );
|
||||||
|
|
||||||
div.remove();
|
div.remove();
|
||||||
assert.expectJqData( this, $div[ 0 ], "olddisplay" );
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
QUnit.test( "innerHeight()", function( assert ) {
|
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." );
|
assert.equal( div.innerHeight(), 0, "Make sure that disconnected nodes are handled." );
|
||||||
|
|
||||||
div.remove();
|
div.remove();
|
||||||
assert.expectJqData( this, $div[ 0 ], "olddisplay" );
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
QUnit.test( "outerWidth()", function( assert ) {
|
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." );
|
assert.equal( div.outerWidth(), 0, "Make sure that disconnected nodes are handled." );
|
||||||
|
|
||||||
div.remove();
|
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 ) {
|
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." );
|
assert.equal( div.outerHeight(), 0, "Make sure that disconnected nodes are handled." );
|
||||||
|
|
||||||
div.remove();
|
div.remove();
|
||||||
assert.expectJqData( this, $div[ 0 ], "olddisplay" );
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
QUnit.test( "passing undefined is a setter #5571", function( assert ) {
|
QUnit.test( "passing undefined is a setter #5571", function( assert ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user