<!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>[194366] 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/194366">194366</a></dd>
<dt>Author</dt> <dd>calvaris@igalia.com</dd>
<dt>Date</dt> <dd>2015-12-22 10:20:49 -0800 (Tue, 22 Dec 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>[Streams API] Fix cosmetic things after importing spec tests
https://bugs.webkit.org/show_bug.cgi?id=152479

Reviewed by Youenn Fablet.

Spec version are mainly updated in this patch as it wasn't done when importing tests from the spec. Some other
minor changes were done, as renumbering some tests, removing some orphan expectations and other styling issues.

* streams/brand-checks.html:
* streams/pipe-to.html:
* streams/readable-stream-controller-error.html:
* streams/readable-stream-pipeThrough.html:
* streams/readable-stream-reader-read.html:
* streams/reference-implementation/abstract-ops.html:
* streams/reference-implementation/bad-strategies.html:
* streams/reference-implementation/bad-underlying-sinks.html:
* streams/reference-implementation/bad-underlying-sources-expected.txt: Removed.
* streams/reference-implementation/brand-checks.html:
* streams/reference-implementation/byte-length-queuing-strategy.html:
* streams/reference-implementation/count-queuing-strategy.html:
* streams/reference-implementation/pipe-through.html:
* streams/reference-implementation/pipe-to-options.html:
* streams/reference-implementation/pipe-to.html:
* streams/reference-implementation/readable-stream-templated.html:
* streams/reference-implementation/transform-stream-errors.html:
* streams/reference-implementation/transform-stream.html:
* streams/reference-implementation/writable-stream-abort.html:
* streams/reference-implementation/writable-stream-expected.txt:
* streams/reference-implementation/writable-stream.html:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsstreamsbrandcheckshtml">trunk/LayoutTests/streams/brand-checks.html</a></li>
<li><a href="#trunkLayoutTestsstreamspipetohtml">trunk/LayoutTests/streams/pipe-to.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreadablestreamcontrollererrorhtml">trunk/LayoutTests/streams/readable-stream-controller-error.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreadablestreampipeThroughhtml">trunk/LayoutTests/streams/readable-stream-pipeThrough.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreadablestreamreaderreadhtml">trunk/LayoutTests/streams/readable-stream-reader-read.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationabstractopshtml">trunk/LayoutTests/streams/reference-implementation/abstract-ops.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationbadstrategieshtml">trunk/LayoutTests/streams/reference-implementation/bad-strategies.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationbadunderlyingsinkshtml">trunk/LayoutTests/streams/reference-implementation/bad-underlying-sinks.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationbrandcheckshtml">trunk/LayoutTests/streams/reference-implementation/brand-checks.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationbytelengthqueuingstrategyhtml">trunk/LayoutTests/streams/reference-implementation/byte-length-queuing-strategy.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationcountqueuingstrategyhtml">trunk/LayoutTests/streams/reference-implementation/count-queuing-strategy.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationpipethroughhtml">trunk/LayoutTests/streams/reference-implementation/pipe-through.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationpipetooptionshtml">trunk/LayoutTests/streams/reference-implementation/pipe-to-options.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationpipetohtml">trunk/LayoutTests/streams/reference-implementation/pipe-to.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationreadablestreamtemplatedhtml">trunk/LayoutTests/streams/reference-implementation/readable-stream-templated.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationtransformstreamerrorshtml">trunk/LayoutTests/streams/reference-implementation/transform-stream-errors.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationtransformstreamhtml">trunk/LayoutTests/streams/reference-implementation/transform-stream.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationwritablestreamaborthtml">trunk/LayoutTests/streams/reference-implementation/writable-stream-abort.html</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationwritablestreamexpectedtxt">trunk/LayoutTests/streams/reference-implementation/writable-stream-expected.txt</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationwritablestreamhtml">trunk/LayoutTests/streams/reference-implementation/writable-stream.html</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationbadunderlyingsourcesexpectedtxt">trunk/LayoutTests/streams/reference-implementation/bad-underlying-sources-expected.txt</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/ChangeLog        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -1,3 +1,35 @@
</span><ins>+2015-12-22  Xabier Rodriguez Calvar  &lt;calvaris@igalia.com&gt;
+
+        [Streams API] Fix cosmetic things after importing spec tests
+        https://bugs.webkit.org/show_bug.cgi?id=152479
+
+        Reviewed by Youenn Fablet.
+
+        Spec version are mainly updated in this patch as it wasn't done when importing tests from the spec. Some other
+        minor changes were done, as renumbering some tests, removing some orphan expectations and other styling issues.
+
+        * streams/brand-checks.html:
+        * streams/pipe-to.html:
+        * streams/readable-stream-controller-error.html:
+        * streams/readable-stream-pipeThrough.html:
+        * streams/readable-stream-reader-read.html:
+        * streams/reference-implementation/abstract-ops.html:
+        * streams/reference-implementation/bad-strategies.html:
+        * streams/reference-implementation/bad-underlying-sinks.html:
+        * streams/reference-implementation/bad-underlying-sources-expected.txt: Removed.
+        * streams/reference-implementation/brand-checks.html:
+        * streams/reference-implementation/byte-length-queuing-strategy.html:
+        * streams/reference-implementation/count-queuing-strategy.html:
+        * streams/reference-implementation/pipe-through.html:
+        * streams/reference-implementation/pipe-to-options.html:
+        * streams/reference-implementation/pipe-to.html:
+        * streams/reference-implementation/readable-stream-templated.html:
+        * streams/reference-implementation/transform-stream-errors.html:
+        * streams/reference-implementation/transform-stream.html:
+        * streams/reference-implementation/writable-stream-abort.html:
+        * streams/reference-implementation/writable-stream-expected.txt:
+        * streams/reference-implementation/writable-stream.html:
+
</ins><span class="cx"> 2015-12-22  Ryan Haddad  &lt;ryanhaddad@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Marking webgl/1.0.2/conformance/extensions/get-extension.html as flaky on mac-wk1
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsbrandcheckshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/brand-checks.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/brand-checks.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/brand-checks.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,6 +3,8 @@
</span><span class="cx"> &lt;script src='../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='reference-implementation/resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
+
</ins><span class="cx"> let ReadableStreamReader = (new ReadableStream()).getReader().constructor;
</span><span class="cx"> 
</span><span class="cx"> function fakeWritableStream() {
</span></span></pre></div>
<a id="trunkLayoutTestsstreamspipetohtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/pipe-to.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/pipe-to.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/pipe-to.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> &lt;script src='../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='reference-implementation/resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> // This test is alone here for timing reasons though it should be at streams/reference-implementation/pipe-to.html.
</span><span class="cx"> var test24 = async_test('Piping to a writable stream that does not consume the writes fast enough exerts backpressure on the source');
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreadablestreamcontrollererrorhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/readable-stream-controller-error.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/readable-stream-controller-error.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/readable-stream-controller-error.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> &lt;script src='../resources/testharness.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> var test1 = async_test('Erroring a ReadableStream after checking closed should reject ReadableStreamReader closed promise');
</span><span class="cx"> test1.step(function() {
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreadablestreampipeThroughhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/readable-stream-pipeThrough.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/readable-stream-pipeThrough.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/readable-stream-pipeThrough.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,6 +3,7 @@
</span><span class="cx"> &lt;script src='../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='../resources/gc.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> test(function() {
</span><span class="cx">     var input = {
</span><span class="lines">@@ -78,5 +79,4 @@
</span><span class="cx"> 
</span><span class="cx">     assert_equals(count, 3);
</span><span class="cx"> }, 'ReadableStream.prototype.pipeThrough should work with missing parameters');
</span><del>-
</del><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreadablestreamreaderreadhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/readable-stream-reader-read.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/readable-stream-reader-read.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/readable-stream-reader-read.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> &lt;script src='../resources/testharness.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> var test1 = async_test('Reading twice on a stream that gets closed');
</span><span class="cx"> test1.step(function() {
</span><span class="lines">@@ -150,5 +150,4 @@
</span><span class="cx">         test5.done();
</span><span class="cx">     }));
</span><span class="cx"> });
</span><del>-
</del><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationabstractopshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/abstract-ops.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/abstract-ops.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/abstract-ops.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -2,11 +2,10 @@
</span><span class="cx"> &lt;script src='../../resources/testharness.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><del>-&lt;!-- FIXME: enable IsReadableStreamDisturbed --&gt;
</del><span class="cx"> &lt;script&gt;
</span><span class="cx"> const IsReadableStreamDisturbed = internals.isReadableStreamDisturbed.bind(internals);
</span><span class="cx"> 
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> test(function() {
</span><span class="cx">     var rs = new ReadableStream();
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationbadstrategieshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/bad-strategies.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/bad-strategies.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/bad-strategies.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> &lt;script src='../../resources/testharness.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> test(function() {
</span><span class="cx">     var theError = new Error('a unique string');
</span><span class="lines">@@ -17,8 +17,8 @@
</span><span class="cx">     }, 'construction should re-throw the error');
</span><span class="cx"> }, 'Writable stream: throwing strategy.size getter');
</span><span class="cx"> 
</span><del>-var test3 = async_test('Writable stream: throwing strategy.size method');
-test3.step(function() {
</del><ins>+var test1 = async_test('Writable stream: throwing strategy.size method');
+test1.step(function() {
</ins><span class="cx">     var theError = new Error('a unique string');
</span><span class="cx">     var writeCalled = false;
</span><span class="cx">     var ws = new WritableStream({ },
</span><span class="lines">@@ -31,25 +31,25 @@
</span><span class="cx">     ); // Initial construction should not throw.
</span><span class="cx"> 
</span><span class="cx">     ws.write('a').then(
</span><del>-        test3.step_func(function() { assert_unreached('write should not fulfill'); }),
-        test3.step_func(function(r) {
</del><ins>+        test1.step_func(function() { assert_unreached('write should not fulfill'); }),
+        test1.step_func(function(r) {
</ins><span class="cx">             assert_equals(r, theError, 'write should reject with the thrown error');
</span><span class="cx">             writeCalled = true;
</span><span class="cx">         })
</span><span class="cx">     );
</span><span class="cx"> 
</span><span class="cx">     ws.closed.then(
</span><del>-        test3.step_func(function() { assert_unreached('closed should not fulfill'); }),
-        test3.step_func(function(r) {
</del><ins>+        test1.step_func(function() { assert_unreached('closed should not fulfill'); }),
+        test1.step_func(function(r) {
</ins><span class="cx">             assert_equals(r, theError, 'closed should reject with the thrown error');
</span><span class="cx">             assert_true(writeCalled);
</span><del>-            test3.done();
</del><ins>+            test1.done();
</ins><span class="cx">         })
</span><span class="cx">     );
</span><span class="cx"> });
</span><span class="cx"> 
</span><del>-var test4 = async_test('Writable stream: invalid strategy.size return value');
-test4.step(function() {
</del><ins>+var test2 = async_test('Writable stream: invalid strategy.size return value');
+test2.step(function() {
</ins><span class="cx">     var numberOfCalls = 0;
</span><span class="cx">     var elements = [NaN, -Infinity, +Infinity, -1];
</span><span class="cx">     var theError = [];
</span><span class="lines">@@ -68,18 +68,18 @@
</span><span class="cx">             theError[i] = r;
</span><span class="cx">         };
</span><span class="cx">         ws.write('a').then(
</span><del>-            test4.step_func(function() { assert_unreached('write should not fulfill'); }),
-            test4.step_func(writeFunction.bind(this, i))
</del><ins>+            test2.step_func(function() { assert_unreached('write should not fulfill'); }),
+            test2.step_func(writeFunction.bind(this, i))
</ins><span class="cx">         );
</span><span class="cx"> 
</span><span class="cx">         var catchFunction = function(i, e) {
</span><span class="cx">             assert_equals(e, theError[i], 'closed should reject with the error for ' + elements[i]);
</span><span class="cx">             if (++numberOfCalls, elements.length) {
</span><del>-                test4.done();
</del><ins>+                test2.done();
</ins><span class="cx">             }
</span><span class="cx">         };
</span><span class="cx"> 
</span><del>-        ws.closed.catch(test4.step_func(catchFunction.bind(this, i)));
</del><ins>+        ws.closed.catch(test2.step_func(catchFunction.bind(this, i)));
</ins><span class="cx">     }
</span><span class="cx"> });
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationbadunderlyingsinkshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/bad-underlying-sinks.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/bad-underlying-sinks.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/bad-underlying-sinks.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> test(function() {
</span><span class="cx">     var theError = new Error('a unique string');
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationbadunderlyingsourcesexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/streams/reference-implementation/bad-underlying-sources-expected.txt (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/bad-underlying-sources-expected.txt        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/bad-underlying-sources-expected.txt        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -1,23 +0,0 @@
</span><del>-
-PASS Underlying source start: throwing getter 
-PASS Underlying source start: throwing method 
-PASS Underlying source: throwing pull getter (initial pull) 
-PASS Underlying source: throwing pull method (initial pull) 
-PASS Underlying source: throwing pull getter (second pull) 
-PASS Underlying source: throwing pull method (second pull) 
-PASS Underlying source: throwing cancel getter 
-PASS Underlying source: throwing cancel method 
-PASS Underlying source: calling enqueue on an empty canceled stream should not throw 
-PASS Underlying source: calling enqueue on a non-empty canceled stream should not throw 
-PASS Underlying source: calling enqueue on a closed stream should throw 
-PASS Underlying source: calling enqueue on an errored stream should throw 
-PASS Underlying source: calling close twice on an empty stream should throw the second time 
-PASS Underlying source: calling close twice on a non-empty stream should throw the second time 
-PASS Underlying source: calling close on an empty canceled stream should not throw 
-PASS Underlying source: calling close on a non-empty canceled stream should not throw 
-PASS Underlying source: calling close after error should throw 
-PASS Underlying source: calling error twice should throw the second time 
-PASS Underlying source: calling error after close should throw 
-PASS Underlying source: calling error and returning a rejected promise from start should cause the stream to error with the first error 
-PASS Underlying source: calling error and returning a rejected promise from pull should cause the stream to error with the first error 
-
</del></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationbrandcheckshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/brand-checks.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/brand-checks.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/brand-checks.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> function fakeWritableStream() {
</span><span class="cx">   return {
</span><span class="lines">@@ -52,16 +52,16 @@
</span><span class="cx">     assert_throws(new TypeError(), function() { getter.call(target); }, getterName + ' should throw a TypeError');
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-var test6 = async_test('WritableStream.prototype.closed enforces a brand check');
-test6.step(function() {
-    getterRejects(test6, WritableStream.prototype, 'closed', fakeWritableStream());
-    getterRejects(test6, WritableStream.prototype, 'closed', realReadableStream(), true);
</del><ins>+var test1 = async_test('WritableStream.prototype.closed enforces a brand check');
+test1.step(function() {
+    getterRejects(test1, WritableStream.prototype, 'closed', fakeWritableStream());
+    getterRejects(test1, WritableStream.prototype, 'closed', realReadableStream(), true);
</ins><span class="cx"> });
</span><span class="cx"> 
</span><del>-var test7 = async_test('WritableStream.prototype.ready enforces a brand check');
-test7.step(function() {
-    getterRejects(test7, WritableStream.prototype, 'ready', fakeWritableStream());
-    getterRejects(test7, WritableStream.prototype, 'ready', realReadableStream(), true);
</del><ins>+var test2 = async_test('WritableStream.prototype.ready enforces a brand check');
+test2.step(function() {
+    getterRejects(test2, WritableStream.prototype, 'ready', fakeWritableStream());
+    getterRejects(test2, WritableStream.prototype, 'ready', realReadableStream(), true);
</ins><span class="cx"> });
</span><span class="cx"> 
</span><span class="cx"> test(function() {
</span><span class="lines">@@ -69,21 +69,21 @@
</span><span class="cx">     getterThrows(WritableStream.prototype, 'state', realReadableStream());
</span><span class="cx"> }, 'WritableStream.prototype.state enforces a brand check');
</span><span class="cx"> 
</span><del>-var test8 = async_test('WritableStream.prototype.abort enforces a brand check');
-test8.step(function() {
-    methodRejects(test8, WritableStream.prototype, 'abort', fakeWritableStream());
-    methodRejects(test8, WritableStream.prototype, 'abort', realReadableStream(), true);
</del><ins>+var test3 = async_test('WritableStream.prototype.abort enforces a brand check');
+test3.step(function() {
+    methodRejects(test3, WritableStream.prototype, 'abort', fakeWritableStream());
+    methodRejects(test3, WritableStream.prototype, 'abort', realReadableStream(), true);
</ins><span class="cx"> });
</span><span class="cx"> 
</span><del>-var test9 = async_test('WritableStream.prototype.write enforces a brand check');
-test9.step(function() {
-    methodRejects(test9, WritableStream.prototype, 'write', fakeWritableStream());
-    methodRejects(test9, WritableStream.prototype, 'write', realReadableStream(), true);
</del><ins>+var test4 = async_test('WritableStream.prototype.write enforces a brand check');
+test4.step(function() {
+    methodRejects(test4, WritableStream.prototype, 'write', fakeWritableStream());
+    methodRejects(test4, WritableStream.prototype, 'write', realReadableStream(), true);
</ins><span class="cx"> });
</span><span class="cx"> 
</span><del>-var test10 = async_test('WritableStream.prototype.close enforces a brand check');
-test10.step(function() {
-    methodRejects(test10, WritableStream.prototype, 'close', fakeWritableStream());
-    methodRejects(test10, WritableStream.prototype, 'close', realReadableStream(), true);
</del><ins>+var test5 = async_test('WritableStream.prototype.close enforces a brand check');
+test5.step(function() {
+    methodRejects(test5, WritableStream.prototype, 'close', fakeWritableStream());
+    methodRejects(test5, WritableStream.prototype, 'close', realReadableStream(), true);
</ins><span class="cx"> });
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationbytelengthqueuingstrategyhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/byte-length-queuing-strategy.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/byte-length-queuing-strategy.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/byte-length-queuing-strategy.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> var test1 = async_test('Closing a writable stream with in-flight writes below the high water mark delays the close call properly');
</span><span class="cx"> test1.step(function() {
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationcountqueuingstrategyhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/count-queuing-strategy.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/count-queuing-strategy.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/count-queuing-strategy.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,26 +3,26 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> test(function() {
</span><span class="cx">     new WritableStream({}, new CountQueuingStrategy({ highWaterMark: 4 })); // Does not throw.
</span><span class="cx"> }, 'Can construct a writable stream with a valid CountQueuingStrategy');
</span><span class="cx"> 
</span><del>-var test4 = async_test('Correctly governs the value of a WritableStream\'s state property (HWM = 0)');
-test4.step(function() {
</del><ins>+var test1 = async_test('Correctly governs the value of a WritableStream\'s state property (HWM = 0)');
+test1.step(function() {
</ins><span class="cx">     var dones = Object.create(null);
</span><span class="cx"> 
</span><span class="cx">     var ws = new WritableStream(
</span><span class="cx">         {
</span><span class="cx">             write: function(chunk) {
</span><del>-                return new Promise(test4.step_func(function(resolve) { dones[chunk] = resolve; }));
</del><ins>+                return new Promise(test1.step_func(function(resolve) { dones[chunk] = resolve; }));
</ins><span class="cx">             }
</span><span class="cx">         },
</span><span class="cx">         new CountQueuingStrategy({ highWaterMark: 0 })
</span><span class="cx">     );
</span><span class="cx"> 
</span><del>-    setTimeout(test4.step_func(function() {
</del><ins>+    setTimeout(test1.step_func(function() {
</ins><span class="cx">         assert_equals(ws.state, 'writable', 'After 0 writes, 0 of which finished, state should be \'writable\'');
</span><span class="cx"> 
</span><span class="cx">         var writePromiseA = ws.write('a');
</span><span class="lines">@@ -32,41 +32,41 @@
</span><span class="cx">         assert_equals(ws.state, 'waiting', 'After 2 writes, 0 of which finished, state should be \'waiting\'');
</span><span class="cx"> 
</span><span class="cx">         dones.a();
</span><del>-        writePromiseA.then(test4.step_func(function() {
</del><ins>+        writePromiseA.then(test1.step_func(function() {
</ins><span class="cx">             assert_equals(ws.state, 'waiting', 'After 2 writes, 1 of which finished, state should be \'waiting\'');
</span><span class="cx"> 
</span><span class="cx">             dones.b();
</span><del>-            return writePromiseB.then(test4.step_func(function() {
</del><ins>+            return writePromiseB.then(test1.step_func(function() {
</ins><span class="cx">                 assert_equals(ws.state, 'writable', 'After 2 writes, 2 of which finished, state should be \'writable\'');
</span><span class="cx"> 
</span><span class="cx">                 var writePromiseC = ws.write('c');
</span><span class="cx">                 assert_equals(ws.state, 'waiting', 'After 3 writes, 2 of which finished, state should be \'waiting\'');
</span><span class="cx"> 
</span><span class="cx">                 dones.c();
</span><del>-                return writePromiseC.then(test4.step_func(function() {
</del><ins>+                return writePromiseC.then(test1.step_func(function() {
</ins><span class="cx">                     assert_equals(ws.state, 'writable', 'After 3 writes, 3 of which finished, state should be \'writable\'');
</span><span class="cx"> 
</span><del>-                    test4.done();
</del><ins>+                    test1.done();
</ins><span class="cx">                 }));
</span><span class="cx">             }));
</span><del>-        })).catch(test4.step_func(function(e) { assert_unreached(&quot;uncaught error &quot; + e); }));
</del><ins>+        })).catch(test1.step_func(function(e) { assert_unreached(&quot;uncaught error &quot; + e); }));
</ins><span class="cx">     }), 0);
</span><span class="cx"> });
</span><span class="cx"> 
</span><del>-var test5 = async_test('Correctly governs the value of a WritableStream\'s state property (HWM = 4)');
-test5.step(function() {
</del><ins>+var test2 = async_test('Correctly governs the value of a WritableStream\'s state property (HWM = 4)');
+test2.step(function() {
</ins><span class="cx">     var dones = Object.create(null);
</span><span class="cx"> 
</span><span class="cx">     var ws = new WritableStream(
</span><span class="cx">         {
</span><span class="cx">             write: function(chunk) {
</span><del>-                return new Promise(test5.step_func(function(resolve) { dones[chunk] = resolve; }));
</del><ins>+                return new Promise(test2.step_func(function(resolve) { dones[chunk] = resolve; }));
</ins><span class="cx">             }
</span><span class="cx">         },
</span><span class="cx">         new CountQueuingStrategy({ highWaterMark: 4 })
</span><span class="cx">     );
</span><span class="cx"> 
</span><del>-    setTimeout(test5.step_func(function() {
</del><ins>+    setTimeout(test2.step_func(function() {
</ins><span class="cx">         assert_equals(ws.state, 'writable', 'After 0 writes, 0 of which finished, state should be \'writable\'');
</span><span class="cx"> 
</span><span class="cx">         var writePromiseA = ws.write('a');
</span><span class="lines">@@ -91,32 +91,32 @@
</span><span class="cx">         assert_equals(ws.state, 'waiting', 'After 7 writes, 0 of which finished, state should be \'waiting\'');
</span><span class="cx"> 
</span><span class="cx">         dones.a();
</span><del>-        writePromiseA.then(test5.step_func(function() {
</del><ins>+        writePromiseA.then(test2.step_func(function() {
</ins><span class="cx">             assert_equals(ws.state, 'waiting', 'After 7 writes, 1 of which finished, state should be \'waiting\'');
</span><span class="cx"> 
</span><span class="cx">             dones.b();
</span><del>-            return writePromiseB.then(test5.step_func(function() {
</del><ins>+            return writePromiseB.then(test2.step_func(function() {
</ins><span class="cx">                 assert_equals(ws.state, 'waiting', 'After 7 writes, 2 of which finished, state should be \'waiting\'');
</span><span class="cx"> 
</span><span class="cx">                 dones.c();
</span><del>-                return writePromiseC.then(test5.step_func(function() {
</del><ins>+                return writePromiseC.then(test2.step_func(function() {
</ins><span class="cx">                     assert_equals(ws.state, 'writable', 'After 7 writes, 3 of which finished, state should be \'writable\'');
</span><span class="cx"> 
</span><span class="cx">                     ws.write('h');
</span><span class="cx">                     assert_equals(ws.state, 'waiting', 'After 8 writes, 3 of which finished, state should be \'waiting\'');
</span><span class="cx"> 
</span><span class="cx">                     dones.d();
</span><del>-                    return writePromiseD.then(test5.step_func(function() {
</del><ins>+                    return writePromiseD.then(test2.step_func(function() {
</ins><span class="cx">                         assert_equals(ws.state, 'writable', 'After 8 writes, 4 of which finished, state should be \'writable\'');
</span><span class="cx"> 
</span><span class="cx">                         ws.write('i');
</span><span class="cx">                         assert_equals(ws.state, 'waiting', 'After 9 writes, 4 of which finished, state should be \'waiting\'');
</span><span class="cx"> 
</span><del>-                        test5.done();
</del><ins>+                        test2.done();
</ins><span class="cx">                     }));
</span><span class="cx">                 }));
</span><span class="cx">             }));
</span><del>-        })).catch(test5.step_func(function(e) { assert_unreached(&quot;uncaught error &quot; + e); }));
</del><ins>+        })).catch(test2.step_func(function(e) { assert_unreached(&quot;uncaught error &quot; + e); }));
</ins><span class="cx">     }), 0);
</span><span class="cx"> });
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationpipethroughhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/pipe-through.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/pipe-through.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/pipe-through.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> var test1 = async_test('Piping through a duck-typed pass-through transform stream works');
</span><span class="cx"> test1.step(function() {
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationpipetooptionshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/pipe-to-options.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/pipe-to-options.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/pipe-to-options.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> var test1 = async_test('Piping with no options and a destination error');
</span><span class="cx"> test1.step(function() {
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationpipetohtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/pipe-to.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/pipe-to.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/pipe-to.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> var test1 = async_test('Piping from a ReadableStream from which lots of data are readable synchronously');
</span><span class="cx"> test1.step(function() {
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationreadablestreamtemplatedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/readable-stream-templated.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/readable-stream-templated.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/readable-stream-templated.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,14 +3,14 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> function templatedRSClosed(label, factory) {
</span><span class="cx">     test(function() {
</span><span class="cx">     }, 'Running templatedRSClosed with ' + label);
</span><span class="cx"> 
</span><del>-    var test2 = async_test('piping to a WritableStream in the writable state should close the writable stream');
-    test2.step(function() {
</del><ins>+    var test1 = async_test('piping to a WritableStream in the writable state should close the writable stream');
+    test1.step(function() {
</ins><span class="cx">         var closeCalled = false;
</span><span class="cx"> 
</span><span class="cx">         var rs = factory();
</span><span class="lines">@@ -31,19 +31,19 @@
</span><span class="cx">             }
</span><span class="cx">         });
</span><span class="cx"> 
</span><del>-        startPromise.then(test2.step_func(function() {
</del><ins>+        startPromise.then(test1.step_func(function() {
</ins><span class="cx">             assert_equals(ws.state, 'writable', 'writable stream should start in writable state');
</span><span class="cx"> 
</span><del>-            return rs.pipeTo(ws).then(test2.step_func(function() {
</del><ins>+            return rs.pipeTo(ws).then(test1.step_func(function() {
</ins><span class="cx">                 assert_true(closeCalled);
</span><span class="cx">                 assert_equals(ws.state, 'closed', 'writable stream should become closed');
</span><del>-                test2.done('underlying source close should be called');
</del><ins>+                test1.done('underlying source close should be called');
</ins><span class="cx">             }));
</span><del>-        })).catch(test2.step_func(function(e) { assert_unreached(e); }));
</del><ins>+        })).catch(test1.step_func(function(e) { assert_unreached(e); }));
</ins><span class="cx">     });
</span><span class="cx"> 
</span><del>-    var test3 = async_test('piping to a WritableStream in the writable state with { preventClose: true } should do nothing');
-    test3.step(function() {
</del><ins>+    var test2 = async_test('piping to a WritableStream in the writable state with { preventClose: true } should do nothing');
+    test2.step(function() {
</ins><span class="cx">         var rs = factory();
</span><span class="cx"> 
</span><span class="cx">         var startPromise = Promise.resolve();
</span><span class="lines">@@ -62,14 +62,14 @@
</span><span class="cx">             }
</span><span class="cx">         });
</span><span class="cx"> 
</span><del>-        startPromise.then(test3.step_func(function() {
</del><ins>+        startPromise.then(test2.step_func(function() {
</ins><span class="cx">             assert_equals(ws.state, 'writable', 'writable stream should start in writable state');
</span><span class="cx"> 
</span><del>-            return rs.pipeTo(ws, { preventClose: true }).then(test3.step_func(function() {
</del><ins>+            return rs.pipeTo(ws, { preventClose: true }).then(test2.step_func(function() {
</ins><span class="cx">                 assert_equals(ws.state, 'writable', 'writable stream should still be writable');
</span><del>-                test3.done('pipeTo promise should be fulfilled');
</del><ins>+                test2.done('pipeTo promise should be fulfilled');
</ins><span class="cx">             }));
</span><del>-        })).catch(test3.step_func(function(e) { assert_unreached(e); }));
</del><ins>+        })).catch(test2.step_func(function(e) { assert_unreached(e); }));
</ins><span class="cx">     });
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationtransformstreamerrorshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/transform-stream-errors.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/transform-stream-errors.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/transform-stream-errors.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> var test1 = async_test('TransformStream errors thrown in transform put the writable and readable in an errored state');
</span><span class="cx"> test1.step(function() {
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationtransformstreamhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/transform-stream.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/transform-stream.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/transform-stream.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> test(function() {
</span><span class="cx">     new TransformStream({ transform: function() { } }); // TransformStream constructed with no errors.
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationwritablestreamaborthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/writable-stream-abort.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/writable-stream-abort.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/writable-stream-abort.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> var test1 = async_test('Aborting a WritableStream immediately prevents future writes');
</span><span class="cx"> test1.step(function() {
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationwritablestreamexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/writable-stream-expected.txt (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/writable-stream-expected.txt        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/writable-stream-expected.txt        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -10,5 +10,5 @@
</span><span class="cx"> PASS WritableStream with simple input, processed asynchronously 
</span><span class="cx"> PASS WritableStream with simple input, processed synchronously 
</span><span class="cx"> PASS WritableStream is writable and ready fulfills immediately if the strategy does not apply backpressure 
</span><del>-PASS Fulfillment value of ws.write() call must be undefined even if the underlying sink returns a non-undefined ovalue 
</del><ins>+PASS Fulfillment value of ws.write() call must be undefined even if the underlying sink returns a non-undefined value 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationwritablestreamhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/writable-stream.html (194365 => 194366)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/writable-stream.html        2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/streams/reference-implementation/writable-stream.html        2015-12-22 18:20:49 UTC (rev 194366)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> &lt;script src='../../resources/testharnessreport.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src='resources/streams-utils.js'&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><del>-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
</del><ins>+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
</ins><span class="cx"> 
</span><span class="cx"> function writeArrayToStream(array, writableStream) {
</span><span class="cx">     array.forEach(function(chunk) { writableStream.write(chunk); })
</span><span class="lines">@@ -239,7 +239,7 @@
</span><span class="cx">     }));
</span><span class="cx"> });
</span><span class="cx"> 
</span><del>-var test10 = async_test('Fulfillment value of ws.write() call must be undefined even if the underlying sink returns a non-undefined ovalue');
</del><ins>+var test10 = async_test('Fulfillment value of ws.write() call must be undefined even if the underlying sink returns a non-undefined value');
</ins><span class="cx"> test10.step(function() {
</span><span class="cx">     var ws = new WritableStream({
</span><span class="cx">         write: function() {
</span></span></pre>
</div>
</div>

</body>
</html>