Skip to content

Commit

Permalink
fixup! HTML: Extend test coverage for named contexts: _parent
Browse files Browse the repository at this point in the history
  • Loading branch information
lyzadanger committed Mar 24, 2017
1 parent e630a07 commit f125f12
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<iframe id="embedded" src="resources/parent-iframe-1.html" name="parentWin" style="display:none"></iframe>

<script>
async_test(t => {
window.addEventListener('message', t.step_func_done(e => {
assert_equals(e.data.name, 'parentWin');
}));
}, 'The parent browsing context must be chosen if the given name is `_parent`');
</script>
<iframe id="embedded" src="resources/parent-iframe-1.html" name="parentWin" style="display:none"></iframe>

0 comments on commit f125f12

Please sign in to comment.