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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/opaque-origin.html

Issue 2572333003: Import wpt@4970d7334aaf8977c5b617075aa48be1b6e482c7 (Closed)
Patch Set: Update TestExpectations Created 4 years 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/imported/wpt/workers/opaque-origin.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/workers/opaque-origin.html b/third_party/WebKit/LayoutTests/imported/wpt/workers/opaque-origin.html
new file mode 100644
index 0000000000000000000000000000000000000000..0474b970c96f288229bc244c10f060e3feb33990
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/workers/opaque-origin.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<body>
+<script>
+// Sandboxed iframe forwards messages from its worker, this translates those
+// messages back to something fetch_tests_from_worker can parse.
+const channel = new MessageChannel();
+onmessage = e => {
+ channel.port2.postMessage(e.data);
+};
+fetch_tests_from_worker(channel.port1);
+</script>
+<iframe sandbox="allow-scripts" src="support/sandboxed-tests.html?pipe=sub"></iframe>
+</body>

Powered by Google App Engine
This is Rietveld 408576698