| Index: content/test/data/service_worker/sync.js
|
| diff --git a/content/test/data/service_worker/fetch_event.js b/content/test/data/service_worker/sync.js
|
| similarity index 84%
|
| copy from content/test/data/service_worker/fetch_event.js
|
| copy to content/test/data/service_worker/sync.js
|
| index 67408ddd80520ada8c0c0b990ea2a9d681354834..993e771778a505bc5ff78dedbe29a9d5655026fd 100644
|
| --- a/content/test/data/service_worker/fetch_event.js
|
| +++ b/content/test/data/service_worker/sync.js
|
| @@ -2,9 +2,11 @@
|
| // 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({
|
| - statusCode: 200,
|
| + statusCode: code,
|
| statusText: 'OK',
|
| method: 'GET',
|
| headers: {
|
| @@ -17,3 +19,7 @@ this.onfetch = function(event) {
|
| setTimeout(function() { r(response); }, 5);
|
| }));
|
| };
|
| +
|
| +this.onsync = function(event) {
|
| + code = 200;
|
| +};
|
|
|