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

Side by Side Diff: content/test/data/background_sync/sync_event_rejected.js

Issue 1282013004: BackgroundSyncManager tracks client registrations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed test Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 this.onsync = function(event) {
6 if (!('waitUntil' in event)) {
7 console.log("waitUntil missing on event");
8 return;
9 }
10 event.waitUntil(new Promise(function(resolve, reject) {
11 setTimeout(function() {
12 console.log('Rejecting onsync event');
13 reject();
14 }, 5);
15 }));
16 };
OLDNEW
« no previous file with comments | « content/test/data/background_sync/sync_event_interface.js ('k') | content/test/data/service_worker/sync.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698