mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -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>
|
||||
|
|
|
@ -36,18 +36,6 @@ async_test(t => {
|
|||
c2.port2.postMessage('TEST', [c.port2]);
|
||||
}, 'Message sent to closed port from transferred port should not arrive.');
|
||||
|
||||
async_test(t => {
|
||||
const c = new MessageChannel();
|
||||
c.port1.onmessage = t.unreached_func('Should not have delivered message');
|
||||
c.port2.close();
|
||||
const c2 = new MessageChannel();
|
||||
c2.port1.onmessage = t.step_func(e => {
|
||||
e.ports[0].postMessage('TESTMSG');
|
||||
setTimeout(t.step_func_done(), time_to_wait_for_messages);
|
||||
});
|
||||
c2.port2.postMessage('TEST', [c.port2]);
|
||||
}, 'Message sent from transferred closed port should not arrive.');
|
||||
|
||||
async_test(t => {
|
||||
const c = new MessageChannel();
|
||||
let isClosed = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue