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

Unified Diff: content/test/data/accessibility/modal-dialog-in-iframe-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-in-iframe-opened.html
diff --git a/content/test/data/accessibility/modal-dialog-in-iframe-opened.html b/content/test/data/accessibility/modal-dialog-in-iframe-opened.html
new file mode 100644
index 0000000000000000000000000000000000000000..3130de1c0316d76f5b30e532078790ace7097187
--- /dev/null
+++ b/content/test/data/accessibility/modal-dialog-in-iframe-opened.html
@@ -0,0 +1,22 @@
+<!--
+@MAC-ALLOW:AXSubrole=*
+-->
+<html>
+<body>
+Test for modal dialog opened in an iframe.
+<iframe></iframe>
+<script>
+var frameCode =
+ '<dialog>Text in the dialog.</dialog>\n' +
+ '<button>I should not be in the AT tree.</button>\n';
+
+var iframeDoc = document.querySelector('iframe').contentDocument;
+iframeDoc.open();
+iframeDoc.write(frameCode);
+iframeDoc.close();
+
+var dialog = iframeDoc.querySelector('dialog');
+dialog.showModal();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698