3 <script type="text/javascript">
5 // Timeout is to ensure that the iframe was removed.
6 setTimeout(isDone,500);
10 document.getElementById("result").innerHTML += message + "<br>";
15 if (window.layoutTestController) {
16 layoutTestController.dumpAsText();
17 layoutTestController.waitUntilDone();
20 if (!window.webkitNotifications) {
21 log("FAIL: No webkitNotifications interface!");
24 document.getElementById("test").innerHTML="Pass if notification is cancelled";
29 if (window.layoutTestController) {
30 layoutTestController.notifyDone();
36 <body onload="runTests();">
37 <p>Requesting and cancelling notification permission...</p>
39 <div id="result"></div>
41 <iframe src="resources/notifications-cancel-request-permission.html" width=800 height=800></iframe>