Title: [198303] trunk
Revision
198303
Author
[email protected]
Date
2016-03-16 14:49:26 -0700 (Wed, 16 Mar 2016)

Log Message

AX: Expose aria-current status to children
https://bugs.webkit.org/show_bug.cgi?id=155469

Reviewed by Chris Fleizach.

Source/WebCore:

Added aria-current to the global ARIA attributes list.

Test: accessibility/aria-current-global-attribute.html

* accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::supportsARIAAttributes):

LayoutTests:

* accessibility/aria-current-global-attribute-expected.txt: Added.
* accessibility/aria-current-global-attribute.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (198302 => 198303)


--- trunk/LayoutTests/ChangeLog	2016-03-16 21:31:18 UTC (rev 198302)
+++ trunk/LayoutTests/ChangeLog	2016-03-16 21:49:26 UTC (rev 198303)
@@ -1,3 +1,13 @@
+2016-03-16  Nan Wang  <[email protected]>
+
+        AX: Expose aria-current status to children
+        https://bugs.webkit.org/show_bug.cgi?id=155469
+
+        Reviewed by Chris Fleizach.
+
+        * accessibility/aria-current-global-attribute-expected.txt: Added.
+        * accessibility/aria-current-global-attribute.html: Added.
+
 2016-03-16  Tim Horton  <[email protected]>
 
         [mac] Printing test snapshots are upside-down after r198242

Added: trunk/LayoutTests/accessibility/aria-current-global-attribute-expected.txt (0 => 198303)


--- trunk/LayoutTests/accessibility/aria-current-global-attribute-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/accessibility/aria-current-global-attribute-expected.txt	2016-03-16 21:49:26 UTC (rev 198303)
@@ -0,0 +1,12 @@
+text1 text2
+This tests that aria-current is a global attribute.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS spanAccessible('text1') is false
+PASS spanAccessible('text2') is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/accessibility/aria-current-global-attribute.html (0 => 198303)


--- trunk/LayoutTests/accessibility/aria-current-global-attribute.html	                        (rev 0)
+++ trunk/LayoutTests/accessibility/aria-current-global-attribute.html	2016-03-16 21:49:26 UTC (rev 198303)
@@ -0,0 +1,38 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src=""
+</head>
+
+<body id="body">
+
+<span id="text1">text1</span>
+<span aria-current="true" id="text2">text2</span>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+
+    description("This tests that aria-current is a global attribute.");
+
+    if (window.accessibilityController) {
+        shouldBeFalse("spanAccessible('text1')");
+        shouldBeTrue("spanAccessible('text2')");
+    }
+    
+    function spanAccessible(sh) {
+        var spanObj = accessibilityController.accessibleElementById(sh);
+        
+        if (!spanObj)
+            return false;
+        
+        return !spanObj.isIgnored;
+    }
+
+</script>
+
+
+<script src=""
+</body>
+</html>
\ No newline at end of file

Modified: trunk/Source/WebCore/ChangeLog (198302 => 198303)


--- trunk/Source/WebCore/ChangeLog	2016-03-16 21:31:18 UTC (rev 198302)
+++ trunk/Source/WebCore/ChangeLog	2016-03-16 21:49:26 UTC (rev 198303)
@@ -1,3 +1,17 @@
+2016-03-16  Nan Wang  <[email protected]>
+
+        AX: Expose aria-current status to children
+        https://bugs.webkit.org/show_bug.cgi?id=155469
+
+        Reviewed by Chris Fleizach.
+
+        Added aria-current to the global ARIA attributes list.
+
+        Test: accessibility/aria-current-global-attribute.html
+
+        * accessibility/AccessibilityObject.cpp:
+        (WebCore::AccessibilityObject::supportsARIAAttributes):
+
 2016-03-16  Tim Horton  <[email protected]>
 
         [mac] Printing test snapshots are upside-down after r198242

Modified: trunk/Source/WebCore/accessibility/AccessibilityObject.cpp (198302 => 198303)


--- trunk/Source/WebCore/accessibility/AccessibilityObject.cpp	2016-03-16 21:31:18 UTC (rev 198302)
+++ trunk/Source/WebCore/accessibility/AccessibilityObject.cpp	2016-03-16 21:49:26 UTC (rev 198303)
@@ -2245,6 +2245,7 @@
         || hasAttribute(aria_atomicAttr)
         || hasAttribute(aria_busyAttr)
         || hasAttribute(aria_controlsAttr)
+        || hasAttribute(aria_currentAttr)
         || hasAttribute(aria_describedbyAttr)
         || hasAttribute(aria_disabledAttr)
         || hasAttribute(aria_flowtoAttr)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to