async function pushManagerPermissionStateDocument() {
      const permission = await registration.pushManager.permissionState({
        userVisibleOnly: true,
      });

      chrome.test.assertEq(expected, permission);
      chrome.test.succeed();
    }
// the expected value when called from the document context.
the expected value when called from the document context.
the expected value when called from the document context .
async function pushManagerPermissionStateDocument() {
      const permission = await registration.pushManager.permissionState({
        userVisibleOnly: true,
      });
      chrome.test.assertEq(expected, permission);
      chrome.test.succeed();
    }
async function pushManagerPermissionStateDocument ( ) { const permission = await registration . pushManager . permissionState ( { userVisibleOnly : true , } ) ; chrome . test . assertEq ( expected , permission ) ; chrome . test . succeed ( ) ; }
the expected value when called from the document context.
the expected value when called from the document context .