Title: [194366] trunk/LayoutTests
Revision
194366
Author
[email protected]
Date
2015-12-22 10:20:49 -0800 (Tue, 22 Dec 2015)

Log Message

[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:

Modified Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (194365 => 194366)


--- trunk/LayoutTests/ChangeLog	2015-12-22 18:15:02 UTC (rev 194365)
+++ trunk/LayoutTests/ChangeLog	2015-12-22 18:20:49 UTC (rev 194366)
@@ -1,3 +1,35 @@
+2015-12-22  Xabier Rodriguez Calvar  <[email protected]>
+
+        [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:
+
 2015-12-22  Ryan Haddad  <[email protected]>
 
         Marking webgl/1.0.2/conformance/extensions/get-extension.html as flaky on mac-wk1

Modified: trunk/LayoutTests/streams/brand-checks.html (194365 => 194366)


--- 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)
@@ -3,6 +3,8 @@
 <script src=''></script>
 <script src=''></script>
 <script>
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
+
 let ReadableStreamReader = (new ReadableStream()).getReader().constructor;
 
 function fakeWritableStream() {

Modified: trunk/LayoutTests/streams/pipe-to.html (194365 => 194366)


--- 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)
@@ -3,7 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 // This test is alone here for timing reasons though it should be at streams/reference-implementation/pipe-to.html.
 var test24 = async_test('Piping to a writable stream that does not consume the writes fast enough exerts backpressure on the source');

Modified: trunk/LayoutTests/streams/readable-stream-controller-error.html (194365 => 194366)


--- 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)
@@ -2,7 +2,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 var test1 = async_test('Erroring a ReadableStream after checking closed should reject ReadableStreamReader closed promise');
 test1.step(function() {

Modified: trunk/LayoutTests/streams/readable-stream-pipeThrough.html (194365 => 194366)


--- 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)
@@ -3,6 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 test(function() {
     var input = {
@@ -78,5 +79,4 @@
 
     assert_equals(count, 3);
 }, 'ReadableStream.prototype.pipeThrough should work with missing parameters');
-
 </script>

Modified: trunk/LayoutTests/streams/readable-stream-reader-read.html (194365 => 194366)


--- 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)
@@ -2,7 +2,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 var test1 = async_test('Reading twice on a stream that gets closed');
 test1.step(function() {
@@ -150,5 +150,4 @@
         test5.done();
     }));
 });
-
 </script>

Modified: trunk/LayoutTests/streams/reference-implementation/abstract-ops.html (194365 => 194366)


--- 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)
@@ -2,11 +2,10 @@
 <script src=''></script>
 <script src=''></script>
 <script src=''></script>
-<!-- FIXME: enable IsReadableStreamDisturbed -->
 <script>
 const IsReadableStreamDisturbed = internals.isReadableStreamDisturbed.bind(internals);
 
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 test(function() {
     var rs = new ReadableStream();

Modified: trunk/LayoutTests/streams/reference-implementation/bad-strategies.html (194365 => 194366)


--- 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)
@@ -2,7 +2,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 test(function() {
     var theError = new Error('a unique string');
@@ -17,8 +17,8 @@
     }, 'construction should re-throw the error');
 }, 'Writable stream: throwing strategy.size getter');
 
