Update web-platform-tests to revision 3cb5a99e5521936fb8819de8aaba806050b84184

This commit is contained in:
WPT Sync Bot 2019-06-23 10:23:36 +00:00
parent 1d2c0ba0bc
commit c700482629
204 changed files with 5112 additions and 1445 deletions

View file

@ -0,0 +1,21 @@
// META: script=websocket.sub.js
// META: timeout=long
async_test(t => {
window.wsurl = 'wss://' + __SERVER__NAME + ':' + __SECURE__PORT +
'/does-not-exist';
let wsframe;
window.wsonerror = () => {
wsframe.remove();
// If this didn't crash then the test passed.
t.done();
};
wsframe = document.createElement('iframe');
wsframe.srcdoc = `<script>
const ws = new WebSocket(parent.wsurl);
ws.onerror = parent.wsonerror;
</script>`;
onload = () => document.body.appendChild(wsframe);
}, 'removing an iframe from within an onerror handler should work');
done();