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

Unified Diff: LayoutTests/accessibility/aria-disabled.html

Issue 1012663002: Aria disabled does not apply to descendant elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed methods names to ..DisabledNode() Created 5 years, 9 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 | LayoutTests/accessibility/aria-disabled-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/aria-disabled.html
diff --git a/LayoutTests/accessibility/aria-disabled.html b/LayoutTests/accessibility/aria-disabled.html
index de016c1042c1dca968dfccef7e9edf6b22186249..1109950279508b4b622d4c3dde9c6ec406427f45 100644
--- a/LayoutTests/accessibility/aria-disabled.html
+++ b/LayoutTests/accessibility/aria-disabled.html
@@ -6,6 +6,13 @@
<body id="body">
<input type="text" aria-disabled="true" size=20>
<input type="text" aria-disabled="false" size=20>
+<div role="group" id="group1" aria-disabled="true">
+ <div role="group">
+ <a id="link1" href="#">link</a>
+ <button id="button1" type="submit" aria-disabled="false">submit</button>
+ <div>
+<div>
+</div>
<p id="description"></p>
<div id="console"></div>
@@ -18,12 +25,19 @@
var body = document.getElementById("body");
body.focus();
var textField = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(0);
- var succeeded = textField.isEnabled;
- shouldBe("succeeded", "false");
+ shouldBe("textField.isEnabled", "false");
textField = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(1);
- succeeded = textField.isEnabled;
- shouldBe("succeeded", "true");
+ shouldBe("textField.isEnabled", "true");
+
+ var group = accessibilityController.accessibleElementById("group1");
+ shouldBe("group.isEnabled", "false");
+
+ var link = accessibilityController.accessibleElementById("link1");
+ shouldBe("link.isEnabled", "false");
+
+ var button = accessibilityController.accessibleElementById("button1");
+ shouldBe("button.isEnabled", "true");
}
</script>
« no previous file with comments | « no previous file | LayoutTests/accessibility/aria-disabled-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698