https://github.com/web-platform-tests/wpt
Revision 002991d123354e1495ba66a4b6f04a0e6f19da9f authored by Tom Schuster on 11 April 2018, 09:30:07 UTC, committed by moz-wptsync-bot on 11 April 2018, 14:16:05 UTC
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1404744
gecko-commit: b2c0699b9bd405300986bc26f256e8bb9c0c53a7
gecko-integration-branch: central
gecko-reviewers: ckerschb
1 parent 3ed3aad
Raw File
Tip revision: 002991d123354e1495ba66a4b6f04a0e6f19da9f authored by Tom Schuster on 11 April 2018, 09:30:07 UTC
Check for FTP subresource after applying CSP.
Tip revision: 002991d
Create-protocols-repeated.htm
<!DOCTYPE html>
<html>
<head>
    <title>W3C WebSocket API - Create WebSocket - repeated protocols</title>
    <script type="text/javascript" src="/resources/testharness.js"></script>
    <script type="text/javascript" src="/resources/testharnessreport.js"></script>
    <script type="text/javascript" src="websocket.sub.js"></script>
</head>
<body>
    <div id="log"></div>
    <script type="text/javascript">
        test(function () {
            var wsocket;
            assert_throws("SYNTAX_ERR", function () { wsocket = CreateWebSocketWithRepeatedProtocols() });
        }, "W3C WebSocket API - Create WebSocket - Pass a valid URL and an array of protocol strings with repeated values - SYNTAX_ERR is thrown")
    </script>
</body>
</html>
back to top