Commit 3c1e950b authored by aleventhal's avatar aleventhal Committed by Commit bot

Test for anything falsey as a fail value for element.accessibleNode. Test for...

Test for anything falsey as a fail value for element.accessibleNode. Test for anything truthy as a fail value on a static text node's accessibleNode.

BUG=None

Review-Url: https://codereview.chromium.org/2823053002
Cr-Commit-Position: refs/heads/master@{#465756}
parent d022298a
......@@ -21,14 +21,14 @@ test(function(t) {
test(function(t) {
var button = document.getElementById("button");
assert_equals(button.nodeType, Node.ELEMENT_NODE);
assert_not_equals(button.accessibleNode, null);
assert_true(Boolean(button.accessibleNode));
}, "DOM Elements have an AccessibleNode");
test(function(t) {
var button = document.getElementById("button");
var staticText = button.firstChild;
assert_equals(staticText.nodeType, Node.TEXT_NODE);
assert_not_equals(staticText.accessibleNode, null);
assert_false(Boolean(staticText.accessibleNode));
}, "DOM Text nodes do not have an AccessibleNode.");
test(function(t) {
......
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