fune/testing/web-platform/tests/webcodecs/videoFrame-copyTo.crossOriginIsolated.https.any.js
Chris Cunningham c87e190136 Bug 1727660 [wpt PR 30187] - Mark codec interfaces as SecureContext, a=testonly
Automatic update from web-platform-tests
Mark codec interfaces as SecureContext

Bug: 1243519
Change-Id: Ib2d77aca4848053408ef0e8a78d95df0c6b9bbaf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3120330
Commit-Queue: Chrome Cunningham <chcunningham@chromium.org>
Auto-Submit: Chrome Cunningham <chcunningham@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#915665}

--

wpt-commits: 26f620a206708bc7bd2cd0c7d953f0916c33719b
wpt-pr: 30187
2021-09-02 10:30:49 +00:00

18 lines
839 B
JavaScript

// META: global=window,dedicatedworker
// META: script=/webcodecs/videoFrame-utils.js
promise_test(async t => {
// *.headers file should ensure we sesrve COOP and COEP headers.
assert_true(self.crossOriginIsolated,
"Cross origin isolation is required to construct SharedArrayBuffer");
const destination = new SharedArrayBuffer(I420_DATA.length);
await testI420_4x2_copyTo(destination);
}, 'Test copying I420 frame to SharedArrayBuffer.');
promise_test(async t => {
// *.headers file should ensure we sesrve COOP and COEP headers.
assert_true(self.crossOriginIsolated,
"Cross origin isolation is required to construct SharedArrayBuffer");
const destination = new Uint8Array(new SharedArrayBuffer(I420_DATA.length));
await testI420_4x2_copyTo(destination);
}, 'Test copying I420 frame to shared ArrayBufferView.');