summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webmessaging/with-ports/024.html
blob: e6c0dcba08676ae72e488302135dfc0d41c9c4c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<title>undefined as ports</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function() {
  postMessage('', '*', undefined);
  onmessage = this.step_func(function(e) {
    assert_array_equals(e.ports, []);
    this.done();
  });
});
</script>