Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444

This commit is contained in:
Josh Matthews 2017-04-17 12:06:02 +10:00 committed by Anthony Ramine
parent 25e8bf69e6
commit 665817d2a6
35333 changed files with 1818077 additions and 16036 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>