Index: LayoutTests/inspector/timeline/timeline-script-id.html |
diff --git a/LayoutTests/inspector/timeline/timeline-script-id.html b/LayoutTests/inspector/timeline/timeline-script-id.html |
index e1a0705ce320af7541a8a6932fc27bc7d856b26a..954fa389c9b4614bb2eb8464ed0a4b2b2f371899 100644 |
--- a/LayoutTests/inspector/timeline/timeline-script-id.html |
+++ b/LayoutTests/inspector/timeline/timeline-script-id.html |
@@ -6,7 +6,7 @@ |
function test() |
{ |
- function performActions() |
+ function performActions(callback) |
{ |
var timerOne = setTimeout("1 + 1", 10); |
var timerTwo = setInterval(intervalTimerWork, 20); |
@@ -17,18 +17,15 @@ function test() |
if (++iteration < 2) |
return; |
clearInterval(timerTwo); |
+ callback(); |
} |
} |
- InspectorTest.startTimeline(function() { |
- var source = performActions.toString(); |
- source += "\n" + |
- "performActions();\n" + |
- "//@ sourceURL=performActions.js"; |
- InspectorTest.evaluateInPage(source); |
- }); |
+ var source = performActions.toString(); |
+ source += "\n//@ sourceURL=performActions.js"; |
+ InspectorTest.evaluateInPage(source); |
- InspectorTest.waitForRecordType("TimerRemove", finish); |
+ InspectorTest.invokeAsyncWithTimeline("performActions", finish); |
var linkifier = new WebInspector.Linkifier(); |