blob: 28f3ce5cd603df7fb9368e31c6b706264e4ab5a3 [file] [log] [blame]
<!doctype html>
<html>
<head>
<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>
</head>
<body>
<script>
// Tests that Dedicated 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);
dedicatedWorkerTest("resources/click-event-test.js");
</script>
</body>
</html>