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

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

Issue 1259193003: Add priority to Notification & NotificationOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@actions3
Patch Set: Lowest to highest enum order Created 5 years, 4 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/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 7e02473d68739bdca4ba3da1a38184e35ac3a928..f60c10e53f65a4489632d5c4ebecb799da5788de 100644
--- a/LayoutTests/http/tests/notifications/notification-properties.html
+++ b/LayoutTests/http/tests/notifications/notification-properties.html
@@ -18,6 +18,7 @@
lang: "nl-NL",
body: "Hallo, wereld!",
tag: "notification",
+ priority: "high",
icon: "http://localhost/my_icon.png",
silent: true,
data: "my data",
@@ -38,6 +39,7 @@
assert_equals(notification.lang, options.lang);
assert_equals(notification.body, options.body);
assert_equals(notification.tag, options.tag);
+ assert_equals(notification.priority, options.priority);
assert_equals(notification.icon, options.icon);
assert_true(notification.silent);
assert_equals(notification.data, options.data);
@@ -60,6 +62,7 @@
assert_equals(emptyNotification.lang, "");
assert_equals(emptyNotification.body, "");
assert_equals(emptyNotification.tag, "");
+ assert_equals(emptyNotification.priority, "normal");
assert_equals(emptyNotification.icon, "");
assert_equals(notification.vibrate, null);
assert_false(emptyNotification.silent);

Powered by Google App Engine
This is Rietveld 408576698