mirror of
https://github.com/servo/servo.git
synced 2025-08-24 14:48:21 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -17,12 +17,12 @@ t.step(function() {
|
|||
sessionStorage[uuid] = 'true';
|
||||
var ws = new WebSocket(SCHEME_DOMAIN_PORT+'/echo');
|
||||
ws.onopen = t.step_func(function(e) {
|
||||
setTimeout(t.step_func(function() {
|
||||
t.step_timeout(function() {
|
||||
assert_unreached('document was not discarded');
|
||||
}), 1000);
|
||||
}, 1000);
|
||||
controller.navigate();
|
||||
})
|
||||
ws.onerror = ws.onmessage = ws.onclose = t.step_func(function(e) {assert_unreached("Got unexpected event " + e.type)});
|
||||
ws.onerror = ws.onmessage = ws.onclose = t.step_func(e => assert_unreached("Got unexpected event " + e.type));
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -19,16 +19,16 @@ t.step(function() {
|
|||
var ws = new WebSocket(SCHEME_DOMAIN_PORT+'/echo');
|
||||
ws.onopen = t.step_func(function(e) {
|
||||
|
||||
setTimeout(t.step_func(function() {
|
||||
t.step_timeout(function() {
|
||||
assert_equals(ws.readyState, ws.CLOSED, 'ws.readyState');
|
||||
t.done();
|
||||
}), 4000);
|
||||
}, 4000);
|
||||
ws.close();
|
||||
ws.onclose = t.step_func(function() {
|
||||
controller.navigate();
|
||||
});
|
||||
})
|
||||
ws.onerror = ws.onmessage = ws.onclose = t.step_func(function(e) {assert_unreached("Got unexpected event " + e.type)});
|
||||
ws.onerror = ws.onmessage = ws.onclose = t.step_func(e => assert_unreached("Got unexpected event " + e.type));
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -10,16 +10,15 @@ var hasRun = false;
|
|||
function run(){
|
||||
var ws = new WebSocket(SCHEME_DOMAIN_PORT+'/echo');
|
||||
ws.onopen = t.step_func(function(e) {
|
||||
setTimeout(t.step_func(function() {
|
||||
t.step_timeout(function() {
|
||||
ws.send('test');
|
||||
}), 1000);
|
||||
}, 1000);
|
||||
window[0].location = 'data:text/html,<body onload="history.back()">';
|
||||
ws.onmessage = t.step_func(function(e) {
|
||||
ws.onmessage = t.step_func_done(function(e) {
|
||||
ws.close();
|
||||
t.done();
|
||||
});
|
||||
});
|
||||
ws.onerror = ws.onmessage = ws.onclose = t.step_func(function(e) {assert_unreached("Got unexpected event " + e.type)});
|
||||
ws.onerror = ws.onmessage = ws.onclose = t.step_func(e => assert_unreached("Got unexpected event " + e.type));
|
||||
}
|
||||
</script>
|
||||
<iframe src='data:text/html,foo' onload='if (hasRun) return; hasRun = true; t.step(run)'></iframe>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue