зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1470142 [wpt PR 11606] - WebSocket: only test 2 connections in websockets/constructor/014.html, a=testonly
Automatic update from web-platform-testsWebSocket: only test 2 connections in websockets/constructor/014.html Part of #11571. -- wpt-commits: 7e77da661fc920d3cda671be9804fcd8a24dae29 wpt-pr: 11606
This commit is contained in:
Родитель
88ccb12d1e
Коммит
916e2759c3
|
@ -383885,15 +383885,11 @@
|
|||
"websockets/constructor/014.html": [
|
||||
[
|
||||
"/websockets/constructor/014.html",
|
||||
{
|
||||
"timeout": "long"
|
||||
}
|
||||
{}
|
||||
],
|
||||
[
|
||||
"/websockets/constructor/014.html?wss",
|
||||
{
|
||||
"timeout": "long"
|
||||
}
|
||||
{}
|
||||
]
|
||||
],
|
||||
"websockets/constructor/016.html": [
|
||||
|
@ -625634,7 +625630,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"websockets/constructor/014.html": [
|
||||
"13b62c474c2b1f2604cc1f65a13c3ae6705200df",
|
||||
"c6edfd33ef3f0e6644d344ed24387ce610992723",
|
||||
"testharness"
|
||||
],
|
||||
"websockets/constructor/016.html": [
|
||||
|
|
|
@ -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()});
|
||||
|
|
Загрузка…
Ссылка в новой задаче