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

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

Issue 2586863002: Worker: Enable UseCounter for SharedWorkerGlobalScope (Closed)
Patch Set: simplify 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
new file mode 100644
index 0000000000000000000000000000000000000000..399894a478cc61f7e7e2eaccf4cb9b5b3522c075
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<title>Shared Worker: UseCounter</title>
+<script>
+self.connectToWorker = () => {
+ return new Promise(resolve => {
+ var worker = new SharedWorker('shared-worker-usecounter.js');
+ worker.port.onmessage = resolve;
+ });
+};
+window.opener.postMessage('LOADED', '*');
+</script>

Powered by Google App Engine
This is Rietveld 408576698