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

Unified Diff: LayoutTests/inspector/timeline/timeline-receive-response-event.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-receive-response-event.html
diff --git a/LayoutTests/inspector/timeline/timeline-receive-response-event.html b/LayoutTests/inspector/timeline/timeline-receive-response-event.html
index 01414e54450f9231a10dbaa53c187d7c4ef68192..5e165f24e5ebd94d1053528faff3eee3ad2ea890 100644
--- a/LayoutTests/inspector/timeline/timeline-receive-response-event.html
+++ b/LayoutTests/inspector/timeline/timeline-receive-response-event.html
@@ -4,7 +4,7 @@
<script src="../../http/tests/inspector/timeline-test.js"></script>
<script>
-function performActions()
+function performActions(callback)
{
var image = new Image();
image.onload = bar;
@@ -12,7 +12,7 @@ function performActions()
function bar() {
var image = new Image();
- image.onload = function() { testRunner.evaluateInWebInspector(0, "window.step2()"); }
+ image.onload = function(event) { callback(); } // do not pass event argument to the callback.
image.src = "resources/anotherImage.png";
}
}
@@ -20,22 +20,10 @@ function performActions()
function test()
{
WebInspector.inspectorView.showPanel("timeline");
- WebInspector.panels.timeline._model._collectionEnabled = true;
WebInspector.inspectorView.panel("timeline")._model._currentTarget = WebInspector.targetManager.mainTarget();
+ InspectorTest.invokeAsyncWithTimeline("performActions", finish);
- TimelineAgent.start(step1);
-
- function step1()
- {
- InspectorTest.evaluateInPage("performActions()");
- }
-
- window.step2 = function()
- {
- TimelineAgent.stop(step3);
- }
-
- function step3()
+ function finish()
{
function dumpFormattedRecord(presentationRecord, prefix)
{
@@ -54,8 +42,6 @@ function test()
dumpFormattedRecord(presentationRecord.presentationChildren()[i], childPrefix);
}
}
- WebInspector.panels.timeline._model._collectionEnabled = false;
-
var records = WebInspector.panels.timeline._currentViews[0]._rootRecord().presentationChildren();
for (var i = 0; i < records.length; ++i)
dumpFormattedRecord(records[i]);
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-paint.html ('k') | LayoutTests/inspector/timeline/timeline-script-id.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698