3 if (window.layoutTestController)
4 layoutTestController.dumpAsText();
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>
17 if (window.accessibilityController) {
18 var result = document.getElementById("result");
20 var pass = document.getElementById("accountpassword");
22 var titleUIElement = accessibilityController.focusedElement.titleUIElement();
23 var titleText = titleUIElement.childAtIndex(0);
24 var pattern = "AXValue: Password";
25 if (titleText.allAttributes().indexOf(pattern) != -1) {
26 result.innerText += "Test passed\n";
29 result.innerText += "Test failed\n";