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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/img-aria-button-alt-tag.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/img-aria-button-alt-tag.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/img-aria-button-alt-tag.html b/third_party/WebKit/LayoutTests/accessibility/img-aria-button-alt-tag.html
index 1b3ee437b669dc7c88f9ab65b2a3d7cafc98928e..a9791a8b5e1a8618d250c89963f49e02413043aa 100644
--- a/third_party/WebKit/LayoutTests/accessibility/img-aria-button-alt-tag.html
+++ b/third_party/WebKit/LayoutTests/accessibility/img-aria-button-alt-tag.html
@@ -19,8 +19,7 @@
if (window.accessibilityController) {
var result = document.getElementById("result");
- var body = document.getElementById("body").focus();
- var imgUIElement = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(0);
+ var imgUIElement = accessibilityController.accessibleElementById("image");
shouldBe("imgUIElement.name", "'alternate'");
}
</script>

Powered by Google App Engine
This is Rietveld 408576698