Bug 133519

Summary: [GTK] Layout Test accessibility/table-fallback-roles-expose-element-attributes.html is failing
Product: WebKit Reporter: Carlos Alberto Lopez Perez <clopez>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: a.badowski, aboxhall, apinheiro, buildbot, cfleizach, commit-queue, dmazzoni, jcraig, jdiggs, mario, rniwa, samuel_white
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Path proposal
buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-02 for mac-mountainlion
none
Path proposal
none
Patch proposal cfleizach: review+

Carlos Alberto Lopez Perez
Reported 2014-06-04 11:18:09 PDT
The following layout test added on r169427 <http://trac.webkit.org/r169427> is failing on GTK since it was added. accessibility/table-fallback-roles-expose-element-attributes.html The diff is the following: --- /home/clopez/webkit/webkit/layout-test-results/accessibility/table-fallback-roles-expose-element-attributes-expected.txt +++ /home/clopez/webkit/webkit/layout-test-results/accessibility/table-fallback-roles-expose-element-attributes-actual.txt @@ -6,11 +6,11 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". -cellChild: AXRole: AXStaticText, AXValue: item1 +cellChild: , -cellChild: AXRole: AXStaticText, AXValue: item1 +cellChild: , -cellChild: AXRole: AXStaticText, AXValue: item1 +cellChild: , PASS successfullyParsed is true
Attachments
Path proposal (5.88 KB, patch)
2014-06-05 03:58 PDT, Mario Sanchez Prada
buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-02 for mac-mountainlion (503.91 KB, application/zip)
2014-06-05 05:25 PDT, Build Bot
no flags
Path proposal (5.87 KB, patch)
2014-06-05 05:35 PDT, Mario Sanchez Prada
no flags
Patch proposal (6.76 KB, patch)
2014-06-06 05:33 PDT, Mario Sanchez Prada
cfleizach: review+
Mario Sanchez Prada
Comment 1 2014-06-05 02:53:50 PDT
The problem here is that we don't expose the text in a cell as a child element for ATK, so that's why we can't anything printed when we navigate down to that level. In other words, in the Mac the hiearchy is like this Grid |--Cell | |--text |--Cell | |--text ... ... In ATK, however, it's like this: Grid |--Cell |--Cell ... ... ...and you get the text in the cell by quering the AX object for that cell (which implements AtkText). Because of that reason, the following code can't output anything reasonable for ATK: if (window.accessibilityController) { for (var k = 1; k < 4; k++) { var grid = accessibilityController.accessibleElementById("grid" + k); var cellChild = grid.cellForColumnAndRow(0, 0).childAtIndex(0); debug("cellChild: " + cellChild.role + ", " + cellChild.stringValue + "\n"); } } I think an improvement could be to do something like this: if (window.accessibilityController) { for (var k = 1; k < 4; k++) { var grid = accessibilityController.accessibleElementById("grid" + k); var cell = grid.cellForColumnAndRow(0, 0); debug("cell: " + cell.role + ", " + cell.stringValue + "\n"); if (accessibilityController.platformName != "atk") { var cellChild = cell.childAtIndex(0); debug("cellChild: " + cellChild.role + ", " + cellChild.stringValue + "\n"); } } } ...and then update the expectations accordingly (probably with the help of the EWS, to know what the Mac would print there)
Mario Sanchez Prada
Comment 2 2014-06-05 03:58:39 PDT
Created attachment 232535 [details] Path proposal Attaching patch proposal but not asking for review yet since I'm mostly interested on seeing what the Mac EWS bots have to say about my guessed output
Build Bot
Comment 3 2014-06-05 05:24:59 PDT
Comment on attachment 232535 [details] Path proposal Attachment 232535 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/4519381602140160 New failing tests: accessibility/table-fallback-roles-expose-element-attributes.html
Build Bot
Comment 4 2014-06-05 05:25:03 PDT
Created attachment 232538 [details] Archive of layout-test-results from webkit-ews-02 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-02 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Mario Sanchez Prada
Comment 5 2014-06-05 05:35:10 PDT
Created attachment 232539 [details] Path proposal Now making the Mac bots happy
Mario Sanchez Prada
Comment 6 2014-06-06 05:33:40 PDT
Created attachment 232613 [details] Patch proposal Forgot to remove the failure test expectation before, so this should be the final patch Please review, thanks
chris fleizach
Comment 7 2014-06-06 08:45:33 PDT
Comment on attachment 232613 [details] Patch proposal View in context: https://bugs.webkit.org/attachment.cgi?id=232613&action=review > LayoutTests/ChangeLog:12 > + Updated text to print information of cells fro every platform but cells fro -> cells from
Mario Sanchez Prada
Comment 8 2014-06-06 09:14:28 PDT
(In reply to comment #7) > (From update of attachment 232613 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=232613&action=review > > > LayoutTests/ChangeLog:12 > > + Updated text to print information of cells fro every platform but > > cells fro -> cells from Will change before landing. Thanks
Mario Sanchez Prada
Comment 9 2014-06-06 09:20:29 PDT
Michal Pakula vel Rutka
Comment 10 2014-07-22 06:18:26 PDT
*** Bug 133508 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.