aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/accordion/accordion_core.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/accordion/accordion_core.js')
-rw-r--r--tests/unit/accordion/accordion_core.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/unit/accordion/accordion_core.js b/tests/unit/accordion/accordion_core.js
index 7bf71c31b..280339c26 100644
--- a/tests/unit/accordion/accordion_core.js
+++ b/tests/unit/accordion/accordion_core.js
@@ -39,15 +39,15 @@ test( "accessibility", function () {
equals( element.attr( "role" ), "tablist", "main role" );
equals( headers.attr( "role" ), "tab", "tab roles" );
equals( headers.next().attr( "role" ), "tabpanel", "tabpanel roles" );
- equals( headers.eq( 1 ).prop( "aria-expanded" ), true, "active tab has aria-expanded" );
- equals( headers.eq( 0 ).prop( "aria-expanded" ), false, "inactive tab has aria-expanded" );
- equals( headers.eq( 1 ).prop( "aria-selected" ), true, "active tab has aria-selected" );
- equals( headers.eq( 0 ).prop( "aria-selected" ), false, "inactive tab has aria-selected" );
+ equals( headers.eq( 1 ).attr( "aria-expanded" ), "true", "active tab has aria-expanded" );
+ equals( headers.eq( 0 ).attr( "aria-expanded" ), "false", "inactive tab has aria-expanded" );
+ equals( headers.eq( 1 ).attr( "aria-selected" ), "true", "active tab has aria-selected" );
+ equals( headers.eq( 0 ).attr( "aria-selected" ), "false", "inactive tab has aria-selected" );
element.accordion( "option", "active", 0 );
- equals( headers.eq( 0 ).prop( "aria-expanded" ), true, "newly active tab has aria-expanded" );
- equals( headers.eq( 1 ).prop( "aria-expanded" ), false, "newly inactive tab has aria-expanded" );
- equals( headers.eq( 0 ).prop( "aria-selected" ), true, "active tab has aria-selected" );
- equals( headers.eq( 1 ).prop( "aria-selected" ), false, "inactive tab has aria-selected" );
+ equals( headers.eq( 0 ).attr( "aria-expanded" ), "true", "newly active tab has aria-expanded" );
+ equals( headers.eq( 1 ).attr( "aria-expanded" ), "false", "newly inactive tab has aria-expanded" );
+ equals( headers.eq( 0 ).attr( "aria-selected" ), "true", "active tab has aria-selected" );
+ equals( headers.eq( 1 ).attr( "aria-selected" ), "false", "inactive tab has aria-selected" );
});
}( jQuery ) );