Title: [171358] trunk/LayoutTests
Revision
171358
Author
mmaxfi...@apple.com
Date
2014-07-22 13:22:40 -0700 (Tue, 22 Jul 2014)

Log Message

[Mac] accessibility/aria-columnrowheaders.html doesn't test lengths of arrays
https://bugs.webkit.org/show_bug.cgi?id=135166

Reviewed by Chris Fleizach.

Using debug() interprets strings like "<array of size 0>" as markup, thereby not
showing it in the expected output. Instead, we should use innerText (which is
what all the other accessibility tests use).

* platform/mac/accessibility/aria-columnrowheaders-expected.txt:
* platform/mac/accessibility/aria-columnrowheaders.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (171357 => 171358)


--- trunk/LayoutTests/ChangeLog	2014-07-22 20:00:26 UTC (rev 171357)
+++ trunk/LayoutTests/ChangeLog	2014-07-22 20:22:40 UTC (rev 171358)
@@ -1,3 +1,17 @@
+2014-07-22  Myles C. Maxfield  <mmaxfi...@apple.com>
+
+        [Mac] accessibility/aria-columnrowheaders.html doesn't test lengths of arrays
+        https://bugs.webkit.org/show_bug.cgi?id=135166
+
+        Reviewed by Chris Fleizach.
+
+        Using debug() interprets strings like "<array of size 0>" as markup, thereby not
+        showing it in the expected output. Instead, we should use innerText (which is
+        what all the other accessibility tests use).
+
+        * platform/mac/accessibility/aria-columnrowheaders-expected.txt:
+        * platform/mac/accessibility/aria-columnrowheaders.html:
+
 2014-07-22  Alexey Proskuryakov  <a...@apple.com>
 
         [Mac] [WK2] selection-gap-fixed-child.html and selection-gap-flipped-fixed-child.html

Modified: trunk/LayoutTests/platform/mac/accessibility/aria-columnrowheaders-expected.txt (171357 => 171358)


--- trunk/LayoutTests/platform/mac/accessibility/aria-columnrowheaders-expected.txt	2014-07-22 20:00:26 UTC (rev 171357)
+++ trunk/LayoutTests/platform/mac/accessibility/aria-columnrowheaders-expected.txt	2014-07-22 20:22:40 UTC (rev 171358)
@@ -9,31 +9,31 @@
 AXRole: AXCell
 AXSubrole: (null)
 AXRoleDescription: cell
-AXChildren: 
+AXChildren: <array of size 1>
 AXHelp: 
-AXParent: 
+AXParent: <AXCell>
 AXSize: NSSize: {124, 18}
 AXTitle: 
 AXDescription: 
 AXValue: 
 AXFocused: 0
 AXEnabled: 1
-AXWindow: 
+AXWindow: <AXCell>
 AXSelectedTextMarkerRange: (null)
-AXStartTextMarker: 
-AXEndTextMarker: 
+AXStartTextMarker: <AXCell>
+AXEndTextMarker: <AXCell>
 AXVisited: 0
 AXLinkedUIElements: (null)
 AXSelected: 0
 AXBlockQuoteLevel: 0
-AXTopLevelUIElement: 
+AXTopLevelUIElement: <AXCell>
 AXLanguage: 
 AXDOMIdentifier: test
-AXDOMClassList: 
+AXDOMClassList: <array of size 0>
 AXRowIndexRange: NSRange: {0, 1}
 AXColumnIndexRange: NSRange: {0, 1}
-AXColumnHeaderUIElements: 
-AXRowHeaderUIElements: 
+AXColumnHeaderUIElements: <array of size 0>
+AXRowHeaderUIElements: <array of size 0>
 AXElementBusy: 0
 AXRequired: 0
 
@@ -41,31 +41,31 @@
 AXRole: AXCell
 AXSubrole: (null)
 AXRoleDescription: cell
-AXChildren: 
+AXChildren: <array of size 1>
 AXHelp: 
-AXParent: 
+AXParent: <AXCell>
 AXSize: NSSize: {54, 18}
 AXTitle: 
 AXDescription: 
 AXValue: 
 AXFocused: 0
 AXEnabled: 1
-AXWindow: 
+AXWindow: <AXCell>
 AXSelectedTextMarkerRange: (null)
-AXStartTextMarker: 
-AXEndTextMarker: 
+AXStartTextMarker: <AXCell>
+AXEndTextMarker: <AXCell>
 AXVisited: 0
 AXLinkedUIElements: (null)
 AXSelected: 0
 AXBlockQuoteLevel: 0
-AXTopLevelUIElement: 
+AXTopLevelUIElement: <AXCell>
 AXLanguage: 
 AXDOMIdentifier: 
-AXDOMClassList: 
+AXDOMClassList: <array of size 0>
 AXRowIndexRange: NSRange: {0, 1}
 AXColumnIndexRange: NSRange: {1, 1}
-AXColumnHeaderUIElements: 
-AXRowHeaderUIElements: 
+AXColumnHeaderUIElements: <array of size 0>
+AXRowHeaderUIElements: <array of size 0>
 AXElementBusy: 0
 AXRequired: 0
 
