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/tracing-session-id.html

Issue 1211613002: Timeline: check category presence in list, not string equality (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed tracing-session-id.html Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/console-timeline.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/tracing-session-id.html
diff --git a/LayoutTests/inspector/tracing-session-id.html b/LayoutTests/inspector/tracing-session-id.html
index cd775f81a98f20bc00b349b13001f33b18028086..3c98f08eff68822cf9127d21f7129d37f7052717 100644
--- a/LayoutTests/inspector/tracing-session-id.html
+++ b/LayoutTests/inspector/tracing-session-id.html
@@ -25,7 +25,7 @@ function test()
WebInspector.TimelineModel.RecordType.TracingStartedInPage
];
- if (event.category !== WebInspector.TracingModel.DevToolsMetadataEventCategory || metadataEvents.indexOf(event.name) < 0)
+ if (!event.hasCategory(WebInspector.TracingModel.DevToolsMetadataEventCategory) || metadataEvents.indexOf(event.name) < 0)
return;
InspectorTest.assertEquals(InspectorTest.tracingModel().sessionId(), event.args["data"]["sessionId"]);
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/console-timeline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698