| Index: third_party/WebKit/LayoutTests/accessibility/aria-used-on-image-maps.html
|
| diff --git a/third_party/WebKit/LayoutTests/accessibility/aria-used-on-image-maps.html b/third_party/WebKit/LayoutTests/accessibility/aria-used-on-image-maps.html
|
| index d78db454b039ca56b624972af7777592f860aedd..e78f580f1ac1ca1bf1854374057b9c45fa0f84e1 100644
|
| --- a/third_party/WebKit/LayoutTests/accessibility/aria-used-on-image-maps.html
|
| +++ b/third_party/WebKit/LayoutTests/accessibility/aria-used-on-image-maps.html
|
| @@ -5,7 +5,9 @@
|
| </head>
|
| <body id="body">
|
|
|
| -<img id="image" usemap="#map" src="data:image/gif;base64,R0lGODlhAQABAIAAAOTm7AAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" width="100" height="50" alt="">
|
| +<div id="group" role="group">
|
| + <img id="image" usemap="#map" src="data:image/gif;base64,R0lGODlhAQABAIAAAOTm7AAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" width="100" height="50" alt="">
|
| +</div>
|
| <map name="map" id="map">
|
| <area tabindex="0" role="button" shape="rect" coords="0,0,50,50" href="#" title="Example 1">
|
| <area tabindex="0" role="button" shape="rect" coords="50,0,100,50" href="#" title="Example 2">
|
| @@ -19,8 +21,7 @@
|
| description("This tests that you can set an ARIA role on image map elements.");
|
|
|
| if (window.accessibilityController) {
|
| - document.body.focus();
|
| - var group = accessibilityController.focusedElement.childAtIndex(0);
|
| + var group = accessibilityController.accessibleElementById("group");
|
| shouldBe("group.childAtIndex(0).role", "'AXRole: AXButton'");
|
| shouldBe("group.childAtIndex(1).role", "'AXRole: AXButton'");
|
| }
|
|
|