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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/install-event-type-worker.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/install-event-type-worker.js b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/install-event-type-worker.js
index d729afa090cfd7c927525b22d0012896d5988a3c..1c94ae21ea9d88a8fa259a706fda665ef572dd5a 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/install-event-type-worker.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/install-event-type-worker.js
@@ -1,8 +1,9 @@
importScripts('worker-testharness.js');
self.oninstall = function(event) {
- assert_true(event instanceof ExtendableEvent);
- assert_equals(event.type, 'install');
- assert_false(event.cancelable);
- assert_false(event.bubbles);
+ assert_true(event instanceof ExtendableEvent, 'instance of ExtendableEvent');
+ assert_true(event instanceof InstallEvent, 'instance of InstallEvent');
+ assert_equals(event.type, 'install', '`type` property value');
+ assert_false(event.cancelable, '`cancelable` property value');
+ assert_false(event.bubbles, '`bubbles` property value');
};

Powered by Google App Engine
This is Rietveld 408576698