Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 9 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /notifications/instance.https.window.html - WPT Dashboard Interop Dashboard
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
// META: script=/service-workers/service-worker/resources/test-helpers.sub.js
// META: script=resources/helpers.js
// META: script=resources/custom-data.js
// META: script=instance-checks.js
promise_setup(async () => {
await trySettingPermission("granted");
});
notification_instance_test(() => {
const n = new Notification(...notification_args);
n.close();
return n;
}, "new Notification()");
service_worker_test("instance-sw.js", "Service worker test setup");