mirror of
https://github.com/servo/servo.git
synced 2025-08-23 22:35:33 +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
|
@ -10,7 +10,7 @@
|
|||
<script>
|
||||
async_test(function(t) {
|
||||
var ws = new WebSocket(SCHEME_DOMAIN_PORT+'/sleep_10_v13');
|
||||
setTimeout(t.step_func(function() {
|
||||
t.step_timeout(function() {
|
||||
assert_equals(ws.readyState, ws.CONNECTING);
|
||||
ws.close();
|
||||
assert_equals(ws.readyState, ws.CLOSING);
|
||||
|
@ -19,7 +19,7 @@ async_test(function(t) {
|
|||
assert_equals(e.wasClean, false);
|
||||
t.done();
|
||||
});
|
||||
}), 1000);
|
||||
ws.onopen = ws.onclose = t.step_func(assert_unreached);
|
||||
}, 1000);
|
||||
ws.onopen = ws.onclose = t.unreached_func();
|
||||
}, undefined, {timeout:12000});
|
||||
</script>
|
||||
|
|
|
@ -18,12 +18,12 @@ async_test(function(t) {
|
|||
ws.close();
|
||||
var f = t.step_func(function() {
|
||||
if (i < 1) {
|
||||
setTimeout(f, 500);
|
||||
t.step_timeout(f, 500);
|
||||
return;
|
||||
}
|
||||
assert_equals(i, 1);
|
||||
t.done()
|
||||
});
|
||||
setTimeout(f, 500);
|
||||
t.step_timeout(f, 500);
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -17,10 +17,10 @@ async_test(function(t) {
|
|||
ws.close();
|
||||
assert_equals(ws.readyState, ws.CLOSED);
|
||||
}
|
||||
setTimeout(t.step_func(function() {
|
||||
t.step_timeout(function() {
|
||||
assert_equals(i, 1);
|
||||
t.done();
|
||||
}), 50);
|
||||
}, 50);
|
||||
});
|
||||
ws.close();
|
||||
assert_equals(ws.readyState, ws.CLOSING);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue