Test for Bug 345521, cleanup

This commit is contained in:
sayrer%gmail.com 2006-10-26 23:03:18 +00:00
parent 3b51ae4bea
commit b36bb76c0c

View File

@ -12,7 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=345521
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=345521">Mozilla Bug 345521</a>
<p id="display"></p>
<div id="content" style="display: block">
<div id="content" style="display: none">
<a id="testlink" onclick="return 0">test</a><br />
</div>
<pre id="test">
@ -22,8 +22,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=345521
function hitlink() {
var evt = document.createEvent("MouseEvents");
evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
var canceled = document.getElementById("testlink").dispatchEvent(evt);
ok(canceled, "return 0 should not cancel an event");
var isOk = $("testlink").dispatchEvent(evt);
ok(isOk, "return 0 should not cancel an event");
SimpleTest.finish();
}