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 N = window.webkitNotifications.createNotification("http://localhost/my_icon.png", "New E-mail", "Meet me tonight at 8!");
22 N.addEventListener("display", function(e) { log("PASS: addEventListener(display) non-capture callback invoked"); });
23 N.ondisplay = function(e) { log("PASS: ondisplay attribute event callback invoked."); }
24 N.addEventListener("display", function(e) { log("PASS: addEventListener(display) capture callback invoked"); e.stopPropagation(); }, true );
31 <p>Sending notifications with permission...</p>
32 <div id="result"></div>
34 <script type="text/javascript">