summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/service-workers/service-worker/resources/install-event-type-worker.js
blob: 1c94ae21ea9d88a8fa259a706fda665ef572dd5a (plain)
1
2
3
4
5
6
7
8
9
importScripts('worker-testharness.js');

self.oninstall = function(event) {
    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');
};