|
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"> |
|
28 |
|
29 </div> |
|
30 <pre id="test"> |
|
31 <script type="application/javascript"> |
|
32 |
|
33 function clickIt(node) { |
|
34 synthesizeMouse(node, node.getBoundingClientRect().width/2, |
|
35 node.getBoundingClientRect().height/2, |
|
36 { accelKey: 1 }); |
|
37 } |
|
38 |
|
39 /** Test for Bug 488417 **/ |
|
40 SimpleTest.waitForExplicitFinish(); |
|
41 |
|
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 }); |
|
54 |
|
55 |
|
56 </script> |
|
57 </pre> |
|
58 </body> |
|
59 </html> |