OLD | NEW |
| (Empty) |
1 <!-- | |
2 var expected = 'self location close onerror importScripts navigator addEventList
ener removeEventListener dispatchEvent name applicationCache onconnect setTimeou
t clearTimeout setInterval clearInterval'.split(' '); | |
3 var log = ''; | |
4 for (var i = 0; i < expected.length; ++i) { | |
5 if (!(expected[i] in self)) | |
6 log += expected[i] + ' did not exist\n'; | |
7 } | |
8 onconnect = function(e) { | |
9 e.ports[0].postMessage(log); | |
10 }; | |
11 /* | |
12 --> | |
13 <!doctype html> | |
14 <title>members of SharedWorkerGlobalScope</title> | |
15 <script src="/resources/testharness.js"></script> | |
16 <script src="/resources/testharnessreport.js"></script> | |
17 <div id="log"></div> | |
18 <script> | |
19 (async_test()).step(function() { | |
20 var worker = new SharedWorker('#'); | |
21 worker.port.addEventListener('message', this.step_func(function(e) { | |
22 assert_equals(e.data, ''); | |
23 this.done(); | |
24 }), false); | |
25 worker.port.start(); | |
26 }); | |
27 </script> | |
28 <!-- | |
29 */ | |
30 //--> | |
31 | |
32 | |
33 | |
34 | |
OLD | NEW |