layout/generic/test/test_bug597333.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:e03bc99bb3d6
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=597333
5 -->
6 <head>
7 <title>Test for Bug 597333</title>
8 <script type="text/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
12 </head>
13 <body>
14 <p><a target="_blank" href="https://bugzilla.mozilla.org/show_bug?id=597333">Mozilla Bug 597333</a>
15
16 <textarea id="a">&#x202E;</textarea>
17
18 <pre id="test">
19 <script>
20
21 function runTests() {
22 var t = document.getElementById("a");
23 t.focus();
24 setTimeout(function() {
25 synthesizeKey('VK_RIGHT', {});
26 ok(true, "The browser did not crash!");
27
28 SimpleTest.finish();
29 }, 0);
30 }
31
32 SimpleTest.waitForExplicitFinish();
33 SimpleTest.waitForFocus(runTests);
34 </script>
35 </pre>
36
37 </body>
38 </html>

mercurial