43897c9ab946c3a26c51230d6c5e2b550ec01943
[WebKit-https.git] / LayoutTests / fast / notifications / resources / notifications-cancel-request-permission.html
1 <html>
2 <head>
3     <script type="text/javascript">
4         function log(message)
5         {
6             parent.document.getElementById("result").innerHTML += message + "<br>";
7         }
8         
9         function runTests()
10         {
11             if (window.testRunner) {
12                 testRunner.dumpAsText();
13             }
14
15             if (window.testRunner) {
16                 testRunner.ignoreLegacyWebNotificationPermissionRequests();
17             }
18
19             window.webkitNotifications.requestPermission(
20                 function() { log("FAIL: Permission callback invoked."); }
21             );
22
23         }
24     </script>
25 </head>
26 <body onload="runTests();">
27 </body>
28 </html>