4 https://bugzilla.mozilla.org/show_bug.cgi?id=704423
7 <title>Test for Bug
704423</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <script src=
"/tests/SimpleTest/EventUtils.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=704423">Mozilla Bug
704423</a>
16 <script type=
"application/javascript">
18 /** Test for Bug
704423 **/
22 function handler(aEvent) {
23 aEvent.preventDefault();
24 ok(aEvent.defaultPrevented,
25 "mousemove event should be cancelable");
27 window.addEventListener(
"mousemove", handler, true);
28 synthesizeMouseAtCenter(document.body, { type:
"mousemove" });
29 window.removeEventListener(
"mousemove", handler, true);
34 SimpleTest.waitForExplicitFinish();
35 SimpleTest.waitForFocus(doTest);