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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script src="../resources/gc.js"></script>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5
6 <!--
7
8 Accessibility Object Model
9 Explainer: https://github.com/WICG/aom/blob/master/explainer.md
10 Spec: https://wicg.github.io/aom/spec/
11
12 -->
13
14 <script>
15 if (window.internals)
16 internals.runtimeFlags.accessibilityObjectModelEnabled = true;
17 </script>
18
19 <div role=heading id=heading>
20
21 <script>
22 test(function(t) {
23 var node = document.getElementById("heading");
24 var axNode = accessibilityController.accessibleElementById("heading");
25 node.accessibleNode.level = 3;
26
27 // For historical reasons intValue returns the heading level.
28 assert_equals(axNode.intValue, 3);
29 }, "AOM level property");
30 </script>
31
32 <div role=list>
33 <div role=listitem id="listitem"></div>
34 </div>
35
36 <script>
37 test(function(t) {
38 var node = document.getElementById("listitem");
39 var axNode = accessibilityController.accessibleElementById("listitem");
40 node.accessibleNode.posInSet = 9;
41 node.accessibleNode.setSize = 10;
42 assert_equals(axNode.posInSet, 9);
43 assert_equals(axNode.setSize, 10);
44 }, "AOM posInSet and setSize");
45 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698