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

Unified Diff: LayoutTests/inspector/timeline/timeline-network-resource.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-network-resource.html
diff --git a/LayoutTests/inspector/timeline/timeline-network-resource.html b/LayoutTests/inspector/timeline/timeline-network-resource.html
index 1cae523912ddc761acf1be156b1338bc42574d9d..4bb691b25f496b89473448edcb4bdac0aea357a8 100644
--- a/LayoutTests/inspector/timeline/timeline-network-resource.html
+++ b/LayoutTests/inspector/timeline/timeline-network-resource.html
@@ -6,8 +6,9 @@
var scriptUrl = "timeline-network-resource.js";
-function performActions()
+function performActions(callback)
{
+ window.timelineNetworkResourceEvaluated = callback;
var script = document.createElement("script");
script.src = scriptUrl;
document.body.appendChild(script);
@@ -21,20 +22,9 @@ function test()
var model = WebInspector.panels.timeline._model;
var presentationModel = InspectorTest.timelinePresentationModel();
- InspectorTest.startTimeline(step1);
+ InspectorTest.invokeAsyncWithTimeline("performActions", finish);
- function step1()
- {
- InspectorTest.evaluateInPage("performActions()");
- }
-
- // It will be called from timeline-network-resource.js script by evaluateInWebInspector call.
- InspectorTest.scriptEvaluated = function()
- {
- InspectorTest.stopTimeline(step3);
- }
-
- function step3()
+ function finish()
{
var lastRecordStartTime;
function format(record)

Powered by Google App Engine
This is Rietveld 408576698