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

Unified Diff: LayoutTests/http/tests/notifications/notification-properties.html

Issue 965463003: Remove an old constructor from WebNotificationData, add a layout test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/notifications/notification-properties.html
diff --git a/LayoutTests/http/tests/notifications/notification-properties.html b/LayoutTests/http/tests/notifications/notification-properties.html
index a2d4e0bb6bcb28174a851c2acd10cc9e5b7d2f99..0cf3095a40660075d69f15dbbc5798401d355f68 100644
--- a/LayoutTests/http/tests/notifications/notification-properties.html
+++ b/LayoutTests/http/tests/notifications/notification-properties.html
@@ -19,7 +19,8 @@
lang: "nl-NL",
body: "Hallo, wereld!",
tag: "notification",
- icon: "http://localhost/my_icon.png"
+ icon: "http://localhost/my_icon.png",
+ silent: true
};
var notification = new Notification("My Notification", options);
@@ -30,6 +31,7 @@
assert_equals(notification.body, options.body);
assert_equals(notification.tag, options.tag);
assert_equals(notification.icon, options.icon);
+ assert_true(notification.silent);
var emptyNotification = new Notification("My Notification");
@@ -39,6 +41,7 @@
assert_equals(emptyNotification.body, "");
assert_equals(emptyNotification.tag, "");
assert_equals(emptyNotification.icon, "");
+ assert_false(emptyNotification.silent);
var invalidIconNotification = new Notification("My Notification", {
icon: "http://test:test/"
« no previous file with comments | « no previous file | LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698