aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/attributes.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index 6e9f44c9f..564fb12e0 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.js
@@ -735,6 +735,13 @@ QUnit.test( "prop('tabindex')", function( assert ) {
assert.equal( jQuery( "#linkWithNoHrefWithNegativeTabIndex" ).prop( "tabindex" ), -1, "anchor without href, no tabindex set" );
} );
+QUnit.test( "image.prop( 'tabIndex' )", function( assert ) {
+ assert.expect( 1 );
+ var image = jQuery("<img src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' />")
+ .appendTo("#qunit-fixture");
+ assert.equal( image.prop("tabIndex" ), -1, "tabIndex on image" );
+} );
+
QUnit.test( "prop('tabindex', value)", function( assert ) {
assert.expect( 10 );