blob: 5c5ff24f02f79652a0b8f0eed1f756b81fab087e [file] [log] [blame]
<!doctype html>
<title>Notifications: Simulating a click should call the onclick event.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="resources/test-helpers.js"></script>
// Tests that Shared Worker-bound notifications will have their onclick
// event fired when they're being clicked on. When the test is being ran
// manually, grant Notification permission and click on the notification.
if (window.testRunner)
testRunner.setPermission('notifications', 'granted', location.origin, location.origin);