| Index: third_party/WebKit/LayoutTests/accessibility/aom-int-properties.html
|
| diff --git a/third_party/WebKit/LayoutTests/accessibility/aom-int-properties.html b/third_party/WebKit/LayoutTests/accessibility/aom-int-properties.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ec49d0a1172a227f143a2dbc31ca399ce5ddc37d
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/accessibility/aom-int-properties.html
|
| @@ -0,0 +1,45 @@
|
| +<!DOCTYPE HTML>
|
| +<script src="../resources/gc.js"></script>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +
|
| +<!--
|
| +
|
| +Accessibility Object Model
|
| +Explainer: https://github.com/WICG/aom/blob/master/explainer.md
|
| +Spec: https://wicg.github.io/aom/spec/
|
| +
|
| +-->
|
| +
|
| +<script>
|
| +if (window.internals)
|
| + internals.runtimeFlags.accessibilityObjectModelEnabled = true;
|
| +</script>
|
| +
|
| +<div role=heading id=heading>
|
| +
|
| +<script>
|
| +test(function(t) {
|
| + var node = document.getElementById("heading");
|
| + var axNode = accessibilityController.accessibleElementById("heading");
|
| + node.accessibleNode.level = 3;
|
| +
|
| + // For historical reasons intValue returns the heading level.
|
| + assert_equals(axNode.intValue, 3);
|
| +}, "AOM level property");
|
| +</script>
|
| +
|
| +<div role=list>
|
| + <div role=listitem id="listitem"></div>
|
| +</div>
|
| +
|
| +<script>
|
| +test(function(t) {
|
| + var node = document.getElementById("listitem");
|
| + var axNode = accessibilityController.accessibleElementById("listitem");
|
| + node.accessibleNode.posInSet = 9;
|
| + node.accessibleNode.setSize = 10;
|
| + assert_equals(axNode.posInSet, 9);
|
| + assert_equals(axNode.setSize, 10);
|
| +}, "AOM posInSet and setSize");
|
| +</script>
|
|
|