[Streams API] Update readable-stream-controller-error tests against latest reference
authorcalvaris@igalia.com <calvaris@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Oct 2015 16:34:44 +0000 (16:34 +0000)
committercalvaris@igalia.com <calvaris@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Oct 2015 16:34:44 +0000 (16:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=149700

Reviewed by Darin Adler.

* streams/readable-stream-controller-error.html: Updated tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191292 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/streams/readable-stream-controller-error.html

index c501a85..40da3ad 100644 (file)
@@ -1,3 +1,12 @@
+2015-10-19  Xabier Rodriguez Calvar  <calvaris@igalia.com>
+
+        [Streams API] Update readable-stream-controller-error tests against latest reference
+        https://bugs.webkit.org/show_bug.cgi?id=149700
+
+        Reviewed by Darin Adler.
+
+        * streams/readable-stream-controller-error.html: Updated tests.
+
 2015-10-19  Youenn Fablet  <youenn.fablet@crf.canon.fr>
 
         [Streams API] Implement ReadableStream tee
index 8740a42..e351398 100644 (file)
@@ -2,6 +2,8 @@
 <script src='../resources/testharness.js'></script>
 <script src='../resources/testharnessreport.js'></script>
 <script>
+// This is updated till https://github.com/whatwg/streams/commit/ec5ffa036308d9f6350d2946560d48cdbf090939
+
 var test1 = async_test('Erroring a ReadableStream after checking closed should reject ReadableStreamReader closed promise');
 test1.step(function() {
     var controller;
@@ -35,7 +37,7 @@ test2.step(function() {
     controller.error(rsError);
 
     // Let's call getReader twice to ensure that stream is not locked to a reader.
-    rs.getReader();
+    rs.getReader().releaseLock();
     rs.getReader().closed.then(test2.step_func(function() {
         assert_unreached("closed promise should not be resolved when stream is errored");
     }), test2.step_func(function(err) {