Index: LayoutTests/accessibility/inert-node-is-hidden.html |
diff --git a/LayoutTests/accessibility/inert-node-is-hidden.html b/LayoutTests/accessibility/inert-node-is-hidden.html |
deleted file mode 100644 |
index f25b1b542fd920cb596dec6e50b48aba6b704f73..0000000000000000000000000000000000000000 |
--- a/LayoutTests/accessibility/inert-node-is-hidden.html |
+++ /dev/null |
@@ -1,43 +0,0 @@ |
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
-<html> |
-<head> |
-<script src="../resources/js-test.js"></script> |
-</head> |
-<body id="body"> |
-This content should not be exposed to AT when a modal dialog is open. |
-<div> |
-<input title="input" id="input" type="text"> |
-</div> |
-<dialog title="dialog" id="dialog">Howdy</dialog> |
- |
-<script> |
-description("This tests that inert elements are not in the AT tree."); |
- |
-function treeContainsText(node, text) { |
- if (node.stringValue.indexOf(text) > 0) |
- return true; |
- for (i = 0; i < node.childrenCount; i++) { |
- if (treeContainsText(node.childAtIndex(i), text)) |
- return true; |
- } |
- return false; |
-} |
- |
-if (window.accessibilityController) { |
- document.body.focus(); |
- webArea = accessibilityController.focusedElement; |
- |
- shouldBeNonNull("accessibilityController.accessibleElementById('input')"); |
- shouldBeTrue("treeContainsText(webArea, 'This content should not be exposed to AT when a modal dialog is open')"); |
- |
- document.querySelector('dialog').showModal(); |
- shouldBeNull("accessibilityController.accessibleElementById('input')"); |
- shouldBeFalse("treeContainsText(webArea, 'This content should not be exposed to AT when a modal dialog is open')"); |
- |
- document.querySelector('dialog').close(); |
- shouldBeNonNull("accessibilityController.accessibleElementById('input')"); |
- shouldBeTrue("treeContainsText(webArea, 'This content should not be exposed to AT when a modal dialog is open')"); |
-} |
-</script> |
-</body> |
-</html> |