Skip to content

Commit

Permalink
Correct postMessage() test
Browse files Browse the repository at this point in the history
This test was passing but no assert was being run.

Fixes #29536.
  • Loading branch information
Gabisampaio authored Sep 3, 2021
1 parent 8300a95 commit e1be3c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions webmessaging/with-options/one-arg.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
test(function() {
async_test(t => {
postMessage('');
onmessage = this.step_func(function(e) {
onmessage = t.step_func_done(e => {
assert_equals(e.data, '');
this.done();
});
});
</script>

0 comments on commit e1be3c7

Please sign in to comment.