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

Unified Diff: LayoutTests/http/tests/push_messaging/resources/pushevent-extendable-event.js

Issue 716203003: The "push" event should inherit from ExtendableEvent. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove PushEvent from global ctors 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
Index: LayoutTests/http/tests/push_messaging/resources/pushevent-extendable-event.js
diff --git a/LayoutTests/http/tests/push_messaging/resources/pushevent-extendable-event.js b/LayoutTests/http/tests/push_messaging/resources/pushevent-extendable-event.js
new file mode 100644
index 0000000000000000000000000000000000000000..4b77d8e5bb368c5f34592a1abf29cc9239c1aafd
--- /dev/null
+++ b/LayoutTests/http/tests/push_messaging/resources/pushevent-extendable-event.js
@@ -0,0 +1,12 @@
+importScripts('../../serviceworker/resources/worker-testharness.js');
+importScripts('/resources/testharness-helpers.js');
+
+test(function() {
+ assert_true('PushEvent' in self);
+
+ var event = new PushEvent('PushEvent');
+ assert_equals(event.type, 'PushEvent');
+ assert_own_property(event, 'data');
+ assert_inherits(event, 'waitUntil');
+
+}, 'PushEvent is exposed and extends ExtendableEvent.');

Powered by Google App Engine
This is Rietveld 408576698