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

Unified Diff: LayoutTests/inspector/timeline/timeline-timer.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-timer.html
diff --git a/LayoutTests/inspector/timeline/timeline-timer.html b/LayoutTests/inspector/timeline/timeline-timer.html
index 51ae6fc8b6f217acaf155ebb690c5737f9f77cce..cb03e235e83100d15d79e416ade2d59dc0eedcea 100644
--- a/LayoutTests/inspector/timeline/timeline-timer.html
+++ b/LayoutTests/inspector/timeline/timeline-timer.html
@@ -4,7 +4,7 @@
<script src="../../http/tests/inspector/timeline-test.js"></script>
<script>
-function performActions()
+function performActions(callback)
{
var timerOne = setTimeout("1 + 1", 10);
var timerTwo = setInterval(intervalTimerWork, 20);
@@ -15,16 +15,13 @@ function performActions()
if (++iteration < 2)
return;
clearInterval(timerTwo);
+ callback();
}
}
function test()
{
- InspectorTest.startTimeline(function() {
- InspectorTest.evaluateInPage("performActions()");
- });
-
- InspectorTest.waitForRecordType("TimerRemove", finish);
+ InspectorTest.invokeAsyncWithTimeline("performActions", finish);
function finish()
{

Powered by Google App Engine
This is Rietveld 408576698