mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -106,4 +106,13 @@ async function testI420_4x2_copyTo(destination) {
|
|||
const layout = await frame.copyTo(destination);
|
||||
assert_layout_equals(layout, expectedLayout);
|
||||
assert_buffer_equals(destination, expectedData);
|
||||
}
|
||||
}
|
||||
|
||||
function verifyTimestampRequiredToConstructFrame(imageSource) {
|
||||
assert_throws_js(
|
||||
TypeError,
|
||||
() => new VideoFrame(imageSource),
|
||||
'timestamp required to construct VideoFrame from this source');
|
||||
let validFrame = new VideoFrame(imageSource, {timestamp: 0});
|
||||
validFrame.close();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue