mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
parent
c481400f22
commit
b9ffc34710
@ -101,7 +101,7 @@ QUnit.test( "aria-controls", function( assert ) {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
QUnit.test( "accessibility", function( assert ) {
|
QUnit.test( "accessibility", function( assert ) {
|
||||||
assert.expect( 49 );
|
assert.expect( 46 );
|
||||||
var element = $( "#tabs1" ).tabs( {
|
var element = $( "#tabs1" ).tabs( {
|
||||||
active: 1,
|
active: 1,
|
||||||
disabled: [ 2 ]
|
disabled: [ 2 ]
|
||||||
@ -118,7 +118,6 @@ QUnit.test( "accessibility", function( assert ) {
|
|||||||
panel = panels.eq( index );
|
panel = panels.eq( index );
|
||||||
assert.equal( tab.attr( "role" ), "tab", "tab " + index + " role" );
|
assert.equal( tab.attr( "role" ), "tab", "tab " + index + " role" );
|
||||||
assert.equal( tab.attr( "aria-labelledby" ), anchorId, "tab " + index + " aria-labelledby" );
|
assert.equal( tab.attr( "aria-labelledby" ), anchorId, "tab " + index + " aria-labelledby" );
|
||||||
assert.equal( anchor.attr( "role" ), "presentation", "anchor " + index + " role" );
|
|
||||||
assert.equal( anchor.attr( "tabindex" ), -1, "anchor " + index + " tabindex" );
|
assert.equal( anchor.attr( "tabindex" ), -1, "anchor " + index + " tabindex" );
|
||||||
assert.equal( panel.attr( "role" ), "tabpanel", "panel " + index + " role" );
|
assert.equal( panel.attr( "role" ), "tabpanel", "panel " + index + " role" );
|
||||||
assert.equal( panel.attr( "aria-labelledby" ), anchorId, "panel " + index + " aria-labelledby" );
|
assert.equal( panel.attr( "aria-labelledby" ), anchorId, "panel " + index + " aria-labelledby" );
|
||||||
|
@ -431,7 +431,6 @@ $.widget( "ui.tabs", {
|
|||||||
return $( "a", this )[ 0 ];
|
return $( "a", this )[ 0 ];
|
||||||
} )
|
} )
|
||||||
.attr( {
|
.attr( {
|
||||||
role: "presentation",
|
|
||||||
tabIndex: -1
|
tabIndex: -1
|
||||||
} );
|
} );
|
||||||
this._addClass( this.anchors, "ui-tabs-anchor" );
|
this._addClass( this.anchors, "ui-tabs-anchor" );
|
||||||
|
Loading…
Reference in New Issue
Block a user