| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../fast/js/resources/js-test-pre.js"></script> | |
| 5 </head> | |
| 6 <body id="body"> | |
| 7 <input id="input" type="text"> | |
| 8 <p id="description"></p> | |
| 9 <div id="console"></div> | |
| 10 <dialog></dialog> | |
| 11 | |
| 12 <script> | |
| 13 description("This tests that inert elements are not enabled."); | |
| 14 | |
| 15 if (window.accessibilityController) { | |
| 16 textField = accessibilityController.accessibleElementById('input'); | |
| 17 shouldBe("textField.isEnabled", "true"); | |
| 18 | |
| 19 document.querySelector('dialog').showModal(); | |
| 20 shouldBe("textField.isEnabled", "false"); | |
| 21 } | |
| 22 </script> | |
| 23 | |
| 24 <script src="../fast/js/resources/js-test-post.js"></script> | |
| 25 </body> | |
| 26 </html> | |
| OLD | NEW |