blob: aa67dd1a5f62b87c7e8aa9b1b4fdb5feebfe835f [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();
}
if (!window.webkitNotifications) {
log("FAIL: No webkitNotifications interface!");
}
var M = window.webkitNotifications.createNotification("", "New E-mail", "Meet me tonight at 8!");
M.dir = "rtl";
M.show();
}
</script>
</head>
<body>
<p>Showing a notification with direction "rtl"...</p>
<div id="result"></div>
<script type="text/javascript">
runTests();
</script>
</body>
</html>