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

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

Issue 720873002: Expose the notificationclick and notificationerror events on ServiceWorkerGlobalScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments and test 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 9d26a66d64e7c830dee99992aec33d7a2cf32804..55d8e2226663d49aba54a4192672287ff55dcd61 100644
--- a/LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js
+++ b/LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js
@@ -5,3 +5,9 @@ test(function() {
assert_true('NotificationEvent' in self);
}, 'NotificationEvent is exposed.');
+
+test(function() {
+ assert_own_property(self, 'onnotificationclick', 'The notificationclick event exists.');
+ assert_own_property(self, 'onnotificationerror', 'The notificationerror event exists.');
+
+}, 'The notificationclick and notificationerror events exist on the global scope.');
« 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