Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: LayoutTests/fast/notifications/notifications-window-close-crash.html

Issue 187323005: Revert of Remove support for legacy WebKit Notifications (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
+

Powered by Google App Engine
This is Rietveld 408576698