Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / notifications / request-permission-no-callback.html
blob41454b71c436584b17e3839f02b2b17cd2c9fef3
1 <!doctype html>
2 <html>
3 <head>
4 <title>Notifications: Creating notifications should fail when no permission has been granted.</title>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <script>
10 // Tests that Notification.requestPermission() does not cause a crash when
11 // no callback has been supplied (which is optional).
12 test(function (test) {
13 Notification.requestPermission();
15 }, 'Notification.requestPermission() without a callback does not crash.');
16 </script>
17 </body>
18 </html>