summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/constructors/Worker/ctor-1.html
blob: bd865261fc6e50bb25f073d68c7c11c20ddcabe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!--
postMessage('FAIL');
/*
-->
<!doctype html>
<title>1 as argument</title>
<link rel=help href="http://www.whatwg.org/html/#dom-worker">
<link rel=help href="http://dev.w3.org/2006/webapi/WebIDL/#es-DOMString">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test();
t.step(function() {
  var worker = new Worker(1);
  worker.addEventListener('message', t.step_func_done(function(e) {
    assert_equals(e.data, '1')
  }), false);
});
</script>
<!--
*/
//-->