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

Unified Diff: LayoutTests/inspector/timeline/timeline-script-id.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/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();
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-receive-response-event.html ('k') | LayoutTests/inspector/timeline/timeline-time.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698