Skip to content

Commit

Permalink
Merge 5a3e4c1 into bbdd6aa
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Dec 7, 2016
2 parents bbdd6aa + 5a3e4c1 commit c1aa093
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 c1aa093

Please sign in to comment.