4 <title>Notifications: Programatically closing a notification should fire the onclose event.
</title>
5 <script src=
"../resources/testharness.js"></script>
6 <script src=
"../resources/testharnessreport.js"></script>
7 <script src=
"resources/test-helpers.js"></script>
8 <script src=
"../resources/permissions-helper.js"></script>
12 // Tests that Document-bound notifications will fire the onclose event
13 // when they have their close() method called. When the test is being ran
14 // manually, grant Notification permission first.
15 PermissionsHelper
.setPermission('notifications', 'granted').then(function() {
16 var script
= document
.createElement('script');
17 script
.src
= 'resources/close-event-test.js';
18 document
.body
.appendChild(script
);