blob: 737ec58a147efae316db46b950b4841e58ccc64c [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function log(message)
{
document.getElementById("result").innerHTML += message + "<br>";
}
function runTests()
{
if (window.testRunner) {
testRunner.grantWebNotificationPermission("file://");
testRunner.dumpAsText();
if (testRunner.dumpNotifications)
testRunner.dumpNotifications();
testRunner.waitUntilDone();
}
if (!window.webkitNotifications) {
log("FAIL: No webkitNotifications interface!");
}
var M = window.webkitNotifications.createNotification("http://0.0.0.0/my_icon.png", "New E-mail", "Meet me tonight at 8!");
M.ondisplay = function() { testRunner.notifyDone(); }
M.show();
}
</script>
</head>
<body>
<p>Sending notifications with permission...</p>
<script type="text/javascript">
runTests();
</script>
<div id="result"></div>
</body>
</html>