Commit 3f09a820 authored by shreeram.k's avatar shreeram.k Committed by Commit bot

img tag should have xml-role as img.

According to specs img tag should have xml-role as img.

BUG=417230

Review URL: https://codereview.chromium.org/592353004

Cr-Commit-Position: refs/heads/master@{#296910}
parent 1e4f66db
......@@ -573,6 +573,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("iframe-coordinates.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityImg) {
RunTest(FILE_PATH_LITERAL("img.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputButton) {
RunTest(FILE_PATH_LITERAL("input-button.html"));
}
......
......@@ -75,6 +75,8 @@ std::string GetEquivalentAriaRoleString(const ui::AXRole role) {
case ui::AX_ROLE_CONTENT_INFO:
case ui::AX_ROLE_FOOTER:
return "contentinfo";
case ui::AX_ROLE_IMAGE:
return "img";
case ui::AX_ROLE_MAIN:
return "main";
case ui::AX_ROLE_NAVIGATION:
......
android.webkit.WebView focusable focused scrollable
android.view.View
android.widget.Image clickable name='pipe'
AXWebArea
AXGroup
AXImage AXRoleDescription='image'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_SECTION READONLY
ROLE_SYSTEM_GRAPHIC name='pipe' READONLY xml-roles:img
<!--
@MAC-ALLOW:AXRoleDescription='image'
@WIN-ALLOW:xml-roles:*
-->
<html>
<body>
<img src="pipe.jpg" alt="pipe">
<img src="pipe.jpg" alt="">
<img src="pipe.jpg" alt=" ">
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment