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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/install-event-type-worker.js

Issue 2865313003: Upstream service worker tests to WPT (Closed)
Patch Set: Re-introduce resource script Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 importScripts('worker-testharness.js'); 1 importScripts('worker-testharness.js');
2 2
3 self.oninstall = function(event) { 3 self.oninstall = function(event) {
4 assert_true(event instanceof ExtendableEvent); 4 assert_true(event instanceof ExtendableEvent, 'instance of ExtendableEvent') ;
5 assert_equals(event.type, 'install'); 5 assert_true(event instanceof InstallEvent, 'instance of InstallEvent');
6 assert_false(event.cancelable); 6 assert_equals(event.type, 'install', '`type` property value');
7 assert_false(event.bubbles); 7 assert_false(event.cancelable, '`cancelable` property value');
8 assert_false(event.bubbles, '`bubbles` property value');
8 }; 9 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698