Index: LayoutTests/inspector-protocol/timeline/timeline-start-bufferEvents.html |
diff --git a/LayoutTests/inspector-protocol/timeline/timeline-start-bufferEvents.html b/LayoutTests/inspector-protocol/timeline/timeline-start-bufferEvents.html |
index 3a4e476470472adcf28c20e3b863e9d4d57b2955..5145bc73e99af8e312197976a55aadc7b3a26286 100644 |
--- a/LayoutTests/inspector-protocol/timeline/timeline-start-bufferEvents.html |
+++ b/LayoutTests/inspector-protocol/timeline/timeline-start-bufferEvents.html |
@@ -11,6 +11,7 @@ function testFunction() |
function test() |
{ |
InspectorTest.eventHandler["Timeline.eventRecorded"] = eventRecorded; |
+ InspectorTest.eventHandler["Timeline.stopped"] = timelineStopped; |
InspectorTest.log("Recording started"); |
InspectorTest.sendCommand("Timeline.start", { bufferEvents: true }, onStart); |
@@ -29,13 +30,19 @@ function test() |
InspectorTest.log("FAIL: event recorded: " + event.params.record.type); |
} |
- function onStop(response) |
+ function timelineStopped(event) |
{ |
- InspectorTest.log("Recording stopped"); |
+ InspectorTest.log("Timeline.stopped event has arrived."); |
+ InspectorTest.assert(!event.params.consoleTimeline, "It souldn't be event forced by console.timelineEnd"); |
InspectorTest.log("Events:"); |
- var events = response.result.events; |
+ var events = event.params.events; |
for (var i = 0; i < events.length; ++i) |
dump(events[i], ""); |
+ } |
+ |
+ function onStop(response) |
+ { |
+ InspectorTest.log("Recording stopped"); |
InspectorTest.completeTest(); |
} |