Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee

This commit is contained in:
WPT Sync Bot 2018-04-23 21:13:37 -04:00
parent c5f7c9ccf3
commit e891345f26
1328 changed files with 36632 additions and 20588 deletions

View file

@ -121,4 +121,21 @@ async_test(t => {
}
}, 'BroadcastChannel created after a worker self.close()');
async_test(t => {
function workerCode() {
close();
var bc = new BroadcastChannel('worker-test-after-close');
bc.postMessage(true);
}
var bc = new BroadcastChannel('worker-test-after-close');
bc.onmessage = function(e) {
assert_true(e.data, "BroadcastChannel created on worker shutdown.");
t.done();
}
var workerBlob = new Blob([workerCode.toString() + ";workerCode();"], {type:"application/javascript"});
new Worker(URL.createObjectURL(workerBlob));
}, 'BroadcastChannel used after a worker self.close()');
</script>