https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d474c2a0587f5ff6ae05fde66ac6f43a106d0d05 authored by Anne van Kesteren on 16 November 2018, 12:38:42 UTC
EventSource: test U+0000 in ID better
Tip revision: d474c2a
idlharness.https.any.js
// META: global=window,worker
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

'use strict';

// https://wicg.github.io/background-fetch/

idl_test(
  ['background-fetch'],
  ['service-workers', 'dedicated-workers', 'dom'],
  idl_array => {
    const isServiceWorker = location.pathname.includes('.serviceworker.');
    if (isServiceWorker) {
      idl_array.add_objects({
        ServiceWorkerGlobalScope: ['self'],
        ServiceWorkerRegistration: ['registration'],
        BackgroundFetchManager: ['registration.backgroundFetch'],
        BackgroundFetchEvent: ['new BackgroundFetchEvent("type")'],
        BackgroundFetchUpdateEvent: ['new BackgroundFetchUpdateEvent("type")'],
      });
    }
  }
);
back to top