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.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-mai
l", "Meet me tonight at 8!"); | |
24 M.dir = "rtl"; | |
25 M.show(); | |
26 } | |
27 </script> | |
28 </head> | |
29 <body> | |
30 <p>Showing a notification with direction "rtl"...</p> | |
31 | |
32 <div id="result"></div> | |
33 | |
34 <script type="text/javascript"> | |
35 runTests(); | |
36 </script> | |
37 | |
38 </body> | |
39 </html> | |
OLD | NEW |