aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJoelle Fleurantin <joasqueeniebee@gmail.com>2015-10-18 16:20:25 -0400
committerMichał Gołębiowski <m.goleb@gmail.com>2015-10-18 16:36:52 -0400
commitc752a5030bc00eb5b45dea9c28963f824a5c4f44 (patch)
tree364e9d3e188b768d4f72034ce04ef53561198e33 /test/unit
parent3689963909880ed832ac17eabf7b9260927a68d8 (diff)
downloadjquery-c752a5030bc00eb5b45dea9c28963f824a5c4f44.tar.gz
jquery-c752a5030bc00eb5b45dea9c28963f824a5c4f44.zip
Attributes: fix tabIndex on <img> in IE11
Fixes gh-2647 Closes gh-2664
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 );