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

Unified Diff: LayoutTests/inspector/tracing-session-id.html

Issue 301593002: DevTools: process events from all threads in TimelineTraceEventBindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed Created 6 years, 7 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/tracing-session-id.html
diff --git a/LayoutTests/inspector/tracing-session-id.html b/LayoutTests/inspector/tracing-session-id.html
index 9cf9d0bee6e392458d77fa9d3a89a8613ee49f06..e12b2ecbf69cc6f8af20cea0c31a7aa09e1d65b8 100644
--- a/LayoutTests/inspector/tracing-session-id.html
+++ b/LayoutTests/inspector/tracing-session-id.html
@@ -6,6 +6,7 @@
<script>
function test()
{
+ WebInspector.inspectorView.showPanel("timeline");
InspectorTest.invokeWithTracing("-*," + WebInspector.TracingModel.DevToolsMetadataEventCategory, "(function(callback) { callback(); })", processTracingEvents);
function processTracingEvents()
@@ -20,10 +21,14 @@ function test()
function processEvent(event)
{
- if (event.category !== WebInspector.TracingModel.DevToolsMetadataEventCategory ||
- Object.values(WebInspector.TracingModel.DevToolsMetadataEvent).indexOf(event.name) < 0) {
+ var metadataEvents = [
+ WebInspector.TimelineTraceEventBindings.RecordType.SetLayerTreeId,
+ WebInspector.TimelineTraceEventBindings.RecordType.TracingStartedInPage
+ ];
+
+ if (event.category !== WebInspector.TracingModel.DevToolsMetadataEventCategory || metadataEvents.indexOf(event.name) < 0)
return;
- }
+
InspectorTest.assertEquals(InspectorTest.tracingModel.sessionId(), event.args["sessionId"]);
InspectorTest.addResult("Got DevTools metadata event: " + event.name);
}
« no previous file with comments | « LayoutTests/inspector/timeline/trace-event-self-time.html ('k') | Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698