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

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

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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Shared Worker: UseCounter</title> 2 <title>Shared Worker: UseCounter</title>
3 <script> 3 <script>
4 self.connectToWorker = () => { 4 self.connectToWorker = () => {
5 return new Promise(resolve => { 5 var worker = new SharedWorker('shared-worker-usecounter.js');
6 var worker = new SharedWorker('shared-worker-usecounter.js');
7 worker.port.onmessage = resolve;
8 });
9 }; 6 };
10 window.opener.postMessage('LOADED', '*'); 7 window.opener.postMessage('LOADED', '*');
11 </script> 8 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698