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

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: instance method Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698