Use multiline attribute to check for IA2_STATE_MULTILINE.
[chromium-blink-merge.git] / content / test / data / accessibility / html / modal-dialog-in-iframe-opened.html
blob25dabeb8581160e4d13870501e013e287adab80b
1 <!--
2 @MAC-ALLOW:AXSubrole=*
3 -->
4 <html>
5 <body>
6 Test for modal dialog opened in an iframe.
7 <iframe scrolling="no"></iframe>
8 <script>
9 var frameCode =
10 '<dialog>Text in the dialog.</dialog>\n' +
11 '<button>I should not be in the AT tree.</button>\n';
13 var iframeDoc = document.querySelector('iframe').contentDocument;
14 iframeDoc.open();
15 iframeDoc.write(frameCode);
16 iframeDoc.close();
18 var dialog = iframeDoc.querySelector('dialog');
19 dialog.showModal();
20 </script>
21 </body>
22 </html>