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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/aria-disabled.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/accessibility/aria-label.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/accessibility/aria-disabled.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/aria-disabled.html b/third_party/WebKit/LayoutTests/accessibility/aria-disabled.html
index 1109950279508b4b622d4c3dde9c6ec406427f45..838ee2ffe7e4daeac254ddf608f40aa38855660f 100644
--- a/third_party/WebKit/LayoutTests/accessibility/aria-disabled.html
+++ b/third_party/WebKit/LayoutTests/accessibility/aria-disabled.html
@@ -4,8 +4,8 @@
<script src="../resources/js-test.js"></script>
</head>
<body id="body">
-<input type="text" aria-disabled="true" size=20>
-<input type="text" aria-disabled="false" size=20>
+<input id="text1" type="text" aria-disabled="true" size=20>
+<input id="text2" type="text" aria-disabled="false" size=20>
<div role="group" id="group1" aria-disabled="true">
<div role="group">
<a id="link1" href="#">link</a>
@@ -22,12 +22,10 @@
if (window.accessibilityController) {
- var body = document.getElementById("body");
- body.focus();
- var textField = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(0);
+ var textField = accessibilityController.accessibleElementById("text1");
shouldBe("textField.isEnabled", "false");
- textField = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(1);
+ textField = accessibilityController.accessibleElementById("text2");
shouldBe("textField.isEnabled", "true");
var group = accessibilityController.accessibleElementById("group1");
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/accessibility/aria-label.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698