| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script type="text/javascript"> | |
| 4 | |
| 5 // Timeout is to ensure that the iframe was removed. | |
| 6 setTimeout(isDone,500); | |
| 7 | |
| 8 function log(message) | |
| 9 { | |
| 10 document.getElementById("result").innerHTML += message + "<br>"; | |
| 11 } | |
| 12 | |
| 13 function runTests() | |
| 14 { | |
| 15 if (window.testRunner) { | |
| 16 testRunner.dumpAsText(); | |
| 17 testRunner.waitUntilDone(); | |
| 18 } | |
| 19 | |
| 20 if (!window.webkitNotifications) { | |
| 21 log("FAIL: No webkitNotifications interface!"); | |
| 22 } | |
| 23 | |
| 24 document.getElementById("test").innerHTML="Pass if notification is c
ancelled"; | |
| 25 } | |
| 26 | |
| 27 function isDone() | |
| 28 { | |
| 29 if (window.testRunner) { | |
| 30 testRunner.notifyDone(); | |
| 31 } | |
| 32 } | |
| 33 | |
| 34 </script> | |
| 35 </head> | |
| 36 <body onload="runTests();"> | |
| 37 <p>Requesting and cancelling notification permission...</p> | |
| 38 | |
| 39 <div id="result"></div> | |
| 40 <div id="test"> | |
| 41 <iframe src="resources/notifications-cancel-request-permission.html" width=800 h
eight=800></iframe> | |
| 42 </div> | |
| 43 </body> | |
| 44 </html> | |
| OLD | NEW |