Chromium Code Reviews| Index: LayoutTests/inspector/tracing/timeline-script-id.html |
| diff --git a/LayoutTests/inspector/tracing/timeline-script-id.html b/LayoutTests/inspector/tracing/timeline-script-id.html |
| index 9754371542036609c47e15e377caaecd345e7436..de41e73ac1bffb8c0d22d73086b23058c7bd247c 100644 |
| --- a/LayoutTests/inspector/tracing/timeline-script-id.html |
| +++ b/LayoutTests/inspector/tracing/timeline-script-id.html |
| @@ -23,9 +23,12 @@ function test() |
| var source = performActions.toString(); |
| source += "\n//@ sourceURL=performActions.js"; |
| - InspectorTest.evaluateInPage(source); |
| + InspectorTest.evaluateInPage(source, startTimeline); |
| - InspectorTest.invokeAsyncWithTimeline("performActions", finish); |
| + function startTimeline() |
| + { |
| + InspectorTest.invokeAsyncWithTimeline("performActions", finish); |
| + } |
| var linkifier = new WebInspector.Linkifier(); |
| @@ -36,12 +39,10 @@ function test() |
| return; |
| var detailsText = WebInspector.TimelineUIUtils.buildDetailsTextForTraceEvent(record.traceEvent(), InspectorTest.timelineModel().target()); |
| - if (detailsText) |
| - InspectorTest.addResult("detailsTextContent for " + record.type() + " event: '" + detailsText + "'"); |
| + InspectorTest.addResult("detailsTextContent for " + record.type() + " event: '" + detailsText.replace(/VM[\d]+/, "VM") + "'"); |
|
alph
2015/04/29 10:22:28
nit: no need for []
|
| var details = WebInspector.TimelineUIUtils.buildDetailsNodeForTraceEvent(record.traceEvent(), InspectorTest.timelineModel().target(), linkifier); |
| - if (details) |
| - InspectorTest.addResult("details.textContent for " + record.type() + " event: '" + details.textContent + "'"); |
| + InspectorTest.addResult("details.textContent for " + record.type() + " event: '" + details.textContent.replace(/VM[\d]+/, "VM") + "'"); |
|
alph
2015/04/29 10:22:28
ditto
|
| } |
| function finish() |