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