Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /workers/constructors/Worker/ctor-1.html - WPT Dashboard Interop Dashboard
<!--
postMessage('FAIL');
/*
-->
<!doctype html>
<title>1 as argument</title>
<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>
<!--
*/
//-->