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

Unified Diff: LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js

Issue 923443005: Disallow constructing the Notification object in a Service Worker. (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
Index: LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js
diff --git a/LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js b/LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js
index 94ffdf36c06017e7653560149d9fc9a32b338d3b..148df6e2898e466470d8ca4772827945bf2204e8 100644
--- a/LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js
+++ b/LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js
@@ -12,15 +12,12 @@ test(function() {
assert_equals(event.notification, null);
assert_inherits(event, 'waitUntil');
- var notification = new Notification('foo');
var eventWithInit = new NotificationEvent('NotificationEvent',
{ cancelable: true,
- bubbles: true,
- notification: notification,
+ bubbles: true
});
assert_equals(eventWithInit.cancelable, true);
assert_equals(eventWithInit.bubbles, true);
- assert_equals(eventWithInit.notification, notification);
}, 'NotificationEvent is exposed, and has the expected interface.');

Powered by Google App Engine
This is Rietveld 408576698