blob: cba36f3d47cab541ce55ef6f27e03462f50e0c08 [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) {
// NO PERMISSION testRunner.grantWebNotificationPermission("file://");
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
if (!window.Notification) {
log("FAIL: No Notification constructor!");
}
var N = new Notification("Hello world");
N.onshow = function() { log("FAIL: show event fired."); }
N.onerror = function() { log("PASS: error event fired."); }
setTimeout(function() { testRunner.notifyDone(); }, 100);
}
</script>
</head>
<body>
<p>Sending notifications without permission...</p>
<div id="result"></div>
<script type="text/javascript">
runTests();
</script>
</body>
</html>