4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
10 <pre id=
"console"></pre>
12 description("Tests to ensure that dblclick event is not fired.");
14 function clickHandler(event
)
16 debug('click event is fired.');
19 function dblclickHandler(event
)
21 testFailed('dblclick event should not be fired.');
26 if (window
.testRunner
)
27 testRunner
.dumpAsText();
29 var node
= document
.getElementById('top');
30 node
.addEventListener('click', clickHandler
, false);
31 node
.addEventListener('dblclick', dblclickHandler
, false);
33 var event
= document
.createEvent("MouseEvents");
35 event
.initMouseEvent("click", true, false, window
,
36 details
, 10, 10, 10, 10, false, false, false, false, 0, null);
37 node
.dispatchEvent(event
);