Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2010-03-05 Chris Fleizach <cfleizach@apple.com>
Reviewed by Eric Seidel. WAI-ARIA live region doesn't appear when <div> only has a <div> child https://bugs.webkit.org/show_bug.cgi?id=35751 * platform/mac/accessibility/div-containing-div-with-aria-expected.txt: Added. * platform/mac/accessibility/div-containing-div-with-aria.html: Added. 2010-03-05 Chris Fleizach <cfleizach@apple.com> Reviewed by Eric Seidel. WAI-ARIA live region doesn't appear when <div> only has a <div> child https://bugs.webkit.org/show_bug.cgi?id=35751 Elements should not be ignored if they carry ARIA attributes in them. Test: platform/mac/accessibility/div-containing-div-with-aria.html * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::supportsARIAAttributes): * accessibility/AccessibilityObject.h: (WebCore::AccessibilityObject::supportsARIADropping): (WebCore::AccessibilityObject::supportsARIADragging): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::supportsARIADropping): (WebCore::AccessibilityRenderObject::supportsARIADragging): (WebCore::AccessibilityRenderObject::accessibilityIsIgnored): * accessibility/AccessibilityRenderObject.h: Canonical link: https://commits.webkit.org/46908@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@55611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
8 changed files
with
100 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,13 @@ | ||
0 | ||
This tests that any element that has ARIA attributes is not ignored | ||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | ||
|
||
|
||
PASS outerDiv.description is 'AXDescription: test' | ||
PASS outerDiv.childAtIndex(0).role is 'AXRole: AXGroup' | ||
PASS outerDiv.childAtIndex(0).childAtIndex(0).role is 'AXRole: AXStaticText' | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="../../../fast/js/resources/js-test-style.css"> | ||
<script> | ||
var successfullyParsed = false; | ||
</script> | ||
<script src="../../../fast/js/resources/js-test-pre.js"></script> | ||
</head> | ||
<body id="body"> | ||
|
||
<div id="outer" aria-live="polite" aria-relevant="text" tabindex=0 aria-label="test"> | ||
<div id="display" class="LCD">0</div> | ||
</div> | ||
|
||
|
||
<p id="description"></p> | ||
<div id="console"></div> | ||
|
||
<script> | ||
|
||
description("This tests that any element that has ARIA attributes is not ignored"); | ||
|
||
if (window.accessibilityController) { | ||
|
||
document.getElementById("outer").focus(); | ||
var outerDiv = accessibilityController.focusedElement; | ||
shouldBe("outerDiv.description", "'AXDescription: test'"); | ||
shouldBe("outerDiv.childAtIndex(0).role", "'AXRole: AXGroup'"); | ||
shouldBe("outerDiv.childAtIndex(0).childAtIndex(0).role", "'AXRole: AXStaticText'"); | ||
} | ||
|
||
successfullyParsed = true; | ||
</script> | ||
|
||
<script src="../../../fast/js/resources/js-test-post.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters