OLD | NEW |
| (Empty) |
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 testRunner.waitUntilDone(); | |
15 testRunner.setCanOpenWindows(); | |
16 } | |
17 | |
18 win = window.open('about:blank'); | |
19 if (win.webkitNotifications === undefined) { | |
20 log("PASS"); | |
21 } else { | |
22 notificationCenter=win.webkitNotifications; | |
23 win.close(); | |
24 try { | |
25 n=notificationCenter.createNotification(''); | |
26 } catch (e) {} | |
27 // Just make sure we don't crash. | |
28 log("PASS"); | |
29 } | |
30 | |
31 if (window.testRunner) | |
32 testRunner.notifyDone(); | |
33 } | |
34 </script> | |
35 </head> | |
36 <body> | |
37 <div id="result"></div> | |
38 | |
39 <script type="text/javascript"> | |
40 runTests(); | |
41 </script> | |
42 | |
43 </body> | |
44 </html> | |
OLD | NEW |