| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../resources/js-test.js"></script> | 3 <script src="../resources/js-test.js"></script> |
| 4 | 4 |
| 5 <script> | 5 <script> |
| 6 if (window.testRunner) | 6 if (window.testRunner) |
| 7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
| 8 | 8 |
| 9 function runTest() | 9 function runTest() |
| 10 { | 10 { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 }, false); | 35 }, false); |
| 36 | 36 |
| 37 // Load content into the iframe. This will trigger the event | 37 // Load content into the iframe. This will trigger the event |
| 38 // handler above, which will check that the accessibility tree | 38 // handler above, which will check that the accessibility tree |
| 39 // was updated with new content. | 39 // was updated with new content. |
| 40 window.iframeElement.src = "data:text/html,<body><button>Click me</butto
n></body>"; | 40 window.iframeElement.src = "data:text/html,<body><button>Click me</butto
n></body>"; |
| 41 | 41 |
| 42 } | 42 } |
| 43 | 43 |
| 44 window.addEventListener('load', function() { | 44 window.addEventListener('load', function() { |
| 45 setTimeout(runTest, 10); | 45 runTest(); |
| 46 }, false); | 46 }, false); |
| 47 | 47 |
| 48 </script> | 48 </script> |
| 49 </head> | 49 </head> |
| 50 <body> | 50 <body> |
| 51 | 51 |
| 52 <p>Before</p> | 52 <p>Before</p> |
| 53 | 53 |
| 54 <iframe id="iframe" role="group"></iframe> | 54 <iframe id="iframe" role="group"></iframe> |
| 55 | 55 |
| 56 <p>After</p> | 56 <p>After</p> |
| 57 | 57 |
| 58 <p>End of test</p> | 58 <p>End of test</p> |
| 59 | 59 |
| 60 <p id="description"></p> | 60 <p id="description"></p> |
| 61 <div id="console"></div> | 61 <div id="console"></div> |
| 62 | 62 |
| 63 </body> | 63 </body> |
| 64 </html> | 64 </html> |
| OLD | NEW |