mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Test for Bug 345521, cleanup
This commit is contained in:
parent
3b51ae4bea
commit
b36bb76c0c
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user