| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../fast/js/resources/js-test-pre.js"></script> | |
| 5 </head> | |
| 6 <body id="body"> | |
| 7 | |
| 8 <input placeholder="search" type="text" name="q" size="15" maxlength="255" i
d="searchterm" /> | |
| 9 | |
| 10 <input id="password" class="field" type="password" name="sc1798" value="" pl
aceholder="Password" spellcheck="true" maxlength="5096"> | |
| 11 | |
| 12 <p id="description"></p> | |
| 13 <div id="console"></div> | |
| 14 | |
| 15 <script> | |
| 16 if (window.accessibilityController) { | |
| 17 description("This test makes sure that the placeholder is returned a
s the correct attribute"); | |
| 18 | |
| 19 var field = document.getElementById("searchterm").focus(); | |
| 20 var fieldElement = accessibilityController.focusedElement; | |
| 21 shouldBe("fieldElement.stringAttributeValue('AXPlaceholderValue')",
"'search'"); | |
| 22 | |
| 23 document.getElementById("password").focus(); | |
| 24 var pass = accessibilityController.focusedElement; | |
| 25 shouldBe("pass.stringAttributeValue('AXPlaceholderValue')", "'Passwo
rd'"); | |
| 26 | |
| 27 } | |
| 28 </script> | |
| 29 | |
| 30 <script src="../fast/js/resources/js-test-post.js"></script> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |