Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/respond-with-response-body-with-invalid-chunk-iframe.html

Issue 2146773002: [Stream] Notify ReadObserver of Stream abortion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/respond-with-response-body-with-invalid-chunk-iframe.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/respond-with-response-body-with-invalid-chunk-iframe.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/respond-with-response-body-with-invalid-chunk-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..b42872624249b0284db3b8d722ffa4cb90a2c094
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/respond-with-response-body-with-invalid-chunk-iframe.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>respond-with-response-stream-with-invalid-chunk</title>
tyoshino (SeeGerritForStatus) 2016/07/13 06:09:35 stream -> body? or use stream for there and the f
yhirano 2016/07/13 10:35:56 Done.
+<body></body>
+<script>
+fetch('body-stream-with-invalid-chunk').then(resp => {
+ const reader = resp.body.getReader();
+ return reader.read().then(
+ () => parent.done('FAIL: read() should be rejected'),
+ () => parent.done('Pass'));
tyoshino (SeeGerritForStatus) 2016/07/13 06:09:35 PASS?
yhirano 2016/07/13 10:35:56 Done.
+ }).catch(e => parent.done('FAIL: ' + e));
+</script>

Powered by Google App Engine
This is Rietveld 408576698