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

Unified Diff: third_party/WebKit/LayoutTests/broadcastchannel/sandbox.html

Issue 2004643002: Implement BroadcastChannel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address dcheng's comments Created 4 years, 6 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/broadcastchannel/sandbox.html
diff --git a/third_party/WebKit/LayoutTests/broadcastchannel/sandbox.html b/third_party/WebKit/LayoutTests/broadcastchannel/sandbox.html
new file mode 100644
index 0000000000000000000000000000000000000000..88f47a1922883b716ab402e678b6ee3ae84345ad
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/broadcastchannel/sandbox.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<body>
+<script>
+async_test(t => {
+ self.onmessage = t.step_func(e => {
+ assert_equals(e.data, 'Exception: NotSupportedError');
+ t.done();
+ });
+ }, 'Creating BroadcastChannel in opaque origin should fail.');
+</script>
+<iframe sandbox="allow-scripts" src="resources/sandboxed.html"></iframe>
+</body>

Powered by Google App Engine
This is Rietveld 408576698