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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/timeline/fetch-as-stream.html

Issue 2161583004: Tracing: re-use JSONTraceDataSink in DevTools' tracing handler... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 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: third_party/WebKit/LayoutTests/inspector-protocol/timeline/fetch-as-stream.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/timeline/fetch-as-stream.html b/third_party/WebKit/LayoutTests/inspector-protocol/timeline/fetch-as-stream.html
index 6c11d723b8c9b60630935790a52a79d4b81ebf12..f8552374a0663818ff903c4bd8bcc527d4943c35 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/timeline/fetch-as-stream.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/timeline/fetch-as-stream.html
@@ -62,7 +62,10 @@ function test()
function onCloseAfterClose(response)
{
InspectorTest.log("Error after illegal close: " + JSON.stringify(response.error));
- performEventsSanityCheck(JSON.parse(data1));
+ var trace = JSON.parse(data1);
+ performEventsSanityCheck(trace["traceEvents"]);
+InspectorTest.log("Metadata: " + typeof trace["metadata"] + (trace["metadata"] ? ", not null" : ""));
+ InspectorTest.completeTest();
}
}
@@ -96,7 +99,6 @@ function test()
assertGreaterOrEqual(knownEvents["UpdateLayoutTree"], 1, "Too few UpdateLayoutTree events");
assertGreaterOrEqual(knownEvents["Layout"], 1, "Too few Layout events");
InspectorTest.log("Event sanity test done");
- InspectorTest.completeTest();
}
}
</script>

Powered by Google App Engine
This is Rietveld 408576698