4 testRunner
.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
.deprecatedTitleUIElement();
23 var titleText
= titleUIElement
.childAtIndex(0);
24 if (titleText
.stringValue
== "AXValue: Password") {
25 result
.innerText
+= "Test passed\n";
28 result
.innerText
+= "Test failed\n";