blob: 82cb0926886ac4eb3ed0eb2072a6eb5ce8e2eb3e [file] [log] [blame]
<!doctype html>
<meta charset="utf-8">
<title>Background Fetch API: BackgroundFetchedEvent tests</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/serviceworker/resources/test-helpers.js"></script>
<!-- TODO(peter): Upstream this test to WPT when the directory has been imported
and the name of the event has been settled on. -->
<h1>BackgroundFetchedEvent</h1>
<p>This test validates that the BackgroundFetchedEvent is exposed, and can be
constructed with an id and a sequence of settled responses.</p>
<script>
'use strict';
// This test needs to be run in a Service Worker.
service_worker_test('resources/background-fetched-event-worker.js');
</script>