async function permissionsQueryDocument() {
      const permissionState = await navigator.permissions.query({
        name: 'notifications',
      });

      chrome.test.assertEq(expected, permissionState.state);
      chrome.test.succeed();
    }
// value when called from a document context.
value when called from a document context.
value when called from a document context .
async function permissionsQueryDocument() {
      const permissionState = await navigator.permissions.query({
        name: 'notifications',
      });
      chrome.test.assertEq(expected, permissionState.state);
      chrome.test.succeed();
    }
async function permissionsQueryDocument ( ) { const permissionState = await navigator . permissions . query ( { name : 'notifications' , } ) ; chrome . test . assertEq ( expected , permissionState . state ) ; chrome . test . succeed ( ) ; }
value when called from a document context.
value when called from a document context .