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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/ignore-spacer-elements.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/ignore-spacer-elements.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/ignore-spacer-elements.html b/third_party/WebKit/LayoutTests/accessibility/ignore-spacer-elements.html
index 60ef23c019145ff177f09d237ea46586511805c5..5fb791ddf28e220aacfa959ef1a535c2cdd17225 100644
--- a/third_party/WebKit/LayoutTests/accessibility/ignore-spacer-elements.html
+++ b/third_party/WebKit/LayoutTests/accessibility/ignore-spacer-elements.html
@@ -7,10 +7,12 @@
<!-- This test makes sure that spacer elements are not returned as elements. There should be at most 4 elements returned -->
+<div role="group" id="container">
<b>First</b>
<b>Second</b>
<a href="http://www.apple.com">Apple</a>
<a href="http://www.yahoo.com">Yahoo</a>
+</div>
<div id="result"></div>
@@ -22,11 +24,9 @@
var body = document.getElementById("body");
body.focus();
- var container = accessibilityController.focusedElement.childAtIndex(0);
+ var container = accessibilityController.accessibleElementById("container");
- // The Gtk port ATs expect the bold inline text to not have accessible objects.
- var expectedCount = (testRunner.platformName == "gtk") ? 2 : 4;
- if (container.childrenCount == expectedCount) {
+ if (container.childrenCount == 4) {
result.innerText += "Test passed\n";
}
else {

Powered by Google App Engine
This is Rietveld 408576698