function nonPersistentNotification() {
      const notification = new Notification('title', {});
      notification.addEventListener('show', () => {
        chrome.test.assertEq(expected, 'granted');
        chrome.test.succeed();
      });

      notification.addEventListener('error', () => {
        chrome.test.assertEq(expected, 'denied');
        chrome.test.succeed();
      });
    }
// fails depending on the |expected| permission status.
fails depending on the |expected| permission status.
fails depending on the |expected| permission status .
function nonPersistentNotification() {
      const notification = new Notification('title', {});
      notification.addEventListener('show', () => {
        chrome.test.assertEq(expected, 'granted');
        chrome.test.succeed();
      });
      notification.addEventListener('error', () => {
        chrome.test.assertEq(expected, 'denied');
        chrome.test.succeed();
      });
    }
function nonPersistentNotification ( ) { const notification = new Notification ( 'title' , { } ) ; notification . addEventListener ( 'show' , ( ) => { chrome . test . assertEq ( expected , 'granted' ) ; chrome . test . succeed ( ) ; } ) ; notification . addEventListener ( 'error' , ( ) => { chrome . test . assertEq ( expected , 'denied' ) ; chrome . test . succeed ( ) ; } ) ; }
fails depending on the |expected| permission status.
fails depending on the |expected| permission status .