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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/sync-xhr-doesnt-deadlock.js

Issue 573293005: syncxhr doesn't deadlock layout test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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: LayoutTests/http/tests/serviceworker/resources/sync-xhr-doesnt-deadlock.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/sync-xhr-doesnt-deadlock.js b/LayoutTests/http/tests/serviceworker/resources/sync-xhr-doesnt-deadlock.js
new file mode 100644
index 0000000000000000000000000000000000000000..4583ae32a060f9815b31c1e3b10444d9cc701b02
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/sync-xhr-doesnt-deadlock.js
@@ -0,0 +1,5 @@
+self.onfetch = function(event) {
+ if (event.request.url.indexOf('sync-xhr-doesnt-deadlock.data') == -1)
horo 2014/09/18 01:04:29 nit: Indent two spaces. http://www.chromium.org/bl
+ return;
+ event.respondWith(fetch('404resource?bustcache=' + Date.now()));
+}

Powered by Google App Engine
This is Rietveld 408576698