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

Unified Diff: LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.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
Index: LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html
diff --git a/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html b/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html
index f44a63809992b766294359e115c8668f954c0f52..65b05607b6d325d6faeb1ab1fb2889a75cc8974b 100644
--- a/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html
+++ b/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html
@@ -28,6 +28,7 @@
icon: 'https://example/icon.png',
vibrate: [100, 200, 300],
silent: false,
+ requireInteraction: true,
data: [
{ property: 'foobar',
string: '\uDFFF\u0000\uDBFF',
@@ -70,6 +71,10 @@
options.actions = options.actions.slice(0, Notification.maxActions);
Object.keys(options).forEach(function(key) {
+ if (key == 'requireInteraction') {
+ // TODO(johnme): requireInteraction is not yet serialized properly.
+ return;
+ }
if (typeof options[key] == 'object')
assert_object_equals(event.data.notification[key], options[key], 'The ' + key + ' field must be the same.');
else

Powered by Google App Engine
This is Rietveld 408576698