| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body id="body"> | 6 <body id="body"> |
| 7 This content should not be exposed to AT when a modal dialog is open. | 7 This content should not be exposed to AT when a modal dialog is open. |
| 8 <div> | 8 <div> |
| 9 <input title="input" id="input" type="text"> | 9 <input title="input" id="input" type="text"> |
| 10 </div> | 10 </div> |
| 11 <dialog title="dialog" id="dialog">Howdy</dialog> | 11 <dialog title="dialog" id="dialog">Howdy</dialog> |
| 12 | 12 |
| 13 <script> | 13 <script> |
| 14 description("This tests that inert elements are not in the AT tree."); | 14 description("This tests that inert elements are not in the AT tree."); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 34 shouldBeNull("accessibilityController.accessibleElementById('input')"); | 34 shouldBeNull("accessibilityController.accessibleElementById('input')"); |
| 35 shouldBeFalse("treeContainsText(webArea, 'This content should not be exposed
to AT when a modal dialog is open')"); | 35 shouldBeFalse("treeContainsText(webArea, 'This content should not be exposed
to AT when a modal dialog is open')"); |
| 36 | 36 |
| 37 document.querySelector('dialog').close(); | 37 document.querySelector('dialog').close(); |
| 38 shouldBeNonNull("accessibilityController.accessibleElementById('input')"); | 38 shouldBeNonNull("accessibilityController.accessibleElementById('input')"); |
| 39 shouldBeTrue("treeContainsText(webArea, 'This content should not be exposed
to AT when a modal dialog is open')"); | 39 shouldBeTrue("treeContainsText(webArea, 'This content should not be exposed
to AT when a modal dialog is open')"); |
| 40 } | 40 } |
| 41 </script> | 41 </script> |
| 42 </body> | 42 </body> |
| 43 </html> | 43 </html> |
| OLD | NEW |