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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/request-body-blob-crash-worker.js

Issue 1985383002: Logging and check fail crbug/612358 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleaned up logging Created 4 years, 7 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/chromium/resources/request-body-blob-crash-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/request-body-blob-crash-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/request-body-blob-crash-worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..8a9c44bab98ee31d2e4c168e78a4c0249822572e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/request-body-blob-crash-worker.js
@@ -0,0 +1,12 @@
+self.addEventListener('fetch', event => {
+ if (event.request.url.indexOf('?post-with-blob-body') == -1)
+ return;
+ event.respondWith(
+ event.request.text().then(resp => {
+ if (resp.indexOf('it\'s me the blob') == -1)
+ return new Response('fail');
+ if (resp.indexOf('and more blob!') == -1)
+ return new Response('fail');
+ return new Response('Pass');
+ }));
+ });

Powered by Google App Engine
This is Rietveld 408576698