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

Unified Diff: LayoutTests/inspector/tracing/worker-events.html

Issue 1211613002: Timeline: check category presence in list, not string equality (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: LayoutTests/inspector/tracing/worker-events.html
diff --git a/LayoutTests/inspector/tracing/worker-events.html b/LayoutTests/inspector/tracing/worker-events.html
index e50ab1581af291bcf6a9b00ec1ea7c10d53845f7..23de85cd17b71a04d435cf9b24c3533d6412f8df 100644
--- a/LayoutTests/inspector/tracing/worker-events.html
+++ b/LayoutTests/inspector/tracing/worker-events.html
@@ -55,7 +55,7 @@ function test()
function processEvent(event)
{
- if (event.category !== WebInspector.TracingModel.DevToolsMetadataEventCategory || event.name !== WebInspector.TracingModel.DevToolsMetadataEvent.TracingSessionIdForWorker)
+ if (!event.hasCategory(WebInspector.TracingModel.DevToolsMetadataEventCategory) || event.name !== WebInspector.TracingModel.DevToolsMetadataEvent.TracingSessionIdForWorker)
return;
++workerMetadataEventCount;

Powered by Google App Engine
This is Rietveld 408576698