mirror of
https://github.com/servo/servo.git
synced 2025-09-05 20:48:22 +01:00
Update web-platform-tests to revision e87f38097902e16348d4e17f4fe3bc2d0112bff1
This commit is contained in:
parent
2f8fa32e91
commit
db5631a086
381 changed files with 11610 additions and 4232 deletions
|
@ -105,4 +105,20 @@ async_test(t => {
|
|||
|
||||
}, 'Closing and re-opening a channel works.');
|
||||
|
||||
async_test(t => {
|
||||
function workerCode() {
|
||||
close();
|
||||
var bc = new BroadcastChannel('worker-test');
|
||||
postMessage(true);
|
||||
}
|
||||
|
||||
var workerBlob = new Blob([workerCode.toSource() + ";workerCode();"], {type:"application/javascript"});
|
||||
|
||||
var w = new Worker(URL.createObjectURL(workerBlob));
|
||||
w.onmessage = function(e) {
|
||||
assert_true(e.data, "BroadcastChannel created on worker shutdown.");
|
||||
t.done();
|
||||
}
|
||||
}, 'BroadcastChannel created after a worker self.close()');
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue