Update web-platform-tests to revision 4333a1d2f109795547fc5e22ebfc8481fa649de7

This commit is contained in:
WPT Sync Bot 2018-06-22 21:05:34 -04:00
parent 728ebcc932
commit 8c46b67f8e
456 changed files with 10561 additions and 5108 deletions

View file

@ -1,6 +1,5 @@
<!doctype html>
<title>WebSockets: serialize establish a connection</title>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=../constants.js?pipe=sub></script>
@ -14,7 +13,7 @@ async_test(function(t) {
var events = 0;
var prevDate;
var date;
for (var i = 0; i < 4; ++i) {
for (var i = 0; i < 2; ++i) {
ws[i] = new WebSocket(SCHEME_DOMAIN_PORT+'/handshake_sleep_2');
ws[i].id = i;
ws[i].onopen = t.step_func(function(e) {
@ -28,7 +27,7 @@ async_test(function(t) {
}.bind(ws[i]))
ws[i].onclose = t.step_func(function() {
events++;
if (events == 8) {
if (events == 4) {
t.done();
}
this.onclose = t.step_func(function() {assert_unreached()});