mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -74,3 +74,20 @@ async_test(t => {
|
|||
|
||||
t.done();
|
||||
}, 'Verify posting closed AudioData throws.');
|
||||
|
||||
async_test(t => {
|
||||
let localData = createDefaultAudioData();
|
||||
|
||||
let channel = new MessageChannel();
|
||||
let localPort = channel.port1;
|
||||
let externalPort = channel.port2;
|
||||
|
||||
externalPort.onmessage = t.step_func_done((e) => {
|
||||
let externalData = e.data;
|
||||
assert_equals(externalData.numberOfFrames, defaultInit.frames);
|
||||
externalData.close();
|
||||
})
|
||||
|
||||
localPort.postMessage(localData, [localData]);
|
||||
assert_not_equals(localData.numberOfFrames, defaultInit.frames);
|
||||
}, 'Verify transferring audio data closes them.');
|
Loading…
Add table
Add a link
Reference in a new issue