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

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: Just some cleanup 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
Index: LayoutTests/accessibility/aria-disabled.html
diff --git a/LayoutTests/accessibility/aria-disabled.html b/LayoutTests/accessibility/aria-disabled.html
index de016c1042c1dca968dfccef7e9edf6b22186249..41672530ec19a03d7dfa7037d4f27ac9bfe4c995 100644
--- a/LayoutTests/accessibility/aria-disabled.html
+++ b/LayoutTests/accessibility/aria-disabled.html
@@ -6,6 +6,10 @@
<body id="body">
<input type="text" aria-disabled="true" size=20>
<input type="text" aria-disabled="false" size=20>
+<div aria-disabled="true">
+ <a id="link1" href="#">link</a>
+ <button id="button1" type="submit" aria-disabled="false">submit</button>
+</div>
<p id="description"></p>
<div id="console"></div>
@@ -24,6 +28,14 @@
textField = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(1);
succeeded = textField.isEnabled;
shouldBe("succeeded", "true");
+
+ var link = accessibilityController.accessibleElementById("link1");
+ succeeded = link.isEnabled;
+ shouldBe("succeeded", "false");
+
+ var button = accessibilityController.accessibleElementById("button1");
+ succeeded = button.isEnabled;
+ shouldBe("succeeded", "false");
}
</script>
« no previous file with comments | « no previous file | LayoutTests/accessibility/aria-disabled-expected.txt » ('j') | Source/modules/accessibility/AXNodeObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698