|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=638596 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 638596</title> |
|
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
9 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> |
|
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
11 </head> |
|
12 <body> |
|
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=638596">Mozilla Bug 638596</a> |
|
14 <p id="display"></p> |
|
15 <div id="content"> |
|
16 <input type="password" style="font-size: 0"> |
|
17 </div> |
|
18 <pre id="test"> |
|
19 <script type="application/javascript"> |
|
20 |
|
21 if (navigator.platform.startsWith("Linux")) { |
|
22 SimpleTest.expectAssertions(1); |
|
23 } |
|
24 |
|
25 /** Test for Bug 638596 **/ |
|
26 SimpleTest.waitForExplicitFinish(); |
|
27 SimpleTest.waitForFocus(function() { |
|
28 var i = document.querySelector("input"); |
|
29 i.focus(); |
|
30 synthesizeKey("t", {}); |
|
31 synthesizeKey("e", {}); |
|
32 synthesizeKey("s", {}); |
|
33 synthesizeKey("t", {}); |
|
34 is(i.value, "test", "The correct value should be stored in the field"); |
|
35 SimpleTest.finish(); |
|
36 }); |
|
37 |
|
38 </script> |
|
39 </pre> |
|
40 </body> |
|
41 </html> |