Bug 98348

Summary: [GTK] Reevaluate the platform-specific nature of some accessibility tests
Product: WebKit Reporter: Zan Dobersek <zan>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, clopez, fred.wang, jdiggs, mario
Priority: P2 Keywords: Gtk, LayoutTestFailure
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 118968, 141074, 118966, 118967, 118969, 123893, 155353    
Bug Blocks: 98347    

Description Zan Dobersek 2012-10-04 00:18:00 PDT
The following can currently be found in TestExpectations file:

# Accessibility tests that should never be run for GTK due to be
# written in a platform-specific way. They should either be moved to
# the right platform or re-written in a more platform-agnostic way.
accessibility/aria-list-and-listitem.html [ WontFix ]
accessibility/aria-option-role.html [ WontFix ]
accessibility/internal-link-anchors2.html [ WontFix ]
accessibility/radio-button-group-members.html [ WontFix ]
accessibility/table-attributes.html [ WontFix ]
accessibility/table-detection.html [ WontFix ]
accessibility/table-one-cell.html [ WontFix ]
accessibility/table-sections.html [ WontFix ]
accessibility/table-with-aria-role.html [ WontFix ]
accessibility/table-with-rules.html [ WontFix ]
accessibility/plugin.html [ WontFix ]

I think we should reevaluate this classification, see if any test could be rewritten in platform-independent way and otherwise either remove these tests under proper platform-specific directories or just keep these expectations as they are.
Comment 1 Mario Sanchez Prada 2013-07-22 06:08:06 PDT
(In reply to comment #0)
> The following can currently be found in TestExpectations file:
> 
> # Accessibility tests that should never be run for GTK due to be
> # written in a platform-specific way. They should either be moved to
> # the right platform or re-written in a more platform-agnostic way.
> accessibility/internal-link-anchors2.html [ WontFix ]
> accessibility/radio-button-group-members.html [ WontFix ]
> accessibility/table-attributes.html [ WontFix ]
> accessibility/table-detection.html [ WontFix ]
> accessibility/table-one-cell.html [ WontFix ]
> accessibility/table-sections.html [ WontFix ]
> accessibility/table-with-aria-role.html [ WontFix ]
> accessibility/table-with-rules.html [ WontFix ]
> accessibility/plugin.html [ WontFix ]
> 
> I think we should reevaluate this classification, see if any test could be 
> rewritten in platform-independent way and otherwise either remove these tests 
> under proper platform-specific directories or just keep these expectations as 
> they are.

I agree. Actually, all those tests[*] could be fixed by implementing the corresponding attributesOf*() function in AccessibilityUIElement() for DRT/WKTR, since those functions are currently unimplemented.

More specifically, this is what needs to be implemented:

 * table-attributes.html, table-sections.html:
    - attributesOfColumnHeaders()
    - attributesOfRowHeaders()
    - attributesOfColumns()
    - attributesOfRows()
    - attributesOfHeader()
    - attributesOfVisibleCell()

 * plugin.html, table-with-aria-role.html:
    - attributesOfChildren()

 * internal-link-anchors2.html, radio-button-group-members.html:
    - attributesOfLinkedUIElements

 * table-detection.html, table-one-cell.html, table-with-rules.html:
    - allAtributes()

Additionally, implementing all those functions (specially allAttributes() and attributesOfChildren()) will help us run properly other tests as well, so it looks indeed like something interesting to fix.

I'll be filing bugs for all of them soon, and hopefully working on them too.

[*] With the exception of aria-list-and-listitem.html and accessibility/aria-option-role.html, which are no longer in the TestExpectations file.
Comment 2 Carlos Alberto Lopez Perez 2014-01-24 08:21:11 PST
accessibility/internal-link-anchors2.html is passing correctly now on wk1/wk2 gtk+. I checked the test and I don't see anything platform specific. I will be removing it from the list.
Comment 3 Frédéric Wang (:fredw) 2016-03-11 01:20:16 PST
(In reply to comment #2)
> accessibility/internal-link-anchors2.html is passing correctly now on
> wk1/wk2 gtk+. I checked the test and I don't see anything platform specific.
> I will be removing it from the list.

This one is still marked [ WontFix Missing ] so it always generates a text expectation when you run accessibility tests.

@Joanie: can you check whether the result is correct? If so, I think we can just add the missing expectation file and remove this test from TestExpectation.
Comment 4 Frédéric Wang (:fredw) 2016-03-11 02:07:26 PST
I added accessibility/content-editable-as-textarea.html to that list.

http://trac.webkit.org/changeset/198003
Comment 5 Frédéric Wang (:fredw) 2016-03-14 08:31:02 PDT
http://trac.webkit.org/changeset/198130