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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html
diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html b/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html
index 399894a478cc61f7e7e2eaccf4cb9b5b3522c075..ddff00cfab8e70ad94a79eff57d66bb6c90cd8a6 100644
--- a/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html
+++ b/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html
@@ -2,10 +2,7 @@
<title>Shared Worker: UseCounter</title>
<script>
self.connectToWorker = () => {
- return new Promise(resolve => {
- var worker = new SharedWorker('shared-worker-usecounter.js');
- worker.port.onmessage = resolve;
- });
+ var worker = new SharedWorker('shared-worker-usecounter.js');
};
window.opener.postMessage('LOADED', '*');
</script>

Powered by Google App Engine
This is Rietveld 408576698