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

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

Issue 2822313002: Re-enable AccessibilityObjectModel tests by setting the status to "test". (Closed)
Patch Set: Update one more expectation 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 ea3fac335a8466fa976237ad0a4e4e5bd3157f2c..3e17d31568bf9b63d29da4c85ee32ae9e1166684 100644
--- a/third_party/WebKit/LayoutTests/accessibility/aom-string-properties.html
+++ b/third_party/WebKit/LayoutTests/accessibility/aom-string-properties.html
@@ -12,8 +12,9 @@ Spec: https://wicg.github.io/aom/spec/
-->
<script>
-if (window.internals)
- internals.runtimeFlags.accessibilityObjectModelEnabled = true;
+test(function(t) {
+ assert_true(internals.runtimeFlags.accessibilityObjectModelEnabled);
+}, "Make sure that Accessibility Object Model is enabled");
</script>
<div role="combobox" id="autocomplete"></div>
@@ -34,18 +35,22 @@ test(function(t) {
test(function(t) {
var node = document.getElementById("checked");
var axNode = accessibilityController.accessibleElementById("checked");
- assert_equals(axNode.checkedState, 0);
+ assert_equals(axNode.isChecked, false);
+ assert_equals(axNode.isButtonStateMixed, false);
node.accessibleNode.checked = "true";
- assert_equals(axNode.checkedState, 1);
+ assert_equals(axNode.isChecked, true);
+ assert_equals(axNode.isButtonStateMixed, false);
node.accessibleNode.checked = "mixed";
- assert_equals(axNode.checkedState, 2);
+ assert_equals(axNode.isChecked, true);
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.checkedState, 1);
+ assert_equals(axNode.isChecked, true);
+ assert_equals(axNode.isButtonStateMixed, false);
node.accessibleNode.checked = false;
- assert_equals(axNode.checkedState, 0);
+ assert_equals(axNode.isChecked, false);
+ assert_equals(axNode.isButtonStateMixed, false);
}, "AccessibleNode.checked");
</script>

Powered by Google App Engine
This is Rietveld 408576698