blob: 3f4546e9b8c3a4cc932a0a59d818494b50f6ae4f [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>Notifications: Creating a notification should call the onshow event.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="resources/test-helpers.js"></script>
<script src="../resources/permissions-helper.js"></script>
</head>
<body>
<script>
// Tests that Document-bound notifications will have their onshow event
// fired when they're created. When the test is being run manually, grant
// notification permission when prompted.
PermissionsHelper.setPermission('notifications', 'granted').then(function() {
var script = document.createElement('script');
script.src = 'resources/show-event-test.js';
document.body.appendChild(script);
});
</script>
</body>
</html>