Bug 1470142 [wpt PR 11606] - WebSocket: only test 2 connections in websockets/constructor/014.html, a=testonly
authorSimon Pieters <zcorpan@gmail.com>
Fri, 06 Jul 2018 21:31:02 +0000
changeset 425985 c98621fc9e983842c6d0d60ad0c9d176fa3052c1
parent 425984 557614fc850307922aee5d14c1e9958b26e3fb8d
child 425986 c8bc136649be8212d6ebd14c0a8769a10fa2666d
push id34267
push userrgurzau@mozilla.com
push dateWed, 11 Jul 2018 22:05:21 +0000
treeherdermozilla-central@3aca103e4915 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1470142, 11606, 11571
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/websockets/constructor/014.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -383880,25 +383880,21 @@
      {
       "timeout": "long"
      }
     ]
    ],
    "websockets/constructor/014.html": [
     [
      "/websockets/constructor/014.html",
-     {
-      "timeout": "long"
-     }
+     {}
     ],
     [
      "/websockets/constructor/014.html?wss",
-     {
-      "timeout": "long"
-     }
+     {}
     ]
    ],
    "websockets/constructor/016.html": [
     [
      "/websockets/constructor/016.html",
      {}
     ],
     [
@@ -625629,17 +625625,17 @@
    "355a6c6ce54a84d75cec17d62a337ea0f98934e9",
    "testharness"
   ],
   "websockets/constructor/013.html": [
    "bac0dc89e73a158b1a07b514646fd8be5a83da14",
    "testharness"
   ],
   "websockets/constructor/014.html": [
-   "13b62c474c2b1f2604cc1f65a13c3ae6705200df",
+   "c6edfd33ef3f0e6644d344ed24387ce610992723",
    "testharness"
   ],
   "websockets/constructor/016.html": [
    "471adc2727ec28b9120e4f0ad22d4d2b845b6128",
    "testharness"
   ],
   "websockets/constructor/017.html": [
    "41f717f7c3d080394d0889bc6d04f805dad87872",
--- a/testing/web-platform/tests/websockets/constructor/014.html
+++ b/testing/web-platform/tests/websockets/constructor/014.html
@@ -1,39 +1,38 @@
 <!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>
 <meta name="variant" content="">
 <meta name="variant" content="?wss">
 <div id=log></div>
 <script>
 
 async_test(function(t) {
   var ws = [];
   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) {
       events++;
       date = new Date();
       if (prevDate) {
         assert_greater_than(date - prevDate, 1000);
       }
       prevDate = date;
       this.onopen = t.step_func(function() {assert_unreached()});
     }.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()});
     }.bind(ws[i]));
     ws[i].onerror = ws[i].onmessage = t.step_func(function() {assert_unreached()});
   }
 });
 </script>