getting.html (483B)
1 <!doctype html> 2 <title>getting name</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <div id="log"></div> 6 <script> 7 var tests = [['getting.js#1', ''], ['getting.js#2', 'a'], ['getting.js#3', -0]]; 8 tests.forEach(function(t) { 9 async_test(function() { 10 var w = new SharedWorker(t[0], t[1]); 11 w.port.onmessage = this.step_func(function(e) { 12 assert_true(e.data); 13 this.done(); 14 }); 15 }); 16 }); 17 </script>