Update web-platform-tests to revision de3ae39cb59880a8245431e7f09817a2a4dad1a3

This commit is contained in:
WPT Sync Bot 2018-06-15 21:19:30 -04:00
parent 0c5b020163
commit b322aa3943
131 changed files with 2717 additions and 600 deletions

View file

@ -0,0 +1,18 @@
// META: script=websocket.sub.js
// META: global=sharedworker,serviceworker
async_test(t => {
const isSecure = new URL(location.href).scheme === 'https';
const scheme = isSecure ? 'wss' : 'ws';
const port = isSecure ? __SECURE__PORT : __PORT;
const url = scheme + '://' + 'foo:bar@' + __SERVER__NAME + ':' + port + '/basic_auth';
const ws = new WebSocket(url);
ws.onopen = () => {
ws.onclose = ws.onerror = null;
ws.close();
t.done();
};
ws.onerror = ws.onclose = t.unreached_func('open should succeed');
}, 'HTTP basic authentication should work with WebSockets');
done();