Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=488417
5 -->
6 <head>
7 <title>Test for Bug 488417</title>
8 <script type="application/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
12 </head>
13 <body>
14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488417">Mozilla Bug 488417</a>
15 <div id="display">
16 <table border="1">
17 <tr>
18 <td id="a">A1</td>
19 <td id="b">B1</td>
20 </tr>
21 <tr>
22 <td>A2</td>
23 <td>B2</td>
24 </tr>
25 </table>
26 </div>
27 <div id="content" style="display: none">
29 </div>
30 <pre id="test">
31 <script type="application/javascript">
33 function clickIt(node) {
34 synthesizeMouse(node, node.getBoundingClientRect().width/2,
35 node.getBoundingClientRect().height/2,
36 { accelKey: 1 });
37 }
39 /** Test for Bug 488417 **/
40 SimpleTest.waitForExplicitFinish();
42 addLoadEvent(function() {
43 // Do the test async so we can unsuppress painting
44 SimpleTest.executeSoon(function() {
45 clickIt($("a"));
46 clickIt($("b"));
47 clickIt($("a"));
48 ok(1, "Got here");
49 // Clean up
50 window.getSelection().removeAllRanges();
51 SimpleTest.finish();
52 });
53 });
56 </script>
57 </pre>
58 </body>
59 </html>