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

Side by Side Diff: chrome/test/data/notifications/notification-double-close.html

Issue 752533002: Add a browser test to verify that double-closing a notification does not crash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/notifications/notification_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>Verifies that double-closing a notification doesn't crash.</title>
5 <meta charset="utf-8">
6 </head>
7 <body>
8 <script>
9 function createNotification(iconUrl, title, text, tag) {
10 var notification = new Notification(title, {
11 icon: iconUrl,
12 body: text,
13 tag: tag
14 });
15
16 notification.onshow = function() {
17 window.domAutomationController.send("0"); // success
18 };
19
20 notification.onerror = function() {
21 window.domAutomationController.send("-1"); // failure
22 };
23
24 notification.onclose = function() {
25 notification.close();
26 };
27 }
28 </script>
29 </body>
30 </html>
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698