blob: 41454b71c436584b17e3839f02b2b17cd2c9fef3 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>Notifications: Creating notifications should fail when no permission has been granted.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
</head>
<body>
<script>
// Tests that Notification.requestPermission() does not cause a crash when
// no callback has been supplied (which is optional).
test(function (test) {
Notification.requestPermission();
}, 'Notification.requestPermission() without a callback does not crash.');
</script>
</body>
</html>