Merge "[Release] Webkit2-efl-123997_0.11.51" into tizen_2.1
[framework/web/webkit-efl.git] / LayoutTests / accessibility / placeholder.html
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" id="searchterm" />
9
10     <input id="password" class="field" type="password" name="sc1798" value="" placeholder="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 as 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')", "'Password'");
26
27         }
28     </script>
29
30 <script src="../fast/js/resources/js-test-post.js"></script>
31 </body>
32 </html>