Chromium Code Reviews

Side by Side Diff: third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter.js

Issue 2680423006: UseCounter: Introduce UseCounter::Observer for layout tests (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 onconnect = e => { 1 onconnect = e => {
2 var port = e.ports[0]; 2 var port = e.ports[0];
3 port.onmessage = (e) => { 3 port.onmessage = (e) => {
4 if (e.data.type == 'COUNT_FEATURE') 4 if (e.data.type == 'COUNT_FEATURE')
5 internals.countFeature(e.data.feature); 5 internals.countFeature(e.data.feature);
6 else if (e.data.type == 'COUNT_DEPRECATION') 6 else if (e.data.type == 'COUNT_DEPRECATION')
7 internals.countDeprecation(e.data.feature); 7 internals.countDeprecation(e.data.feature);
8 port.postMessage('COUNTED');
9 }; 8 };
10 port.postMessage('CONNECTED'); 9 port.postMessage('CONNECTED');
11 } 10 }
OLDNEW

Powered by Google App Engine