summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webrtc-encoded-transform/sframe-transform-readable.html
blob: 2afce1b271ec313d180088ff29608f40fa57da5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!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>