Skip to content

Truly independent web browser

567 B
Raw Blame
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
    // The user dismissing the notification fires close on the page.
    asyncTest(async done => {
        await internals.setPermission("notifications", "granted");
        const notification = new Notification("Dismiss me");
        notification.onshow = () => internals.dismissNotificationForTesting(notification);
        notification.onclose = () => {
            println("close");
            done();
        };
        notification.onerror = () => { println("error"); done(); };
    });
</script>