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

Unified Diff: LayoutTests/inspector-protocol/timeline/timeline-start-bufferEvents.html

Issue 399043002: DevTools: switch Timeline frontend into buffered mode and remove the corresponding experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: timeline-websocket-event rebaselined Created 6 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 side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 5145bc73e99af8e312197976a55aadc7b3a26286..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector-protocol/timeline/timeline-start-bufferEvents.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
-<script>
-
-function testFunction()
-{
- console.timeStamp("Timestamp");
-}
-
-function test()
-{
- InspectorTest.eventHandler["Timeline.eventRecorded"] = eventRecorded;
- InspectorTest.eventHandler["Timeline.stopped"] = timelineStopped;
- InspectorTest.log("Recording started");
- InspectorTest.sendCommand("Timeline.start", { bufferEvents: true }, onStart);
-
- function onStart(response)
- {
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testFunction()" }, didEvaluate);
- }
-
- function didEvaluate(response)
- {
- InspectorTest.sendCommand("Timeline.stop", {}, onStop);
- }
-
- function eventRecorded(event)
- {
- InspectorTest.log("FAIL: event recorded: " + event.params.record.type);
- }
-
- function timelineStopped(event)
- {
- 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 = event.params.events;
- for (var i = 0; i < events.length; ++i)
- dump(events[i], "");
- }
-
- function onStop(response)
- {
- InspectorTest.log("Recording stopped");
- InspectorTest.completeTest();
- }
-
- function dump(event, prefix)
- {
- var eventTypes = { "FunctionCall":true, "TimeStamp":true, "TimerInstall":true, "TimerFire":true };
- if (event.type in eventTypes)
- InspectorTest.log(prefix + event.type);
- for (var i = 0; event.children && i < event.children.length; ++i)
- dump(event.children[i], " " + prefix);
- }
-}
-</script>
-</head>
-<body onLoad="runTest();">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698