4 <title>Notifications: The
"tag" property is able to replace existing notifications.
</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 can be replaced using the "tag"
13 // property in the constructor's options. When the test is being ran
14 // manually, grant Notification permission first and verify that only a
15 // single notification will be shown at the end of the test.
16 PermissionsHelper
.setPermission('notifications', 'granted').then(function() {
17 var script
= document
.createElement('script');
18 script
.src
= 'resources/update-event-test.js';
19 document
.body
.appendChild(script
);