Index: LayoutTests/fast/notifications/notifications-window-close-crash.html |
diff --git a/LayoutTests/fast/notifications/notifications-window-close-crash.html b/LayoutTests/fast/notifications/notifications-window-close-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9447ffe8fded9574af9508f3a3eef9a0324fae51 |
--- /dev/null |
+++ b/LayoutTests/fast/notifications/notifications-window-close-crash.html |
@@ -0,0 +1,23 @@ |
+<html> |
+ <head> |
+ <script> |
+ function runTest() |
+ { |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ else |
+ { |
+ var win = window.open("about:blank"); |
+ var notification = win.webkitNotifications.createNotification(''); |
+ notification.show(); |
+ win.close(); |
+ notification.cancel(); |
+ } |
+ } |
+ </script> |
+ </head> |
+ <body onload="runTest()"> |
+ <p>This test needs to run manually and cannot run inside DumpRenderTree. Passes if it does not crash on running the test alongwith with a couple of page reloads.</p> |
+ </body> |
+</html> |
+ |