Move /platform/ios-simulator/accessibility tests to accessibility/ios-simulator/
[WebKit-https.git] / LayoutTests / accessibility / ios-simulator / secure-text-field.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5     if (window.testRunner)
6         testRunner.dumpAsText();
7 </script>
8 </head>
9 <body>
10
11 <input type="password" id="pass" size="10">
12 <input type="text" id="text" size="11">
13
14
15 <script>
16
17     //description("This test makes sure that a password field and a text field do not have the same traits (because password field has secure text field traits)");
18
19     if (window.accessibilityController) {
20
21         var passfield = accessibilityController.accessibleElementById("pass");
22         var textfield = accessibilityController.accessibleElementById("text");
23         var succeeded = passfield.traits != textfield.traits;
24
25         //  shouldBe("succeeded", "true");
26         var failed = false;
27         if (!succeeded) {
28             failed = true;
29         }
30
31         if (failed)
32             alert("Tests failed");
33         else
34            alert("Tests passed");
35
36     }
37
38     successfullyParsed = true;
39 </script>
40
41
42 </body>
43 </html>
44