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

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

Issue 716143003: Make NotificationEvent constructable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month 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-notification-event.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55d8e2226663d49aba54a4192672287ff55dcd61..1788eed555717e267dc5e5e0531b993d2f07b48c 100644
--- a/LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js
+++ b/LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js
@@ -4,7 +4,12 @@ importScripts('/resources/testharness-helpers.js');
test(function() {
assert_true('NotificationEvent' in self);
-}, 'NotificationEvent is exposed.');
+ var event = new NotificationEvent('NotificationEvent');
+ assert_equals(event.type, 'NotificationEvent');
+ assert_own_property(event, 'notification');
+ assert_inherits(event, 'waitUntil');
+
+}, 'NotificationEvent is exposed, and has the expected interface.');
test(function() {
assert_own_property(self, 'onnotificationclick', 'The notificationclick event exists.');
« no previous file with comments | « no previous file | LayoutTests/http/tests/notifications/serviceworker-notification-event.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698