-var test3 = async_test('Writable stream: throwing strategy.size method');
-test3.step(function() {
+var test1 = async_test('Writable stream: throwing strategy.size method');
+test1.step(function() {
     var theError = new Error('a unique string');
     var writeCalled = false;
     var ws = new WritableStream({ },
@@ -31,25 +31,25 @@
     ); // Initial construction should not throw.
 
     ws.write('a').then(
-        test3.step_func(function() { assert_unreached('write should not fulfill'); }),
-        test3.step_func(function(r) {
+        test1.step_func(function() { assert_unreached('write should not fulfill'); }),
+        test1.step_func(function(r) {
             assert_equals(r, theError, 'write should reject with the thrown error');
             writeCalled = true;
         })
     );
 
     ws.closed.then(
-        test3.step_func(function() { assert_unreached('closed should not fulfill'); }),
-        test3.step_func(function(r) {
+        test1.step_func(function() { assert_unreached('closed should not fulfill'); }),
+        test1.step_func(function(r) {
             assert_equals(r, theError, 'closed should reject with the thrown error');
             assert_true(writeCalled);
-            test3.done();
+            test1.done();
         })
     );
 });
 
-var test4 = async_test('Writable stream: invalid strategy.size return value');
-test4.step(function() {
+var test2 = async_test('Writable stream: invalid strategy.size return value');
+test2.step(function() {
     var numberOfCalls = 0;
     var elements = [NaN, -Infinity, +Infinity, -1];
     var theError = [];
@@ -68,18 +68,18 @@
             theError[i] = r;
         };
         ws.write('a').then(
-            test4.step_func(function() { assert_unreached('write should not fulfill'); }),
-            test4.step_func(writeFunction.bind(this, i))
+            test2.step_func(function() { assert_unreached('write should not fulfill'); }),
+            test2.step_func(writeFunction.bind(this, i))
         );
 
         var catchFunction = function(i, e) {
             assert_equals(e, theError[i], 'closed should reject with the error for ' + elements[i]);
             if (++numberOfCalls, elements.length) {
-                test4.done();
+                test2.done();
             }
         };
 
-        ws.closed.catch(test4.step_func(catchFunction.bind(this, i)));
+        ws.closed.catch(test2.step_func(catchFunction.bind(this, i)));
     }
 });
 

Modified: trunk/LayoutTests/streams/reference-implementation/bad-underlying-sinks.html (194365 => 194366)


--- 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)
@@ -3,7 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 test(function() {
     var theError = new Error('a unique string');

Deleted: trunk/LayoutTests/streams/reference-implementation/bad-underlying-sources-expected.txt (194365 => 194366)


--- 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)
@@ -1,23 +0,0 @@
-
-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 
-

Modified: trunk/LayoutTests/streams/reference-implementation/brand-checks.html (194365 => 194366)


--- 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)
@@ -3,7 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 function fakeWritableStream() {
   return {
@@ -52,16 +52,16 @@
     assert_throws(new TypeError(), function() { getter.call(target); }, getterName + ' should throw a TypeError');
 }
 
-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);
+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);
 });
 
-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);
+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);
 });
 
 test(function() {
@@ -69,21 +69,21 @@
     getterThrows(WritableStream.prototype, 'state', realReadableStream());
 }, 'WritableStream.prototype.state enforces a brand check');
 
-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);
+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);
 });
 
-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);
+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);
 });
 
-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);
+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);
 });
 </script>

Modified: trunk/LayoutTests/streams/reference-implementation/byte-length-queuing-strategy.html (194365 => 194366)


