async function persistentNotification() {
      try {
        await registration.showNotification('title', {});
        chrome.test.assertEq(expected, 'granted');
        chrome.test.succeed();
      } catch (e) {
        chrome.test.assertEq(expected, 'denied');
        chrome.test.succeed();
      }
    }
// depending on the |expected| permission status.
depending on the |expected| permission status.
depending on the |expected| permission status .
async function persistentNotification() {
      try {
        await registration.showNotification('title', {});
        chrome.test.assertEq(expected, 'granted');
        chrome.test.succeed();
      } catch (e) {
        chrome.test.assertEq(expected, 'denied');
        chrome.test.succeed();
      }
    }
async function persistentNotification ( ) { try { await registration . showNotification ( 'title' , { } ) ; chrome . test . assertEq ( expected , 'granted' ) ; chrome . test . succeed ( ) ; } catch ( e ) { chrome . test . assertEq ( expected , 'denied' ) ; chrome . test . succeed ( ) ; } }
depending on the |expected| permission status.
depending on the |expected| permission status .