Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Unified Diff: third_party/WebKit/LayoutTests/accessibility/aria-used-on-image-maps.html

Issue 2382083002: Make LayoutTests ambivalent of of anonymous blocks (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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'");
}

Powered by Google App Engine
This is Rietveld 408576698