4 https://bugzilla.mozilla.org/show_bug.cgi?id=345521
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" />
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=345521">Mozilla Bug
345521</a>
15 <div id=
"content" style=
"display: none">
16 <a id=
"testlink" onclick=
"return 0">test
</a><br />
19 <script class=
"testbody" type=
"text/javascript">
21 /** Test for Bug
345521 **/
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");
30 SimpleTest.waitForExplicitFinish();
31 addLoadEvent(hitlink);