test_iframe.html (1173B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Outer document accessible tests</title> 5 <link rel="stylesheet" type="text/css" 6 href="chrome://mochikit/content/tests/SimpleTest/test.css" /> 7 8 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 9 10 <script type="application/javascript" 11 src="../common.js"></script> 12 <script type="application/javascript" 13 src="../role.js"></script> 14 15 <script type="application/javascript"> 16 function doTest() { 17 var accTree = { 18 role: ROLE_INTERNAL_FRAME, 19 children: [ 20 { 21 role: ROLE_DOCUMENT, 22 }, 23 ], 24 }; 25 26 testAccessibleTree("iframe", accTree); 27 28 SimpleTest.finish(); 29 } 30 31 SimpleTest.waitForExplicitFinish(); 32 addA11yLoadEvent(doTest); 33 </script> 34 </head> 35 <body> 36 37 <a target="_blank" 38 title="Fix O(n^2) access to all the children of a container" 39 href="https://bugzilla.mozilla.org/show_bug.cgi?id=342045"> 40 Mozilla Bug 342045 41 </a> 42 <p id="display"></p> 43 <div id="content" style="display: none"></div> 44 <pre id="test"> 45 </pre> 46 47 <iframe id="iframe" src="about:mozilla"> 48 49 </body> 50 </html>