| Index: LayoutTests/inspector/tracing/timeline-event-causes.html
|
| diff --git a/LayoutTests/inspector/tracing/timeline-event-causes.html b/LayoutTests/inspector/tracing/timeline-event-causes.html
|
| index 910f339a6c24899785fda09a7db706a8a32b8c41..c9ff5662d4b550b3afb748de4b7d6a43de439f6b 100644
|
| --- a/LayoutTests/inspector/tracing/timeline-event-causes.html
|
| +++ b/LayoutTests/inspector/tracing/timeline-event-causes.html
|
| @@ -30,8 +30,8 @@ function test()
|
| var linkifier = new WebInspector.Linkifier();
|
| var record = InspectorTest.findFirstTimelineRecord("TimerFire");
|
| InspectorTest.check(record, "Should receive a TimerFire record.");
|
| - var contentHelper = new WebInspector.TimelineDetailsContentHelper(record.traceEvent().thread.target(), linkifier, true);
|
| - WebInspector.TimelineUIUtils._generateCauses(record.traceEvent(), contentHelper);
|
| + var contentHelper = new WebInspector.TimelineDetailsContentHelper(InspectorTest.timelineModel().target(), linkifier, true);
|
| + WebInspector.TimelineUIUtils._generateCauses(record.traceEvent(), InspectorTest.timelineModel().target(), contentHelper);
|
| var causes = contentHelper.element.textContent;
|
| InspectorTest.check(causes, "Should generate causes");
|
| checkStringContains(causes, "Timer installedsetTimeoutFunction @ setTimeoutFunction.js:");
|
| @@ -56,8 +56,8 @@ function test()
|
| var linkifier = new WebInspector.Linkifier();
|
| var record = InspectorTest.findFirstTimelineRecord("FireAnimationFrame");
|
| InspectorTest.check(record, "Should receive a FireAnimationFrame record.");
|
| - var contentHelper = new WebInspector.TimelineDetailsContentHelper(record.traceEvent().thread.target(), linkifier, true);
|
| - WebInspector.TimelineUIUtils._generateCauses(record.traceEvent(), contentHelper);
|
| + var contentHelper = new WebInspector.TimelineDetailsContentHelper(InspectorTest.timelineModel().target(), linkifier, true);
|
| + WebInspector.TimelineUIUtils._generateCauses(record.traceEvent(), InspectorTest.timelineModel().target(), contentHelper);
|
| var causes = contentHelper.element.textContent;
|
| InspectorTest.check(causes, "Should generate causes");
|
| checkStringContains(causes, "Animation frame requestedrequestAnimationFrameFunction @ requestAnimationFrameFunction.js:");
|
| @@ -84,8 +84,8 @@ function test()
|
| var linkifier = new WebInspector.Linkifier();
|
| var record = InspectorTest.findFirstTimelineRecord("RecalculateStyles");
|
| InspectorTest.check(record, "Should receive a RecalculateStyles record.");
|
| - var contentHelper = new WebInspector.TimelineDetailsContentHelper(record.traceEvent().thread.target(), linkifier, true);
|
| - WebInspector.TimelineUIUtils._generateCauses(record.traceEvent(), contentHelper);
|
| + var contentHelper = new WebInspector.TimelineDetailsContentHelper(InspectorTest.timelineModel().target(), linkifier, true);
|
| + WebInspector.TimelineUIUtils._generateCauses(record.traceEvent(), InspectorTest.timelineModel().target(), contentHelper);
|
| var causes = contentHelper.element.textContent;
|
| InspectorTest.check(causes, "Should generate causes");
|
| checkStringContains(causes, "First invalidatedstyleRecalcFunction @ styleRecalcFunction.js:");
|
| @@ -113,8 +113,8 @@ function test()
|
| var linkifier = new WebInspector.Linkifier();
|
| var record = InspectorTest.findFirstTimelineRecord("Layout");
|
| InspectorTest.check(record, "Should receive a Layout record.");
|
| - var contentHelper = new WebInspector.TimelineDetailsContentHelper(record.traceEvent().thread.target(), linkifier, true);
|
| - WebInspector.TimelineUIUtils._generateCauses(record.traceEvent(), contentHelper);
|
| + var contentHelper = new WebInspector.TimelineDetailsContentHelper(InspectorTest.timelineModel().target(), linkifier, true);
|
| + WebInspector.TimelineUIUtils._generateCauses(record.traceEvent(), InspectorTest.timelineModel().target(), contentHelper);
|
| var causes = contentHelper.element.textContent;
|
| InspectorTest.check(causes, "Should generate causes");
|
| checkStringContains(causes, "Layout forcedlayoutFunction @ layoutFunction.js:");
|
|
|