--- 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)
@@ -3,7 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 var test1 = async_test('Closing a writable stream with in-flight writes below the high water mark delays the close call properly');
 test1.step(function() {

Modified: trunk/LayoutTests/streams/reference-implementation/count-queuing-strategy.html (194365 => 194366)


--- 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)
@@ -3,26 +3,26 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 test(function() {
     new WritableStream({}, new CountQueuingStrategy({ highWaterMark: 4 })); // Does not throw.
 }, 'Can construct a writable stream with a valid CountQueuingStrategy');
 
-var test4 = async_test('Correctly governs the value of a WritableStream\'s state property (HWM = 0)');
-test4.step(function() {
+var test1 = async_test('Correctly governs the value of a WritableStream\'s state property (HWM = 0)');
+test1.step(function() {
     var dones = Object.create(null);
 
     var ws = new WritableStream(
         {
             write: function(chunk) {
-                return new Promise(test4.step_func(function(resolve) { dones[chunk] = resolve; }));
+                return new Promise(test1.step_func(function(resolve) { dones[chunk] = resolve; }));
             }
         },
         new CountQueuingStrategy({ highWaterMark: 0 })
     );
 
-    setTimeout(test4.step_func(function() {
+    setTimeout(test1.step_func(function() {
         assert_equals(ws.state, 'writable', 'After 0 writes, 0 of which finished, state should be \'writable\'');
 
         var writePromiseA = ws.write('a');
@@ -32,41 +32,41 @@
         assert_equals(ws.state, 'waiting', 'After 2 writes, 0 of which finished, state should be \'waiting\'');
 
         dones.a();
-        writePromiseA.then(test4.step_func(function() {
+        writePromiseA.then(test1.step_func(function() {
             assert_equals(ws.state, 'waiting', 'After 2 writes, 1 of which finished, state should be \'waiting\'');
 
             dones.b();
-            return writePromiseB.then(test4.step_func(function() {
+            return writePromiseB.then(test1.step_func(function() {
                 assert_equals(ws.state, 'writable', 'After 2 writes, 2 of which finished, state should be \'writable\'');
 
                 var writePromiseC = ws.write('c');
                 assert_equals(ws.state, 'waiting', 'After 3 writes, 2 of which finished, state should be \'waiting\'');
 
                 dones.c();
-                return writePromiseC.then(test4.step_func(function() {
+                return writePromiseC.then(test1.step_func(function() {
                     assert_equals(ws.state, 'writable', 'After 3 writes, 3 of which finished, state should be \'writable\'');
 
-                    test4.done();
+                    test1.done();
                 }));
             }));
-        })).catch(test4.step_func(function(e) { assert_unreached("uncaught error " + e); }));
+        })).catch(test1.step_func(function(e) { assert_unreached("uncaught error " + e); }));
     }), 0);
 });
 
-var test5 = async_test('Correctly governs the value of a WritableStream\'s state property (HWM = 4)');
-test5.step(function() {
+var test2 = async_test('Correctly governs the value of a WritableStream\'s state property (HWM = 4)');
+test2.step(function() {
     var dones = Object.create(null);
 
     var ws = new WritableStream(
         {
             write: function(chunk) {
-                return new Promise(test5.step_func(function(resolve) { dones[chunk] = resolve; }));
+                return new Promise(test2.step_func(function(resolve) { dones[chunk] = resolve; }));
             }
         },
         new CountQueuingStrategy({ highWaterMark: 4 })
     );
 
-    setTimeout(test5.step_func(function() {
+    setTimeout(test2.step_func(function() {
         assert_equals(ws.state, 'writable', 'After 0 writes, 0 of which finished, state should be \'writable\'');
 
         var writePromiseA = ws.write('a');
@@ -91,32 +91,32 @@
         assert_equals(ws.state, 'waiting', 'After 7 writes, 0 of which finished, state should be \'waiting\'');
 
         dones.a();
-        writePromiseA.then(test5.step_func(function() {
+        writePromiseA.then(test2.step_func(function() {
             assert_equals(ws.state, 'waiting', 'After 7 writes, 1 of which finished, state should be \'waiting\'');
 
             dones.b();
-            return writePromiseB.then(test5.step_func(function() {
+            return writePromiseB.then(test2.step_func(function() {
                 assert_equals(ws.state, 'waiting', 'After 7 writes, 2 of which finished, state should be \'waiting\'');
 
                 dones.c();
-                return writePromiseC.then(test5.step_func(function() {
+                return writePromiseC.then(test2.step_func(function() {
                     assert_equals(ws.state, 'writable', 'After 7 writes, 3 of which finished, state should be \'writable\'');
 
                     ws.write('h');
                     assert_equals(ws.state, 'waiting', 'After 8 writes, 3 of which finished, state should be \'waiting\'');
 
                     dones.d();
-                    return writePromiseD.then(test5.step_func(function() {
+                    return writePromiseD.then(test2.step_func(function() {
                         assert_equals(ws.state, 'writable', 'After 8 writes, 4 of which finished, state should be \'writable\'');
 
                         ws.write('i');
                         assert_equals(ws.state, 'waiting', 'After 9 writes, 4 of which finished, state should be \'waiting\'');
 
-                        test5.done();
+                        test2.done();
                     }));
                 }));
             }));
-        })).catch(test5.step_func(function(e) { assert_unreached("uncaught error " + e); }));
+        })).catch(test2.step_func(function(e) { assert_unreached("uncaught error " + e); }));
     }), 0);
 });
 </script>

Modified: trunk/LayoutTests/streams/reference-implementation/pipe-through.html (194365 => 194366)


--- 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)
@@ -3,7 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 var test1 = async_test('Piping through a duck-typed pass-through transform stream works');
 test1.step(function() {

Modified: trunk/LayoutTests/streams/reference-implementation/pipe-to-options.html (194365 => 194366)


--- 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)
@@ -3,7 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 var test1 = async_test('Piping with no options and a destination error');
 test1.step(function() {

Modified: trunk/LayoutTests/streams/reference-implementation/pipe-to.html (194365 => 194366)


--- 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)
@@ -3,7 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 var test1 = async_test('Piping from a ReadableStream from which lots of data are readable synchronously');
 test1.step(function() {

Modified: trunk/LayoutTests/streams/reference-implementation/readable-stream-templated.html (194365 => 194366)


--- 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)
@@ -3,14 +3,14 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 function templatedRSClosed(label, factory) {
     test(function() {
     }, 'Running templatedRSClosed with ' + label);
 
-    var test2 = async_test('piping to a WritableStream in the writable state should close the writable stream');
-    test2.step(function() {
+    var test1 = async_test('piping to a WritableStream in the writable state should close the writable stream');
+    test1.step(function() {
         var closeCalled = false;
 
         var rs = factory();
@@ -31,19 +31,19 @@
             }
         });
 
-        startPromise.then(test2.step_func(function() {
+        startPromise.then(test1.step_func(function() {
             assert_equals(ws.state, 'writable', 'writable stream should start in writable state');
 
-            return rs.pipeTo(ws).then(test2.step_func(function() {
+            return rs.pipeTo(ws).then(test1.step_func(function() {
                 assert_true(closeCalled);
                 assert_equals(ws.state, 'closed', 'writable stream should become closed');
-                test2.done('underlying source close should be called');
+                test1.done('underlying source close should be called');
             }));
-        })).catch(test2.step_func(function(e) { assert_unreached(e); }));
+        })).catch(test1.step_func(function(e) { assert_unreached(e); }));
     });
 
-    var test3 = async_test('piping to a WritableStream in the writable state with { preventClose: true } should do nothing');
-    test3.step(function() {
+    var test2 = async_test('piping to a WritableStream in the writable state with { preventClose: true } should do nothing');
+    test2.step(function() {
         var rs = factory();
 
         var startPromise = Promise.resolve();
@@ -62,14 +62,14 @@
             }
         });
 
-        startPromise.then(test3.step_func(function() {
+        startPromise.then(test2.step_func(function() {
             assert_equals(ws.state, 'writable', 'writable stream should start in writable state');
 
-            return rs.pipeTo(ws, { preventClose: true }).then(test3.step_func(function() {
+            return rs.pipeTo(ws, { preventClose: true }).then(test2.step_func(function() {
                 assert_equals(ws.state, 'writable', 'writable stream should still be writable');
-                test3.done('pipeTo promise should be fulfilled');
+                test2.done('pipeTo promise should be fulfilled');
             }));
-        })).catch(test3.step_func(function(e) { assert_unreached(e); }));
+        })).catch(test2.step_func(function(e) { assert_unreached(e); }));
     });
 };
 

Modified: trunk/LayoutTests/streams/reference-implementation/transform-stream-errors.html (194365 => 194366)


--- 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)
@@ -3,7 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 var test1 = async_test('TransformStream errors thrown in transform put the writable and readable in an errored state');
 test1.step(function() {

Modified: trunk/LayoutTests/streams/reference-implementation/transform-stream.html (194365 => 194366)


--- 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)
@@ -3,7 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 test(function() {
     new TransformStream({ transform: function() { } }); // TransformStream constructed with no errors.

Modified: trunk/LayoutTests/streams/reference-implementation/writable-stream-abort.html (194365 => 194366)


--- 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)
@@ -3,7 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 var test1 = async_test('Aborting a WritableStream immediately prevents future writes');
 test1.step(function() {

Modified: trunk/LayoutTests/streams/reference-implementation/writable-stream-expected.txt (194365 => 194366)


--- 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)
@@ -10,5 +10,5 @@
 PASS WritableStream with simple input, processed asynchronously 
 PASS WritableStream with simple input, processed synchronously 
 PASS WritableStream is writable and ready fulfills immediately if the strategy does not apply backpressure 
-PASS Fulfillment value of ws.write() call must be undefined even if the underlying sink returns a non-undefined ovalue 
+PASS Fulfillment value of ws.write() call must be undefined even if the underlying sink returns a non-undefined value 
 

Modified: trunk/LayoutTests/streams/reference-implementation/writable-stream.html (194365 => 194366)


--- 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)
@@ -3,7 +3,7 @@
 <script src=''></script>
 <script src=''></script>
 <script>
-// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+// This is updated till https://github.com/whatwg/streams/commit/4ba861e6f60c248060811830e11271c84b439cc3
 
 function writeArrayToStream(array, writableStream) {
     array.forEach(function(chunk) { writableStream.write(chunk); })
@@ -239,7 +239,7 @@
     }));
 });
 
-var test10 = async_test('Fulfillment value of ws.write() call must be undefined even if the underlying sink returns a non-undefined ovalue');
+var test10 = async_test('Fulfillment value of ws.write() call must be undefined even if the underlying sink returns a non-undefined value');
 test10.step(function() {
     var ws = new WritableStream({
         write: function() {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to