mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Update web-platform-tests to revision 3cb5a99e5521936fb8819de8aaba806050b84184
This commit is contained in:
parent
1d2c0ba0bc
commit
c700482629
204 changed files with 5112 additions and 1445 deletions
|
@ -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();
|
Loading…
Add table
Add a link
Reference in a new issue