imported/w3c/web-platform-tests/fetch/api/response/response-stream-disturbed-6.html...
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 May 2018 05:31:49 +0000 (05:31 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 May 2018 05:31:49 +0000 (05:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=185549

Reviewed by Chris Dumez.

LayoutTests/imported/w3c:

Catch any potential rejected promise.

* web-platform-tests/fetch/api/response/response-stream-disturbed-6.html:

LayoutTests:

* TestExpectations:

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

LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-stream-disturbed-6.html

index 17ae6fe..9771127 100644 (file)
@@ -1,3 +1,12 @@
+2018-05-14  Youenn Fablet  <youenn@apple.com>
+
+        imported/w3c/web-platform-tests/fetch/api/response/response-stream-disturbed-6.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=185549
+
+        Reviewed by Chris Dumez.
+
+        * TestExpectations:
+
 2018-05-14  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         [Extra zoom mode] Google search results are excessively zoomed in
index e9dbf57..e5bb594 100644 (file)
@@ -656,7 +656,6 @@ webkit.org/b/161312 imported/w3c/web-platform-tests/html/semantics/document-meta
 
 webkit.org/b/178241 imported/w3c/web-platform-tests/fetch/api/basic/integrity.html [ Pass Failure ]
 webkit.org/b/178241 imported/w3c/web-platform-tests/fetch/api/basic/integrity-worker.html [ Pass Failure ]
-imported/w3c/web-platform-tests/fetch/api/response/response-stream-disturbed-6.html [ Pass Failure ]
 
 imported/w3c/web-platform-tests/fetch/http-cache/partial.html [ Failure ]
 webkit.org/b/159724 imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-post-upload.htm [ Failure Pass ]
index ed4c272..ef33796 100644 (file)
@@ -1,5 +1,16 @@
 2018-05-14  Youenn Fablet  <youenn@apple.com>
 
+        imported/w3c/web-platform-tests/fetch/api/response/response-stream-disturbed-6.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=185549
+
+        Reviewed by Chris Dumez.
+
+        Catch any potential rejected promise.
+
+        * web-platform-tests/fetch/api/response/response-stream-disturbed-6.html:
+
+2018-05-14  Youenn Fablet  <youenn@apple.com>
+
         Enable service-worker/navigation-redirect-body.https.html and service-worker/postmessage.https.html
         https://bugs.webkit.org/show_bug.cgi?id=185605
 
index 15c8dfd..30492d4 100644 (file)
@@ -65,7 +65,7 @@ test(() => {
   const reader = stream.getReader();
   assert_false(response.bodyUsed, "After getting a reader");
 
-  reader.read();
+  reader.read().then(() => { }, () => { });
   assert_true(response.bodyUsed, "After calling stream.read()");
 }, "An errored stream on which read() has been called");
 
@@ -81,7 +81,7 @@ test(() => {
   const reader = stream.getReader();
   assert_false(response.bodyUsed, "After getting a reader");
 
-  reader.cancel();
+  reader.cancel().then(() => { }, () => { });
   assert_true(response.bodyUsed, "After calling stream.cancel()");
 }, "An errored stream on which cancel() has been called");