[Webkit-unassigned] [Bug 89103] Should be easier to write cross-platform accessibility layout tests

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 14 08:08:27 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=89103





--- Comment #2 from Mike West <mkwst at chromium.org>  2012-06-14 08:08:27 PST ---
Moving Dominic's comments from that bug here:

> > BTW, I would really like to see a way to write "cross-platform" accessibility tests that test for the WebCore role rather than the platform-specific role, I just haven't had a chance to think about how to do that refactoring yet.
>
> I've only taken a very quick look at the code, but it seems like it should be possible to set up a mechanism to test the "real" role in DumpRenderTree by adding some methods to AccessibilityUIElement. Maybe with an enum hanging around that's mapped onto ARIARoleMap?
>
> Seomthing like AccessibilityUIElement::isRole([enum]) and AccessibilityUIElement::isRoleDescription([enum])?
>
> Is there a bug for this sort of refactoring? It sounds like it'd be useful...

Added a new bug:
https://bugs.webkit.org/show_bug.cgi?id=89103

isRole wouldn't work very well, we'd have to expose the enum to JavaScript. Instead we should just expose the WebCore role name as a string in JavaScript, and make it a compile error to add a new role without adding the role name.

I don't think we need to have role descriptions in cross-platform tests, that's a Mac-only concept. The WebCore role enum should encompass all distinct roles, and each platform should map a role to whatever makes sense on that platform - on Mac one role might map to a {role, roleDescription} tuple.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list