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

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

Issue 2694903010: AX checked state changes (Closed)
Patch Set: git cl try Created 3 years, 8 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-string-properties.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/aom-string-properties.html b/third_party/WebKit/LayoutTests/accessibility/aom-string-properties.html
index 816f1a3603b4c6e316b0f5316c169dc58e7d640f..ea3fac335a8466fa976237ad0a4e4e5bd3157f2c 100644
--- a/third_party/WebKit/LayoutTests/accessibility/aom-string-properties.html
+++ b/third_party/WebKit/LayoutTests/accessibility/aom-string-properties.html
@@ -34,18 +34,18 @@ test(function(t) {
test(function(t) {
var node = document.getElementById("checked");
var axNode = accessibilityController.accessibleElementById("checked");
- assert_equals(axNode.isChecked, false);
+ assert_equals(axNode.checkedState, 0);
node.accessibleNode.checked = "true";
- assert_equals(axNode.isChecked, true);
+ assert_equals(axNode.checkedState, 1);
node.accessibleNode.checked = "mixed";
- assert_equals(axNode.isChecked, false);
+ assert_equals(axNode.checkedState, 2);
assert_equals(axNode.isButtonStateMixed, true);
// It also works to set it to just true or false (no quotes).
node.accessibleNode.checked = true;
- assert_equals(axNode.isChecked, true);
+ assert_equals(axNode.checkedState, 1);
node.accessibleNode.checked = false;
- assert_equals(axNode.isChecked, false);
+ assert_equals(axNode.checkedState, 0);
}, "AccessibleNode.checked");
</script>

Powered by Google App Engine
This is Rietveld 408576698