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

      messagePort.postMessage('permissions-query');
    }
// value when called from a Service Worker context.
value when called from a Service Worker context.
value when called from a Service Worker context .
function permissionsQueryServiceWorker() {
      onNextMessage(messagePort).then(permission => {
        chrome.test.assertEq(expected, permission);
        chrome.test.succeed();
      });
      messagePort.postMessage('permissions-query');
    }
function permissionsQueryServiceWorker ( ) { onNextMessage ( messagePort ) . then ( permission => { chrome . test . assertEq ( expected , permission ) ; chrome . test . succeed ( ) ; } ) ; messagePort . postMessage ( 'permissions-query' ) ; }
value when called from a Service Worker context.
value when called from a Service Worker context .