Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / testing / mochitest / tests / test_bug345521.html
blob352c7e58ea57d50220935bb05dc58ea6fe49711b
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=345521
5 -->
6 <head>
7 <title>Test for Bug 345521</title>
8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.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=345521">Mozilla Bug 345521</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
16 <a id="testlink" onclick="return 0">test</a><br />
17 </div>
18 <pre id="test">
19 <script class="testbody" type="text/javascript">
21 /** Test for Bug 345521 **/
22 function hitlink() {
23 var evt = document.createEvent("MouseEvents");
24 evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
25 var isOk = $("testlink").dispatchEvent(evt);
26 ok(isOk, "return 0 should not cancel an event");
27 SimpleTest.finish();
30 SimpleTest.waitForExplicitFinish();
31 addLoadEvent(hitlink);
33 </script>
34 </pre>
35 </body>
36 </html>