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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 importScripts('../../serviceworker/resources/worker-testharness.js');
2 importScripts('/resources/testharness-helpers.js');
3
4 test(function() {
5 assert_true('PushEvent' in self);
6
7 var event = new PushEvent('PushEvent');
8 assert_equals(event.type, 'PushEvent');
9 assert_own_property(event, 'data');
10 assert_inherits(event, 'waitUntil');
11
12 }, 'PushEvent is exposed and extends ExtendableEvent.');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698