Skip to content

Commit

Permalink
webcodecs: WPT test for unsupported formats in VF.allocationSize()
Browse files Browse the repository at this point in the history
Bug: 40267195
Change-Id: I8178bea9a753e0cc1a2c0092760ec468ed04999f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5530313
Commit-Queue: Eugene Zemtsov <eugene@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1298991}
  • Loading branch information
Djuffin authored and chromium-wpt-export-bot committed May 10, 2024
1 parent 94d6442 commit 9c8d50c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webcodecs/videoFrame-copyTo-rgb.any.js
Expand Up @@ -243,6 +243,8 @@ function test_unsupported_pixel_formats() {
const data = new Uint32Array(16);
const options = {format: pixelFormat};
const frame = new VideoFrame(data, init);
assert_throws_dom(
'NotSupportedError', () => frame.allocationSize(options));
await promise_rejects_dom(
t, 'NotSupportedError', frame.copyTo(data, options))
frame.close();
Expand Down

0 comments on commit 9c8d50c

Please sign in to comment.