tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

videoFrame-copyTo.crossOriginIsolated.https.any.js (839B)


      1 // META: global=window,dedicatedworker
      2 // META: script=/webcodecs/videoFrame-utils.js
      3 
      4 promise_test(async t => {
      5  // *.headers file should ensure we sesrve COOP and COEP headers.
      6  assert_true(self.crossOriginIsolated,
      7    "Cross origin isolation is required to construct SharedArrayBuffer");
      8  const destination = new SharedArrayBuffer(I420_DATA.length);
      9  await testI420_4x2_copyTo(destination);
     10 }, 'Test copying I420 frame to SharedArrayBuffer.');
     11 
     12 promise_test(async t => {
     13  // *.headers file should ensure we sesrve COOP and COEP headers.
     14  assert_true(self.crossOriginIsolated,
     15    "Cross origin isolation is required to construct SharedArrayBuffer");
     16  const destination = new Uint8Array(new SharedArrayBuffer(I420_DATA.length));
     17  await testI420_4x2_copyTo(destination);
     18 }, 'Test copying I420 frame to shared ArrayBufferView.');