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

Unified Diff: LayoutTests/inspector/timeline/trace-event-self-time.html

Issue 320523004: Timeline: fill frames according to CPU time spent per event category (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 6 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/timeline/trace-event-self-time.html
diff --git a/LayoutTests/inspector/timeline/trace-event-self-time.html b/LayoutTests/inspector/timeline/trace-event-self-time.html
index 5241ee4fb89513f0cc79cc932567b2bc1e98bef0..cfab4174e4e5c5c5633cc8fd4062718ad9719e7d 100644
--- a/LayoutTests/inspector/timeline/trace-event-self-time.html
+++ b/LayoutTests/inspector/timeline/trace-event-self-time.html
@@ -1,10 +1,10 @@
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../tracing-test.js"></script>
<script>
function test()
{
- WebInspector.inspectorView.showPanel("timeline");
var sessionId = "6.23";
var rawTraceEvents = [
{
@@ -188,14 +188,12 @@ function test()
}
];
- var model = new WebInspector.TracingModel();
- var tracineTimelineModel = new WebInspector.TracingTimelineModel(model);
- tracineTimelineModel.willStartRecordingTraceEvents();
- model.setSessionIdForTest(sessionId);
- model._eventsCollected(rawTraceEvents);
- model._tracingComplete();
- tracineTimelineModel.didStopRecordingTraceEvents();
- var events = tracineTimelineModel.inspectedTargetEvents();
+ var model = InspectorTest.tracingModel;
+ var tracingTimelineModel = new WebInspector.TracingTimelineModel(model);
+ tracingTimelineModel.willStartRecordingTraceEvents();
+ model.setEventsForTest(sessionId, rawTraceEvents);
+ tracingTimelineModel.didStopRecordingTraceEvents();
+ var events = tracingTimelineModel.inspectedTargetEvents();
InspectorTest.assertEquals(8, events.length);
var eventTimes = events.map(function(e)
{
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-frame-model.html ('k') | LayoutTests/inspector/timeline/tracing/frame-model.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698