Update web-platform-tests to revision b'468d01bbd84da2babf265c6af46947be68713440'

This commit is contained in:
WPT Sync Bot 2021-09-07 11:16:33 +00:00 committed by cybai
parent 35e95f55a1
commit 58e8ee674b
9438 changed files with 266112 additions and 106976 deletions

View file

@ -20,10 +20,10 @@ test(t => {
assert_equals(frame.timestamp, clone.timestamp);
assert_equals(frame.duration, clone.duration);
assert_equals(frame.cropWidth, clone.cropWidth);
assert_equals(frame.cropHeight, clone.cropHeight);
assert_equals(frame.cropWidth, clone.cropWidth);
assert_equals(frame.cropHeight, clone.cropHeight);
assert_equals(frame.visibleRect.left, clone.visibleRect.left);
assert_equals(frame.visibleRect.top, clone.visibleRect.top);
assert_equals(frame.visibleRect.width, clone.visibleRect.width);
assert_equals(frame.visibleRect.height, clone.visibleRect.height);
frame.close();
clone.close();
@ -72,9 +72,25 @@ async_test(t => {
})
localPort.postMessage(localFrame);
}, 'Verify closing frames does not propagate accross contexts.');
async_test(t => {
let localFrame = createDefaultVideoFrame();
let channel = new MessageChannel();
let localPort = channel.port1;
let externalPort = channel.port2;
externalPort.onmessage = t.step_func_done((e) => {
let externalFrame = e.data;
assert_equals(externalFrame.timestamp, defaultInit.timestamp);
externalFrame.close();
})
localPort.postMessage(localFrame, [localFrame]);
assert_not_equals(localFrame.timestamp, defaultInit.timestamp);
}, 'Verify transferring frames closes them.');
async_test(t => {
let localFrame = createDefaultVideoFrame();