e94cf05d14fbb37d70d8a3b516e6b6e351ce7129
[WebKit-https.git] / LayoutTests / fast / notifications / notifications-request-permission.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <script type="text/javascript">
5         function log(message)
6         {
7             document.getElementById("result").innerHTML += message + "<br>";
8         }
9         
10         function runTests()
11         {
12             if (window.testRunner) {
13                 testRunner.dumpAsText();
14             }
15
16             if (!window.webkitNotifications) {
17                 log("FAIL: No webkitNotifications interface!");
18             }
19             
20             var N = window.webkitNotifications.requestPermission(
21                 function() { log("PASS: Permission callback invoked."); }
22             );
23         }
24     </script>
25 </head>
26 <body>
27     <p>Requesting notification permission...</p>
28     
29 <div id="result"></div>    
30 <script type="text/javascript">
31 runTests();
32 </script>
33
34
35 </body>
36 </html>