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>
|
<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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user