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

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

Issue 1309273007: Add requireInteraction to Notification & NotificationOptions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@constructor
Patch Set: Add to NotificationDataTest.cpp 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
« 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 2dde81cbe2db1a5cc7258cdce7c22b3c75c7152d..cddb8d0ea27b9e7b3ed345a01a268564961e2256 100644
--- a/LayoutTests/http/tests/notifications/notification-properties.html
+++ b/LayoutTests/http/tests/notifications/notification-properties.html
@@ -20,6 +20,7 @@
tag: "notification",
icon: "http://localhost/my_icon.png",
silent: true,
+ requireInteraction: true,
data: "my data",
actions: []
};
@@ -40,6 +41,7 @@
assert_equals(notification.tag, options.tag);
assert_equals(notification.icon, options.icon);
assert_true(notification.silent);
+ assert_true(notification.requireInteraction);
assert_equals(notification.data, options.data);
// Only the first maxActions actions should be reflected.
assert_object_equals(notification.actions, options.actions.slice(0, Notification.maxActions));
@@ -63,6 +65,7 @@
assert_equals(emptyNotification.icon, "");
assert_equals(notification.vibrate, null);
assert_false(emptyNotification.silent);
+ assert_false(emptyNotification.requireInteraction);
assert_equals(emptyNotification.data, null);
assert_array_equals(emptyNotification.actions, []);
« 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