Automatic update from web-platform-tests Update webrtc-encoded-transform tests to latest SFrame APIs (#59917) * Update to latest SFrame API * Update webrtc-encoded-transform/sframe-transform-worker.js Co-authored-by: youennf <youennf@users.noreply.github.com> --------- Co-authored-by: youennf <youennf@users.noreply.github.com> -- wpt-commits: 42bf2ec81f1c15aa6fe84b37f41daea61e25d266 wpt-pr: 59917
20 lines
633 B
HTML
20 lines
633 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
</head>
|
|
<body>
|
|
<iframe src="." id="frame"></iframe>
|
|
<script>
|
|
promise_test(async (test) => {
|
|
const frameDOMException = frame.contentWindow.DOMException;
|
|
const transform = new frame.contentWindow.SFrameEncrypterStream({ cipherSuite: "AES_128_CTR_HMAC_SHA256_80" });
|
|
frame.remove();
|
|
assert_throws_dom("InvalidStateError", frameDOMException, () => transform.readable);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|