Commit d8a5d811 authored by eric@webkit.org's avatar eric@webkit.org
Browse files

2009-12-02 Eric Z. Ayers <zundel@google.com>

        Reviewed by Pavel Feldman.

        Adds a timeline test for EventDispatch records.

        https://bugs.webkit.org/show_bug.cgi?id=31376

        * inspector/timeline-event-dispatch-expected.txt: Added.
        * inspector/timeline-event-dispatch.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e86d9339
2009-12-02 Eric Z. Ayers <zundel@google.com>
Reviewed by Pavel Feldman.
Adds a timeline test for EventDispatch records.
https://bugs.webkit.org/show_bug.cgi?id=31376
* inspector/timeline-event-dispatch-expected.txt: Added.
* inspector/timeline-event-dispatch.html: Added.
2009-12-02 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
 
Reviewed by Timothy Hatcher.
Tests the Timeline API instrumentation of a DOM Dispatch (mousedown)
Test Mouse Target
EventDispatch Properties:
+ startTime : * DEFINED *
+ data : {
+- type : mousedown
+ }
+ children : * DEFINED *
+ endTime : * DEFINED *
+ type : 0
<html>
<head>
<script src="inspector-test.js"></script>
<script src="timeline-test.js"></script>
<script>
function handleMouseDown(event)
{
console.markTimeline("Handling mousedown");
}
function doit()
{
if (window.layoutTestController)
layoutTestController.setTimelineProfilingEnabled(true);
var target = document.getElementById("testTarget");
target.addEventListener("mousedown", handleMouseDown, true);
// Simulate the mouse down over the target to trigger an EventDispatch
if (window.eventSender) {
window.eventSender.mouseMoveTo(200, 300);
window.eventSender.mouseDown();
}
setTimeout(function() {
printTimelineRecords(null, "EventDispatch");
}, 0);
}
</script>
</head>
<body onload="onload()">
<p>
Tests the Timeline API instrumentation of a DOM Dispatch (mousedown)
</p>
<div id="testTarget" style="width:400px; height:400px;">
Test Mouse Target
</div>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment