4 <script src="../fast/js/resources/js-test-pre.js"></script>
8 <input placeholder="search" type="text" name="q" size="15" maxlength="255" id="searchterm" />
10 <input id="password" class="field" type="password" name="sc1798" value="" placeholder="Password" spellcheck="true" maxlength="5096">
12 <p id="description"></p>
13 <div id="console"></div>
16 if (window.accessibilityController) {
17 description("This test makes sure that the placeholder is returned as the correct attribute");
19 var field = document.getElementById("searchterm").focus();
20 var fieldElement = accessibilityController.focusedElement;
21 shouldBe("fieldElement.stringAttributeValue('AXPlaceholderValue')", "'search'");
23 document.getElementById("password").focus();
24 var pass = accessibilityController.focusedElement;
25 shouldBe("pass.stringAttributeValue('AXPlaceholderValue')", "'Password'");
30 <script src="../fast/js/resources/js-test-post.js"></script>