| <script src="../../resources/js-test-pre.js"></script> |
| description("Tests to ensure that dblclick event is not fired."); |
| function clickHandler(event) |
| debug('click event is fired.'); |
| function dblclickHandler(event) |
| testFailed('dblclick event should not be fired.'); |
| var node = document.getElementById('top'); |
| node.addEventListener('click', clickHandler, false); |
| node.addEventListener('dblclick', dblclickHandler, false); |
| var event = document.createEvent("MouseEvents"); |
| event.initMouseEvent("click", true, false, window, |
| details, 10, 10, 10, 10, false, false, false, false, 0, null); |
| node.dispatchEvent(event); |
| <script src="../../resources/js-test-post.js"></script> |