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