Commit 7c6bf828 authored by David Tseng's avatar David Tseng Committed by Commit Bot

Update checked predicate and trigger for hint

Bug: 876944
Change-Id: Iffe0ef328e018ee2f8ca6e36fab757caa3aad1d2
Reviewed-on: https://chromium-review.googlesource.com/1232255Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593770}
parent 32ec4493
...@@ -455,10 +455,9 @@ AutomationPredicate.shouldIgnoreNode = function(node) { ...@@ -455,10 +455,9 @@ AutomationPredicate.shouldIgnoreNode = function(node) {
* @param {!AutomationNode} node * @param {!AutomationNode} node
* @return {boolean} * @return {boolean}
*/ */
AutomationPredicate.checkable = AutomationPredicate.roles([ AutomationPredicate.checkable = function(node) {
Role.CHECK_BOX, Role.RADIO_BUTTON, Role.MENU_ITEM_CHECK_BOX, return !!node.checked;
Role.MENU_ITEM_RADIO, Role.SWITCH, Role.TOGGLE_BUTTON, Role.TREE_ITEM };
]);
/** /**
* Returns if the node is clickable. * Returns if the node is clickable.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment