4 <script type="text/javascript">
7 document.getElementById("result").innerHTML += message + "<br>";
12 if (window.layoutTestController) {
13 layoutTestController.grantDesktopNotificationPermission("file://");
14 layoutTestController.dumpAsText();
17 if (!window.webkitNotifications) {
18 log("FAIL: No webkitNotifications interface!");
21 var M = window.webkitNotifications.createNotification("", "New E-mail", "Meet me tonight at 8!");
27 <p>Sending notifications with permission...</p>
30 <script type="text/javascript">
34 <div id="result"></div>