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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/aria-treeitem-checkable.html

Issue 2906083002: Basic test for treeitem checkability (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4
5 <div role="treeitem" id="treeitem-false" aria-checked="false">Not checked</div>
6 <div role="treeitem" id="treeitem-true" aria-checked="true">Checked</div>
7
8
9 <script>
10 function axElementById(id) {
11 return accessibilityController.accessibleElementById(id);
12 }
13
14 test(function(t) {
15 var treeItem = axElementById("treeitem-false");
16 assert_equals(treeItem.isChecked, false);
17 }, "A tree item with aria-checked=false has checkedState=false");
18
19 test(function(t) {
20 var treeItem = axElementById("treeitem-true");
21 assert_equals(treeItem.isChecked, true);
22 }, "A tree item with aria-checked=true has checkedState=true");
23 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698