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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/aom-int-properties.html

Issue 2894103002: Int and Float properties for Accessibility Object Model phase 1 (Closed)
Patch Set: Update webexposed/ Created 3 years, 7 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: 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>

Powered by Google App Engine
This is Rietveld 408576698