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

@ -16,8 +16,8 @@ async_test(function(t) {
ws.onmessage = t.step_func(function(e) {
assert_equals(e.data, 'a\uFFFDxb\uFFFDxc\uFFFD\uFFFDx');
ws.onclose = t.step_func(function(e) {
ws.onclose = t.step_func(function() {assert_unreached()});
setTimeout(function() {t.done();}, 50);
ws.onclose = t.unreached_func();
t.step_timeout(() => t.done(), 50);
});
ws.close();
})

View file

@ -18,9 +18,9 @@ async_test(function(t) {
assert_equals(sent, undefined);
});
ws.onclose = t.step_func(function(e) {
ws.onclose = t.step_func(function() {assert_unreached()});
setTimeout(function() {t.done()}, 50);
ws.onclose = t.unreached_func();
t.step_timeout(() => t.done(), 50);
});
ws.onerror = ws.onmessage = t.step_func(function() {assert_unreached()});
ws.onerror = ws.onmessage = t.unreached_func();
});
</script>

View file

@ -17,9 +17,9 @@ async_test(function(t) {
// test that nothing strange happens when send()ing in closed state
var sent = ws.send('test');
assert_equals(sent, undefined);
ws.onclose = t.step_func(function() {assert_unreached()});
setTimeout(function() {t.done()}, 50);
ws.onclose = t.unreached_func();
t.step_timeout(() => t.done(), 50);
})
ws.onerror = t.step_func(function() {assert_unreached()});
ws.onerror = t.unreached_func();
});
</script>

View file

@ -18,9 +18,9 @@ async_test(function(t){
ws.close();
});
ws.onclose = t.step_func(function(e) {
ws.onclose = t.step_func(function() {assert_unreached()});
setTimeout(function() {t.done()}, 50);
ws.onclose = t.unreached_func();
t.step_timeout(() => t.done(), 50);
});
ws.onerror = t.step_func(function() {assert_unreached()});
ws.onerror = t.unreached_func();
});
</script>

View file

@ -17,11 +17,11 @@ async_test(function(t) {
ws.onmessage = t.step_func(function(e) {
assert_equals(e.data, '\u00E5 a\u030A \uD801\uDC7E');
ws.onclose = t.step_func(function(e) {
ws.onclose = t.step_func(function() {assert_unreached()});
setTimeout(function() {t.done()}, 50);
ws.onclose = t.unreached_func();
t.step_timeout(() => t.done(), 50);
})
ws.close();
})
ws.onclose = ws.onerror = t.step_func(function() {assert_unreached()});
ws.onclose = ws.onerror = t.unreached_func();
});
</script>

View file

@ -17,11 +17,11 @@ async_test(function(t){
ws.onmessage = t.step_func(function(e) {
assert_equals(e.data, 'null');
ws.onclose = t.step_func(function(e) {
ws.onclose = t.step_func(function() {assert_unreached()});
setTimeout(function() {t.done()}, 50);
ws.onclose = t.unreached_func();
t.step_timeout(() => t.done(), 50);
})
ws.close();
});
ws.onclose = ws.onerror = t.step_func(function() {assert_unreached()});
ws.onclose = ws.onerror = t.unreached_func();
});
</script>