function pushManagerPermissionStateServiceWorker() {
      onNextMessage(messagePort).then(permission => {
        chrome.test.assertEq(expected, permission);
        chrome.test.succeed();
      });

      messagePort.postMessage('pushManager-permissionState');
    }
// the expected value when called from the Service Worker context.
the expected value when called from the Service Worker context.
the expected value when called from the Service Worker context .
function pushManagerPermissionStateServiceWorker() {
      onNextMessage(messagePort).then(permission => {
        chrome.test.assertEq(expected, permission);
        chrome.test.succeed();
      });
      messagePort.postMessage('pushManager-permissionState');
    }
function pushManagerPermissionStateServiceWorker ( ) { onNextMessage ( messagePort ) . then ( permission => { chrome . test . assertEq ( expected , permission ) ; chrome . test . succeed ( ) ; } ) ; messagePort . postMessage ( 'pushManager-permissionState' ) ; }
the expected value when called from the Service Worker context.
the expected value when called from the Service Worker context .