mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
21 lines
717 B
JavaScript
21 lines
717 B
JavaScript
module( "progressbar: core" );
|
|
|
|
test( "accessibility", function() {
|
|
expect( 7 );
|
|
var element = $( "#progressbar" ).progressbar();
|
|
|
|
equal( element.attr( "role" ), "progressbar", "aria role" );
|
|
equal( element.attr( "aria-valuemin" ), 0, "aria-valuemin" );
|
|
equal( element.attr( "aria-valuemax" ), 100, "aria-valuemax" );
|
|
equal( element.attr( "aria-valuenow" ), 0, "aria-valuenow initially" );
|
|
|
|
element.progressbar( "value", 77 );
|
|
equal( element.attr( "aria-valuenow" ), 77, "aria-valuenow" );
|
|
|
|
element.progressbar( "disable" );
|
|
equal( element.attr( "aria-disabled" ), "true", "aria-disabled on" );
|
|
|
|
element.progressbar( "enable" );
|
|
equal( element.attr( "aria-disabled" ), "false", "aria-disabled off" );
|
|
});
|