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