| Index: LayoutTests/fast/notifications/notification-after-close.html
|
| diff --git a/LayoutTests/fast/notifications/notification-after-close.html b/LayoutTests/fast/notifications/notification-after-close.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..367ef4a4fb7f7d1ea680ee4f476b1a26627c57eb
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/notifications/notification-after-close.html
|
| @@ -0,0 +1,44 @@
|
| +<!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>
|
|
|