5c722ed9f296e5df71aedb653569dc7e2564af5f
[WebKit-https.git] / LayoutTests / fast / notifications / notifications-no-icon.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.grantWebNotificationPermission("file://");
14                 testRunner.dumpAsText();
15                 if (testRunner.dumpNotifications)
16                     testRunner.dumpNotifications();
17             }
18
19             if (!window.webkitNotifications) {
20                 log("FAIL: No webkitNotifications interface!");
21             }
22             
23             var M = window.webkitNotifications.createNotification("", "New E-mail", "Meet me tonight at 8!");
24             M.show();
25         }
26     </script>
27 </head>
28 <body>
29 <p>Sending notifications with permission...</p>
30     
31     
32 <script type="text/javascript">
33 runTests();
34 </script>
35
36 <div id="result"></div>
37 </body>
38 </html>