blob: e94cf05d14fbb37d70d8a3b516e6b6e351ce7129 [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.dumpAsText();
}
if (!window.webkitNotifications) {
log("FAIL: No webkitNotifications interface!");
}
var N = window.webkitNotifications.requestPermission(
function() { log("PASS: Permission callback invoked."); }
);
}
</script>
</head>
<body>
<p>Requesting notification permission...</p>
<div id="result"></div>
<script type="text/javascript">
runTests();
</script>
</body>
</html>