<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[280344] trunk/LayoutTests</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/280344">280344</a></dd>
<dt>Author</dt> <dd>tsavell@apple.com</dd>
<dt>Date</dt> <dd>2021-07-27 11:00:44 -0700 (Tue, 27 Jul 2021)</dd>
</dl>

<h3>Log Message</h3>
<pre>Additional new baselines for Monterey
https://bugs.webkit.org/show_bug.cgi?id=228090

Unreviewed test gardening.


* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt: Added.
* platform/mac-catalina-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/alert-in-event-handler-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-2-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/receive-arraybuffer-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/workers/receive-arraybuffer-expected.txt: Added.
* platform/mac-wk2/http/tests/websocket/tests/hybi/zero-length-text-expected.txt: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/</li>
<li>trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/</li>
<li>trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/</li>
<li><a href="#trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybicloseandserverscriptexceptionexpectedtxt">trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybiclosecodeandreasonexpectedtxt">trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybihandshakefailbynocrexpectedtxt">trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybihandshakefailbynullcharinstatusexpectedtxt">trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybihandshakeokwithhttpversionbeyond1_1expectedtxt">trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybisendobjecttostringcheckexpectedtxt">trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt</a></li>
<li>trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/</li>
<li><a href="#trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybiworkersclosecodeandreasonexpectedtxt">trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt</a></li>
<li>trunk/LayoutTests/platform/mac-catalina-wk2/http/tests/websocket/</li>
<li>trunk/LayoutTests/platform/mac-catalina-wk2/http/tests/websocket/tests/</li>
<li>trunk/LayoutTests/platform/mac-catalina-wk2/http/tests/websocket/tests/hybi/</li>
<li><a href="#trunkLayoutTestsplatformmaccatalinawk2httptestswebsockettestshybisendobjecttostringcheckexpectedtxt">trunk/LayoutTests/platform/mac-catalina-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt</a></li>
<li>trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/</li>
<li>trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/</li>
<li>trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/</li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybialertineventhandlerexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/alert-in-event-handler-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiclientclose2expectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiclientcloseexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybicloseandserverscriptexceptionexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiclosecodeandreasonexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybihandshakefailbynocrexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybihandshakefailbynullcharinstatusexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybihandshakeokwithhttpversionbeyond1_1expectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiinvalidencodelengthexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybireceivearraybufferexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/receive-arraybuffer-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybisendobjecttostringcheckexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt</a></li>
<li>trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/workers/</li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiworkersclosecodeandreasonexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiworkersreceivearraybufferexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/workers/receive-arraybuffer-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2httptestswebsockettestshybizerolengthtextexpectedtxt">trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/zero-length-text-expected.txt</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (280343 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog      2021-07-27 17:25:18 UTC (rev 280343)
+++ trunk/LayoutTests/ChangeLog 2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -1,3 +1,33 @@
</span><ins>+2021-07-27  Truitt Savell  <tsavell@apple.com>
+
+        Additional new baselines for Monterey
+        https://bugs.webkit.org/show_bug.cgi?id=228090
+
+        Unreviewed test gardening.
+
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt: Added.
+        * platform/mac-catalina-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/alert-in-event-handler-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-2-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/receive-arraybuffer-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/workers/receive-arraybuffer-expected.txt: Added.
+        * platform/mac-wk2/http/tests/websocket/tests/hybi/zero-length-text-expected.txt: Added.
+
</ins><span class="cx"> 2021-07-27  Ayumi Kojima  <ayumi_kojima@apple.com>
</span><span class="cx"> 
</span><span class="cx">         [iOS Release] 2 imported/w3c/web-platform-tests/worklets tests are flaky failing.
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybicloseandserverscriptexceptionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt                         (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt    2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+Test how closing a connection triggers an exception in the python web socket server script or not
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS ws on master document is ready.
+PASS insert a iframe, where open ws called 'socket1'
+PASS 'socket1' is sent to the server. unload the iframe. expect receiving 'socket1' on ws...
+FAIL closedSocket should be Closed without exception. Was Closed by exception.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybiclosecodeandreasonexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt                             (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt        2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,82 @@
</span><ins>+Test CloseEvent code and reason property.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+ws.onclose() was called.
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is codeAbnormalClosure
+PASS closeEvent.reason is emptyString
+WebSocketTest.onopen() was called with testId = 0.
+WebSocketTest.onclose() was called with testId = 0.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1005
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1005
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 1.
+WebSocketTest.onclose() was called with testId = 1.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 2.
+WebSocketTest.onclose() was called with testId = 2.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1000
+PASS closeEvent.reason is 'ok'
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1000
+PASS closeEvent.reason is 'ok'
+WebSocketTest.onopen() was called with testId = 3.
+WebSocketTest.onclose() was called with testId = 3.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 4.
+WebSocketTest.onclose() was called with testId = 4.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 5.
+WebSocketTest.onclose() was called with testId = 5.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 6.
+WebSocketTest.onclose() was called with testId = 6.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 65535
+PASS closeEvent.reason is 'good bye'
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 65535
+PASS closeEvent.reason is 'good bye'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybihandshakefailbynocrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt                           (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt      2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+Handshake should fail when the first line does not end with CRLF.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS connected is false
+PASS wsOrigin is undefined.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybihandshakefailbynullcharinstatusexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt                             (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt        2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+Connection should fail immediately, rather than succeeding or staying in limbo until timeout, if a null byte is received in the status header.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS timedOut is false
+PASS connected is false
+PASS wsOrigin is undefined.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybihandshakeokwithhttpversionbeyond1_1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt                         (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt    2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+Test http version parsing and validation. HTTP version 1.1 and above should be accepted for WebSockets.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS for all URLs.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybisendobjecttostringcheckexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt   2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+WebSocket: Object's toString method should be called only once.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS testObj.callCounter is 1
+PASS closeEvent.wasClean is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacbigsurwk2httptestswebsockettestshybiworkersclosecodeandreasonexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt                             (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt        2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,69 @@
</span><ins>+Test CloseEvent code and reason property in Worker.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+ws.onclose() was called.
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is codeAbnormalClosure
+PASS PASS: worker: event.reason is emptyString
+WebSocketTest.onopen() was called with testId = 0.
+WebSocketTest.onclose() was called with testId = 0.
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1005
+PASS PASS: worker: event.reason is
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1005
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 1.
+WebSocketTest.onclose() was called with testId = 1.
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 2.
+WebSocketTest.onclose() was called with testId = 2.
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1000
+PASS PASS: worker: event.reason is ok
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1000
+PASS PASS: worker: event.reason is ok
+WebSocketTest.onopen() was called with testId = 3.
+WebSocketTest.onclose() was called with testId = 3.
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 4.
+WebSocketTest.onclose() was called with testId = 4.
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 5.
+WebSocketTest.onclose() was called with testId = 5.
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 6.
+WebSocketTest.onclose() was called with testId = 6.
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 65535
+PASS PASS: worker: event.reason is good bye
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 65535
+PASS PASS: worker: event.reason is good bye
+DONE
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmaccatalinawk2httptestswebsockettestshybisendobjecttostringcheckexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-catalina-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-catalina-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt                              (rev 0)
+++ trunk/LayoutTests/platform/mac-catalina-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt 2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+WebSocket: Object's toString method should be called only once.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS testObj.callCounter is 1
+PASS closeEvent.wasClean is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybialertineventhandlerexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/alert-in-event-handler-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/alert-in-event-handler-expected.txt                           (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/alert-in-event-handler-expected.txt      2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+ALERT: waiting for open
+ALERT: message handled.first message
+ALERT: message handled.second message
+Make sure event handler called serially.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+alert will suspend/resume WebSocket.
+onopen should fire later.
+Connected
+Enter onmessage: first message
+Leave onmessage: first message
+Enter onmessage: second message
+Leave onmessage: second message
+Closed
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiclientclose2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-2-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-2-expected.txt                           (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-2-expected.txt      2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+WebSocket: Test client-initiated close with 1000.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Connected
+Closed
+PASS receivedMessage is undefined.
+PASS closeEvent.reason is "close_frame[:2]='\\x88\\x82'"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiclientcloseexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-expected.txt                             (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/client-close-expected.txt        2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+WebSocket: Test client-initiated close. After WebSocket.close() any message from server must be discarded by WebSocket stack according to the new WebSocket API. See http://webkit.org/b/85934.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Connected
+Closed
+PASS receivedMessage is undefined.
+PASS closeEvent.reason is "close_frame[:2]='\\x88\\x80'"
+PASS closeEvent.wasClean is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybicloseandserverscriptexceptionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt   2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+Test how closing a connection triggers an exception in the python web socket server script or not
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS ws on master document is ready.
+PASS insert a iframe, where open ws called 'socket1'
+PASS 'socket1' is sent to the server. unload the iframe. expect receiving 'socket1' on ws...
+PASS closedSocket is "Closed without exception"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiclosecodeandreasonexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt                            (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt       2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,82 @@
</span><ins>+Test CloseEvent code and reason property.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+ws.onclose() was called.
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is codeAbnormalClosure
+PASS closeEvent.reason is emptyString
+WebSocketTest.onopen() was called with testId = 0.
+WebSocketTest.onclose() was called with testId = 0.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1005
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1005
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 1.
+WebSocketTest.onclose() was called with testId = 1.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 2.
+WebSocketTest.onclose() was called with testId = 2.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1000
+PASS closeEvent.reason is 'ok'
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1000
+PASS closeEvent.reason is 'ok'
+WebSocketTest.onopen() was called with testId = 3.
+WebSocketTest.onclose() was called with testId = 3.
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1005.
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1005.
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 4.
+WebSocketTest.onclose() was called with testId = 4.
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1005.
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1005.
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 5.
+WebSocketTest.onclose() was called with testId = 5.
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1015.
+FAIL closeEvent.reason should be . Was baz.
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1015.
+FAIL closeEvent.reason should be . Was baz.
+WebSocketTest.onopen() was called with testId = 6.
+WebSocketTest.onclose() was called with testId = 6.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+FAIL closeEvent.code should be 65535. Was 1005.
+FAIL closeEvent.reason should be good bye. Was .
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+FAIL closeEvent.code should be 65535. Was 1005.
+FAIL closeEvent.reason should be good bye. Was .
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybihandshakefailbynocrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt                          (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt     2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+Handshake should fail when the first line does not end with CRLF.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Connected
+Timed out (state = 1)
+FAIL connected should be false. Was true.
+PASS wsOrigin is undefined.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybihandshakefailbynullcharinstatusexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt                            (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt       2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+Connection should fail immediately, rather than succeeding or staying in limbo until timeout, if a null byte is received in the status header.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Connected
+PASS timedOut is false
+FAIL connected should be false. Was true.
+PASS wsOrigin is undefined.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybihandshakeokwithhttpversionbeyond1_1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt   2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+Test http version parsing and validation. HTTP version 1.1 and above should be accepted for WebSockets.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+FAIL The following URL should have been allowed to be opened: ws://localhost:8880/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1?1.11
+FAIL The following URL should have been allowed to be opened: ws://localhost:8880/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1?11.0
+FAIL The following URL should have been allowed to be opened: ws://localhost:8880/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1?001.01
+FAIL At least one test failed.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiinvalidencodelengthexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt                            (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt       2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+Test whether WebSocket aborts the connection when it receives an unexpected encoding length frame.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Case 126_125: Test started.
+onopen() was called.
+onclose() was called.
+PASS closeEvent.wasClean is false
+Case 126_0: Test started.
+onopen() was called.
+onclose() was called.
+PASS closeEvent.wasClean is false
+Case 127_65535: Test started.
+onopen() was called.
+onclose() was called.
+PASS closeEvent.wasClean is false
+Case 127_0: Test started.
+onopen() was called.
+onclose() was called.
+PASS closeEvent.wasClean is false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybireceivearraybufferexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/receive-arraybuffer-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/receive-arraybuffer-expected.txt                              (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/receive-arraybuffer-expected.txt 2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+WebSocket: Receive ArrayBuffers.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS ws.binaryType is "arraybuffer"
+PASS receivedMessages.length is 3
+Checking message #0.
+PASS responseType is "[object ArrayBuffer]"
+PASS actualArray.length is 13
+PASS Passed: Message #0.
+Checking message #1.
+PASS responseType is "[object ArrayBuffer]"
+PASS actualArray.length is 0
+PASS Passed: Message #1.
+Checking message #2.
+PASS responseType is "[object ArrayBuffer]"
+PASS actualArray.length is 256
+PASS Passed: Message #2.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybisendobjecttostringcheckexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt                               (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/send-object-tostring-check-expected.txt  2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+WebSocket: Object's toString method should be called only once.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS testObj.callCounter is 1
+FAIL closeEvent.wasClean should be true. Was false.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiworkersclosecodeandreasonexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt                            (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt       2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,69 @@
</span><ins>+Test CloseEvent code and reason property in Worker.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+ws.onclose() was called.
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is codeAbnormalClosure
+PASS PASS: worker: event.reason is emptyString
+WebSocketTest.onopen() was called with testId = 0.
+WebSocketTest.onclose() was called with testId = 0.
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1005
+PASS PASS: worker: event.reason is
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1005
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 1.
+WebSocketTest.onclose() was called with testId = 1.
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 2.
+WebSocketTest.onclose() was called with testId = 2.
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1000
+PASS PASS: worker: event.reason is ok
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1000
+PASS PASS: worker: event.reason is ok
+WebSocketTest.onopen() was called with testId = 3.
+WebSocketTest.onclose() was called with testId = 3.
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+PASS PASS: worker: event.reason is
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 4.
+WebSocketTest.onclose() was called with testId = 4.
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+PASS PASS: worker: event.reason is
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 5.
+WebSocketTest.onclose() was called with testId = 5.
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+FAIL FAIL: worker: event.reason is not
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+FAIL FAIL: worker: event.reason is not
+WebSocketTest.onopen() was called with testId = 6.
+WebSocketTest.onclose() was called with testId = 6.
+PASS PASS: worker: event.wasClean is true
+FAIL FAIL: worker: event.code is not 65535
+FAIL FAIL: worker: event.reason is not good bye
+PASS PASS: worker: event.wasClean is true
+FAIL FAIL: worker: event.code is not 65535
+FAIL FAIL: worker: event.reason is not good bye
+DONE
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybiworkersreceivearraybufferexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/workers/receive-arraybuffer-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/workers/receive-arraybuffer-expected.txt                              (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/workers/receive-arraybuffer-expected.txt 2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+WebSocket: Receive ArrayBuffers in Web Workers.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS PASS: ws.binaryType is "arraybuffer"
+PASS PASS: receivedMessages.length is 3
+INFO: Checking message #0.
+PASS PASS: responseType is "[object ArrayBuffer]"
+PASS PASS: actualArray.length is 13
+PASS PASS: Passed: Message #0.
+INFO: Checking message #1.
+PASS PASS: responseType is "[object ArrayBuffer]"
+PASS PASS: actualArray.length is 0
+PASS PASS: Passed: Message #1.
+INFO: Checking message #2.
+PASS PASS: responseType is "[object ArrayBuffer]"
+PASS PASS: actualArray.length is 256
+PASS PASS: Passed: Message #2.
+DONE
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2httptestswebsockettestshybizerolengthtextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/zero-length-text-expected.txt (0 => 280344)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/zero-length-text-expected.txt                         (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/http/tests/websocket/tests/hybi/zero-length-text-expected.txt    2021-07-27 18:00:44 UTC (rev 280344)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+Test whether WebSocket handles zero length text frame correctly.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+onopen() was called.
+onmessage() was called. (message = "")
+onmessage() was called. (message = "This first text should be received.")
+onmessage() was called. (message = "")
+onmessage() was called. (message = "This second text should be received, too.")
+onclose() was called.
+PASS closeEvent.wasClean is true
+PASS sequence is 4
+PASS receivedText is expectedText
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre>
</div>
</div>

</body>
</html>