@@ -73,66 +73,64 @@
 AXRole: AXCell
 AXSubrole: (null)
 AXRoleDescription: cell
-AXChildren: 
+AXChildren: <array of size 1>
 AXHelp: 
-AXParent: 
+AXParent: <AXCell>
 AXSize: NSSize: {54, 18}
 AXTitle: 
 AXDescription: 
 AXValue: 
 AXFocused: 0
 AXEnabled: 1
-AXWindow: 
+AXWindow: <AXCell>
 AXSelectedTextMarkerRange: (null)
-AXStartTextMarker: 
-AXEndTextMarker: 
+AXStartTextMarker: <AXCell>
+AXEndTextMarker: <AXCell>
 AXVisited: 0
 AXLinkedUIElements: (null)
 AXSelected: 0
 AXBlockQuoteLevel: 0
-AXTopLevelUIElement: 
+AXTopLevelUIElement: <AXCell>
 AXLanguage: 
 AXDOMIdentifier: 
-AXDOMClassList: 
+AXDOMClassList: <array of size 0>
 AXRowIndexRange: NSRange: {0, 1}
 AXColumnIndexRange: NSRange: {2, 1}
-AXColumnHeaderUIElements: 
-AXRowHeaderUIElements: 
+AXColumnHeaderUIElements: <array of size 0>
+AXRowHeaderUIElements: <array of size 0>
 AXElementBusy: 0
 AXRequired: 0
 
 ------------
 
-
-
 AXRole: AXCell
 AXSubrole: (null)
 AXRoleDescription: cell
-AXChildren: 
+AXChildren: <array of size 1>
 AXHelp: 
-AXParent: 
+AXParent: <AXCell>
 AXSize: NSSize: {28, 18}
 AXTitle: 
 AXDescription: 
 AXValue: 
 AXFocused: 0
 AXEnabled: 1
-AXWindow: 
+AXWindow: <AXCell>
 AXSelectedTextMarkerRange: (null)
-AXStartTextMarker: 
-AXEndTextMarker: 
+AXStartTextMarker: <AXCell>
+AXEndTextMarker: <AXCell>
 AXVisited: 0
 AXLinkedUIElements: (null)
 AXSelected: 0
 AXBlockQuoteLevel: 0
-AXTopLevelUIElement: 
+AXTopLevelUIElement: <AXCell>
 AXLanguage: 
 AXDOMIdentifier: obj1
-AXDOMClassList: 
+AXDOMClassList: <array of size 0>
 AXRowIndexRange: NSRange: {1, 1}
 AXColumnIndexRange: NSRange: {0, 1}
-AXColumnHeaderUIElements: 
-AXRowHeaderUIElements: 
+AXColumnHeaderUIElements: <array of size 0>
+AXRowHeaderUIElements: <array of size 0>
 AXElementBusy: 0
 AXRequired: 0
 
@@ -140,36 +138,35 @@
 AXRole: AXCell
 AXSubrole: (null)
 AXRoleDescription: cell
-AXChildren: 
+AXChildren: <array of size 1>
 AXHelp: 
-AXParent: 
+AXParent: <AXCell>
 AXSize: NSSize: {28, 18}
 AXTitle: 
 AXDescription: 
 AXValue: 
 AXFocused: 0
 AXEnabled: 1
-AXWindow: 
+AXWindow: <AXCell>
 AXSelectedTextMarkerRange: (null)
-AXStartTextMarker: 
-AXEndTextMarker: 
+AXStartTextMarker: <AXCell>
+AXEndTextMarker: <AXCell>
 AXVisited: 0
 AXLinkedUIElements: (null)
 AXSelected: 0
 AXBlockQuoteLevel: 0
-AXTopLevelUIElement: 
+AXTopLevelUIElement: <AXCell>
 AXLanguage: 
 AXDOMIdentifier: 
-AXDOMClassList: 
+AXDOMClassList: <array of size 0>
 AXRowIndexRange: NSRange: {2, 1}
 AXColumnIndexRange: NSRange: {0, 1}
-AXColumnHeaderUIElements: 
-AXRowHeaderUIElements: 
+AXColumnHeaderUIElements: <array of size 0>
+AXRowHeaderUIElements: <array of size 0>
 AXElementBusy: 0
 AXRequired: 0
 
 ------------
-
 PASS successfullyParsed is true
 
 TEST COMPLETE

Modified: trunk/LayoutTests/platform/mac/accessibility/aria-columnrowheaders.html (171357 => 171358)


--- trunk/LayoutTests/platform/mac/accessibility/aria-columnrowheaders.html	2014-07-22 20:00:26 UTC (rev 171357)
+++ trunk/LayoutTests/platform/mac/accessibility/aria-columnrowheaders.html	2014-07-22 20:22:40 UTC (rev 171358)
@@ -37,9 +37,10 @@
 
           var grid = accessibilityController.accessibleElementById("grid");
 
-          debug(grid.attributesOfColumnHeaders());
-          debug("\n");
-          debug(grid.attributesOfRowHeaders());
+          var output = grid.attributesOfColumnHeaders();
+          output += "\n";
+          output += grid.attributesOfRowHeaders();
+          document.getElementById("console").innerText = output;
     }
 
 </script>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to