Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /websockets/Create-protocols-repeated-case-insensitive.any.html?default - WPT Dashboard Interop Dashboard
- /websockets/Create-protocols-repeated-case-insensitive.any.html?wpt_flags=h2 - WPT Dashboard Interop Dashboard
- /websockets/Create-protocols-repeated-case-insensitive.any.html?wss - WPT Dashboard Interop Dashboard
- /websockets/Create-protocols-repeated-case-insensitive.any.worker.html?default - WPT Dashboard Interop Dashboard
- /websockets/Create-protocols-repeated-case-insensitive.any.worker.html?wpt_flags=h2 - WPT Dashboard Interop Dashboard
- /websockets/Create-protocols-repeated-case-insensitive.any.worker.html?wss - WPT Dashboard Interop Dashboard
// META: script=constants.sub.js
// META: variant=?default
// META: variant=?wss
// META: variant=?wpt_flags=h2
test(function() {
var wsocket;
assert_throws_dom("SYNTAX_ERR", function() {
wsocket = CreateWebSocketWithRepeatedProtocolsCaseInsensitive()
});
}, "Create WebSocket - Pass a valid URL and an array of protocol strings with repeated values but different case - SYNTAX_ERR is thrown")