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

Unified Diff: content/test/data/accessibility/modal-dialog-opened.html

Issue 64273003: Add DumpAccessibilityTree tests for modal dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add android expectations 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
Index: content/test/data/accessibility/modal-dialog-opened.html
diff --git a/content/test/data/accessibility/modal-dialog-opened.html b/content/test/data/accessibility/modal-dialog-opened.html
new file mode 100644
index 0000000000000000000000000000000000000000..47da0581b17a8e894ee73438924ed45608bd9b12
--- /dev/null
+++ b/content/test/data/accessibility/modal-dialog-opened.html
@@ -0,0 +1,27 @@
+<!--
+@MAC-ALLOW:AXSubrole=*
+-->
+<html>
+<body>
+Test for modal dialog blocking a document.
+<section>
+ <dialog id="top-dialog">
+ The dialog subtree should be the only text content in the accessibility tree.
+ <a name="anchor" href="#link">Link inside the dialog.</a>
+ </dialog>
+ <select>
+ <optgroup label="Group">
+ <option>This should be pruned out of the tree.</option>
+ </optgroup>
+ </select>
+</section>
+<input type=file>
+<dialog id="bottom-dialog">
+ This is the pending dialog and should be pruned out.
+</dialog>
+<script>
+document.querySelector('#bottom-dialog').showModal();
+document.querySelector('#top-dialog').showModal();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698