3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/timeline-test.js"></script>
7 function handleMouseDown(event
)
9 console
.timeStamp("Handling mousedown");
12 function performActions()
14 var target
= document
.getElementById("testTarget");
15 target
.addEventListener("mousedown", handleMouseDown
, true);
16 var rect
= target
.getBoundingClientRect();
18 // Simulate the mouse down over the target to trigger an EventDispatch
19 if (window
.eventSender
) {
20 window
.eventSender
.mouseMoveTo(rect
.left
+ rect
.width
/ 2, rect
.top
+ rect
.height
/ 2);
21 window
.eventSender
.mouseDown();
27 InspectorTest
.performActionsAndPrint("performActions()", "EventDispatch");
33 <body onload=
"runTest()">
35 Tests the Timeline API instrumentation of a DOM Dispatch (mousedown)
38 <div id=
"testTarget" style=
"width:400px; height:400px;">