mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Core: Removed tests for .attr() ARIA override since the override no longer exists.
This commit is contained in:
parent
70c4857cc5
commit
245b932933
@ -117,8 +117,6 @@
|
|||||||
<span id="spanTabindex3foo" tabindex="3foo"></span>
|
<span id="spanTabindex3foo" tabindex="3foo"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="aria"></div>
|
|
||||||
|
|
||||||
<div id="zIndex100" style="z-index: 100; position: absolute">
|
<div id="zIndex100" style="z-index: 100; position: absolute">
|
||||||
<div id="zIndexAutoWithParent"></div>
|
<div id="zIndexAutoWithParent"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,26 +5,6 @@
|
|||||||
|
|
||||||
module('core - jQuery extensions');
|
module('core - jQuery extensions');
|
||||||
|
|
||||||
test("attr - aria", function() {
|
|
||||||
expect(6);
|
|
||||||
|
|
||||||
var el = $('#aria');
|
|
||||||
|
|
||||||
ok(!el.attr('role'), 'role is empty via attr');
|
|
||||||
equals(el.attr('role', 'tablist').attr('role'), 'tablist', 'role is tablist');
|
|
||||||
|
|
||||||
equals(el.attr('aria-expanded'), undefined, 'aria expanded is undefined');
|
|
||||||
|
|
||||||
el.attr('aria-expanded', true);
|
|
||||||
equals(el.attr('aria-expanded'), 'true', 'aria expanded is true');
|
|
||||||
|
|
||||||
el.removeAttr('aria-expanded');
|
|
||||||
equals(el.attr('aria-expanded'), undefined, 'aria expanded is undefined after removing');
|
|
||||||
|
|
||||||
el.attr('aria-expanded', false);
|
|
||||||
equals(el.attr('aria-expanded'), 'false', 'aria expanded is false');
|
|
||||||
});
|
|
||||||
|
|
||||||
test('focus', function() {
|
test('focus', function() {
|
||||||
expect(3);
|
expect(3);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user