4 <title>Notifications: Simulating a click should call the onclick event.
</title>
5 <script src=
"../resources/testharness.js"></script>
6 <script src=
"../resources/testharnessreport.js"></script>
7 <script src=
"resources/test-helpers.js"></script>
11 // Tests that Shared Worker-bound notifications will have their onclick
12 // event fired when they're being clicked on. When the test is being ran
13 // manually, grant Notification permission and click on the notification.
14 if (window
.testRunner
)
15 testRunner
.setPermission('notifications', 'granted', location
.origin
, location
.origin
);
17 sharedWorkerTest("resources/click-event-test.js");