<html>
<head>
<title>Service Worker cancel pending job</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
promise_test(async (test) => {
    const worker = new Worker("/WebKit/service-workers/service-worker-pending-job-cancel-worker.js");
    await new Promise(resolve => worker.onmessage = resolve);
    worker.terminate();
}, "Launch a worker and terminate it before its service worker job is finished");
</script>
</body>
</html>
