blob: a6f951e5ae49e055e7979d998dff0619a0aaaacb [file] [log] [blame]
'use strict';
// Depends on /shared_utils.js
function backgroundFetchTest(func, description) {
promise_test(async t => {
const serviceWorkerRegistration = await registerAndActivateServiceWorker(t);
return func(t, serviceWorkerRegistration.backgroundFetch);
}, description);
}
let _nextBackgroundFetchTag = 0;
function uniqueTag() {
return 'tag' + _nextBackgroundFetchTag++;
}