| Index: chrome/test/data/notifications/notification-double-close.html
|
| diff --git a/chrome/test/data/notifications/notification-double-close.html b/chrome/test/data/notifications/notification-double-close.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..45ae47bf7b2d3831b447b0d509d9c7be5e1a1f27
|
| --- /dev/null
|
| +++ b/chrome/test/data/notifications/notification-double-close.html
|
| @@ -0,0 +1,30 @@
|
| +<!doctype html>
|
| +<html>
|
| + <head>
|
| + <title>Verifies that double-closing a notification doesn't crash.</title>
|
| + <meta charset="utf-8">
|
| + </head>
|
| + <body>
|
| + <script>
|
| + function createNotification(iconUrl, title, text, tag) {
|
| + var notification = new Notification(title, {
|
| + icon: iconUrl,
|
| + body: text,
|
| + tag: tag
|
| + });
|
| +
|
| + notification.onshow = function() {
|
| + window.domAutomationController.send("0"); // success
|
| + };
|
| +
|
| + notification.onerror = function() {
|
| + window.domAutomationController.send("-1"); // failure
|
| + };
|
| +
|
| + notification.onclose = function() {
|
| + notification.close();
|
| + };
|
| + }
|
| + </script>
|
| + </body>
|
| +</html>
|
|
|