mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'
This commit is contained in:
parent
4401622eb1
commit
b77ad115f6
16832 changed files with 270819 additions and 87621 deletions
|
@ -62,3 +62,21 @@ promise_test(() => {
|
|||
colorSpaceConversion: "none"
|
||||
}, kImageSettingOptionsRec2020Uint8);
|
||||
}, 'ImageBitmap<->VideoFrame with canvas(480x360 rec2020 uint8).');
|
||||
|
||||
promise_test(async () => {
|
||||
const width = 128;
|
||||
const height = 128;
|
||||
let vfInit = {format: 'RGBA', timestamp: 0,
|
||||
codedWidth: width, codedHeight: height,
|
||||
displayWidth: width / 2, displayHeight: height / 2};
|
||||
let data = new Uint32Array(vfInit.codedWidth * vfInit.codedHeight);
|
||||
data.fill(0xFF966432); // 'rgb(50, 100, 150)';
|
||||
let frame = new VideoFrame(data, vfInit);
|
||||
|
||||
let bitmap = await createImageBitmap(frame);
|
||||
frame.close();
|
||||
|
||||
assert_equals(bitmap.width, width / 2);
|
||||
assert_equals(bitmap.height, height / 2);
|
||||
bitmap.close();
|
||||
}, 'createImageBitmap uses frame display size');
|
Loading…
Add table
Add a link
Reference in a new issue