blob: 367ef4a4fb7f7d1ea680ee4f476b1a26627c57eb [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();
testRunner.waitUntilDone();
testRunner.setCanOpenWindows();
}
win = window.open('about:blank');
if (win.webkitNotifications === undefined) {
log("PASS");
} else {
notificationCenter=win.webkitNotifications;
win.close();
try {
n=notificationCenter.createNotification('');
} catch (e) {}
// Just make sure we don't crash.
log("PASS");
}
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</head>
<body>
<div id="result"></div>
<script type="text/javascript">
runTests();
</script>
</body>
</html>