1 var result = 'FAIL: did not throw.';
3 self.addEventListener('message', function(event) {
4 event.data.port.postMessage(result);
7 self.addEventListener('install', function(event) {
8 self.installEvent = event;
11 self.addEventListener('activate', function(event) {
13 self.installEvent.waitUntil(new Promise(function(){}));
15 if (error.name == 'InvalidStateError')
18 result = 'FAIL: unexpected exception: ' + error;