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

Unified Diff: LayoutTests/accessibility/inert-node-is-hidden.html

Issue 70213002: Update the accessibility tree when a modal dialog is opened/closed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: sync and remove inert-node-is-hidden.html Created 7 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/accessibility/inert-node-is-hidden-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/accessibility/inert-node-is-hidden-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698