Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / mousemove.html
blob9b9b950b6dc1dc3fda44e90e907d5dc6d75c387e
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <body>
4 <div id="testelm">The test element<div>
5 <script>
6 var testElm = document.getElementById("testelm");
7 testElm.addEventListener("mousemove", function(event) {
8 if (event.defaultPrevented) {
9 testFailed("Mouse event already cancelled.");
10 return;
12 event.preventDefault();
13 if (!event.defaultPrevented) {
14 testFailed("Mouse event not cancellable.");
15 return;
17 testPassed("Mouse move event cancellable.")
18 }, false);
19 if ("eventSender" in window) {
20 eventSender.mouseMoveTo(testElm.offsetLeft + testElm.offsetWidth / 3,
21 testElm.offsetTop + testElm.offsetHeight / 2);
22 eventSender.mouseMoveTo(testElm.offsetLeft + testElm.offsetWidth / 3 * 2,
23 testElm.offsetTop + testElm.offsetHeight / 2);
25 else {
26 testElm.innerHTML = "window.eventSender not available. To test move the mouse on top of this text.";
28 </script>
29 </body>