diff options
Diffstat (limited to 'testing/web-platform/tests/webcodecs/video-decoder.https.any.js')
-rw-r--r-- | testing/web-platform/tests/webcodecs/video-decoder.https.any.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webcodecs/video-decoder.https.any.js b/testing/web-platform/tests/webcodecs/video-decoder.https.any.js index 77a610bd4e..5b3193b8c3 100644 --- a/testing/web-platform/tests/webcodecs/video-decoder.https.any.js +++ b/testing/web-platform/tests/webcodecs/video-decoder.https.any.js @@ -1,5 +1,9 @@ // META: global=window,dedicatedworker // META: script=/webcodecs/utils.js +// + +const detachedArrayBuffer = new ArrayBuffer(4); +var b = detachedArrayBuffer.transferToFixedLength(); const invalidConfigs = [ { @@ -10,6 +14,10 @@ const invalidConfigs = [ comment: 'Empty codec', config: {codec: ''}, }, + { + comment: 'Valid codec, detached description', + config: {codec: 'vp8', description: detachedArrayBuffer}, + }, ]; // invalidConfigs invalidConfigs.forEach(entry => { |