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> |