Index: content/test/data/service_worker/sync.js |
diff --git a/content/test/data/service_worker/sync.js b/content/test/data/service_worker/sync.js |
deleted file mode 100644 |
index 941ea2de93710030097e7f97825fbe0c9a73e2d1..0000000000000000000000000000000000000000 |
--- a/content/test/data/service_worker/sync.js |
+++ /dev/null |
@@ -1,20 +0,0 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-var code = 404; |
- |
-this.onfetch = function(event) { |
- response = new Response(new Blob(), { |
- status: code, |
- statusText: 'OK' |
- }); |
- |
- event.respondWith(new Promise(function(r) { |
- setTimeout(function() { r(response); }, 5); |
- })); |
-}; |
- |
-this.onsync = function(event) { |
- code = 200; |
-}; |