blob: 14f3b2604d68eff19954c3cf7fe44989ac813d6f [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>Notifications: Programatically closing a notification should fire the onclose event.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="resources/test-helpers.js"></script>
</head>
<body>
<script>
// Tests that Dedicated Worker-bound notifications will fire the onclose
// event when they have their close() method called. When the test is being
// ran manually, grant Notification permission first.
if (window.testRunner)
testRunner.setPermission('notifications', 'granted', location.origin, location.origin);
dedicatedWorkerTest("resources/close-event-test.js");
</script>
</body>
</html>