Skip to content

Commit

Permalink
Align BroadcastChannel test with the HTML Standard
Browse files Browse the repository at this point in the history
Per whatwg/html#1319 this should simply work.
  • Loading branch information
annevk authored and zcorpan committed Dec 7, 2016
1 parent bbdd6aa commit 9bfcc59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webmessaging/broadcastchannel/sandbox.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Creating BroadcastChannel in an opaque origin</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<script>
async_test(t => {
self.onmessage = t.step_func(e => {
assert_true(e.data.startsWith('Exception: '));
assert_equals(e.data, 'Created');
t.done();
});
}, 'Creating BroadcastChannel in opaque origin should fail.');
});
</script>
<iframe sandbox="allow-scripts" src="resources/sandboxed.html"></iframe>
</body>

0 comments on commit 9bfcc59

Please sign in to comment.