fune/testing/web-platform/tests/webrtc-encoded-transform/sframe-transform-readable.html
Alexey Shvayka 873efa4156 Bug 1722064 [wpt PR 29767] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=225997, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=225997 (#29767)

--

wpt-commits: abea83b103594bef64a8627a3873a5e9b5e5ce65
wpt-pr: 29767
2021-07-31 09:21:52 +00:00

19 lines
580 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.SFrameTransform;
frame.remove();
assert_throws_dom("InvalidStateError", frameDOMException, () => transform.readable);
});
</script>
</body>
</html>