Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / secure-textfield-title-ui.html
blobfba35b552ae3284acbc5c9c6acb7d1f122d2e86a
1 <html>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 </script>
6 <body id="body">
8 <!-- This test makes sure that a secure text field has the correct title ui element -->
10 <label for="accountpassword"><span class="dslabel">Password</span></label><br>
11 <input size="30" maxlength="32" id="accountpassword" type="password" name="theAccountPW">
13 <div id="result"></div>
16 <script>
17 if (window.accessibilityController) {
18 var result = document.getElementById("result");
20 var pass = document.getElementById("accountpassword");
21 pass.focus();
22 var titleUIElement = accessibilityController.focusedElement.deprecatedTitleUIElement();
23 var titleText = titleUIElement.childAtIndex(0);
24 if (titleText.stringValue == "AXValue: Password") {
25 result.innerText += "Test passed\n";
27 else {
28 result.innerText += "Test failed\n";
31 </script>
32 </body>
33 </html>