Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-event-dispatch.html

Issue 2145873002: [DevTools] Split inspector/tracing into subdirectories to speed things up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script>
6
7 function handleMouseDown(event)
8 {
9 console.timeStamp("Handling mousedown");
10 }
11
12 function performActions()
13 {
14 var target = document.getElementById("testTarget");
15 target.addEventListener("mousedown", handleMouseDown, true);
16 var rect = target.getBoundingClientRect();
17
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 + re ct.height / 2);
21 window.eventSender.mouseDown();
22 }
23 }
24
25 function test()
26 {
27 InspectorTest.performActionsAndPrint("performActions()", "EventDispatch");
28 }
29
30 </script>
31 </head>
32
33 <body onload="runTest()">
34 <p>
35 Tests the Timeline API instrumentation of a DOM Dispatch (mousedown)
36 </p>
37
38 <div id="testTarget" style="width:400px; height:400px;">
39 Test Mouse Target
40 </div>
41
42 </body>
43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698