JS Test Harness: Remove more link tags
[WebKit-https.git] / LayoutTests / accessibility / placeholder.html
1 <html>
2 <html>
3 <head>
4 <script>
5 var successfullyParsed = false;
6 </script>
7 <script src="../fast/js/resources/js-test-pre.js"></script>
8 </head>
9 <body id="body">
10  
11     <input placeholder="search" type="text" name="q" size="15" maxlength="255" id="searchterm" />
12
13     <input id="password" class="field" type="password" name="sc1798" value="" placeholder="Password" spellcheck="true" maxlength="5096">
14     
15     <p id="description"></p>
16     <div id="console"></div>
17      
18     <script>
19         if (window.accessibilityController) {
20             description("This test makes sure that the placeholder is returned as the correct attribute");
21
22             var field = document.getElementById("searchterm").focus();
23             var fieldElement = accessibilityController.focusedElement;
24             shouldBe("fieldElement.stringAttributeValue('AXPlaceholderValue')", "'search'");
25
26             document.getElementById("password").focus();
27             var pass = accessibilityController.focusedElement;
28             shouldBe("pass.stringAttributeValue('AXPlaceholderValue')", "'Password'");
29
30         }
31         successfullyParsed = true;
32     </script>
33
34 <script src="../fast/js/resources/js-test-post.js"></script>
35 </body>
36 </html>