function checkHasEndOfLife(isShowing) {
            return aboutBrowserProxy.whenCalled('getHasEndOfLife')
                .then(function() {
                  const endOfLifeMessageContainer =
                      page.$.endOfLifeMessageContainer;
                  assertTrue(!!endOfLifeMessageContainer);
                  assertEquals(isShowing, !endOfLifeMessageContainer.hidden);

                  // Update status message should be hidden before user has
                  // checked for updates.
                  assertTrue(page.$.updateStatusMessage.hidden);

                  fireStatusChanged(UpdateStatus.CHECKING);
                  assertEquals(isShowing, page.$.updateStatusMessage.hidden);

                  if (isShowing) {
                    const icon = page.$$('iron-icon');
                    assertTrue(!!icon);
                    assertEquals(null, icon.src);
                    assertEquals('settings:end-of-life', icon.icon);

                    const checkForUpdates = page.$.checkForUpdates;
                    assertTrue(!!checkForUpdates);
                    assertTrue(checkForUpdates.hidden);
                  }
                });
          }
/**
           * Checks the visibility of the end of life message and icon.
           * @param {boolean} isShowing Whether the end of life UI is expected
           *     to be visible.
           * @return {!Promise}
           */
Checks the visibility of the end of life message and icon.
@param {boolean} isShowing Whether the end of life UI is expected
to be visible.
@return {!Promise}
Checks the visibility of the end of life message and icon . @param { boolean } isShowing Whether the end of life UI is expected to be visible . @return { !Promise }
function checkHasEndOfLife(isShowing) {
            return aboutBrowserProxy.whenCalled('getHasEndOfLife')
                .then(function() {
                  const endOfLifeMessageContainer =
                      page.$.endOfLifeMessageContainer;
                  assertTrue(!!endOfLifeMessageContainer);
                  assertEquals(isShowing, !endOfLifeMessageContainer.hidden);
                  assertTrue(page.$.updateStatusMessage.hidden);
                  fireStatusChanged(UpdateStatus.CHECKING);
                  assertEquals(isShowing, page.$.updateStatusMessage.hidden);
                  if (isShowing) {
                    const icon = page.$$('iron-icon');
                    assertTrue(!!icon);
                    assertEquals(null, icon.src);
                    assertEquals('settings:end-of-life', icon.icon);
                    const checkForUpdates = page.$.checkForUpdates;
                    assertTrue(!!checkForUpdates);
                    assertTrue(checkForUpdates.hidden);
                  }
                });
          }
function checkHasEndOfLife ( isShowing ) { return aboutBrowserProxy . whenCalled ( 'getHasEndOfLife' ) . then ( function ( ) { const endOfLifeMessageContainer = page . $ . endOfLifeMessageContainer ; assertTrue ( ! ! endOfLifeMessageContainer ) ; assertEquals ( isShowing , ! endOfLifeMessageContainer . hidden ) ; assertTrue ( page . $ . updateStatusMessage . hidden ) ; fireStatusChanged ( UpdateStatus . CHECKING ) ; assertEquals ( isShowing , page . $ . updateStatusMessage . hidden ) ; if ( isShowing ) { const icon = page . $$ ( 'iron-icon' ) ; assertTrue ( ! ! icon ) ; assertEquals ( null , icon . src ) ; assertEquals ( 'settings:end-of-life' , icon . icon ) ; const checkForUpdates = page . $ . checkForUpdates ; assertTrue ( ! ! checkForUpdates ) ; assertTrue ( checkForUpdates . hidden ) ; } } ) ; }
Checks the visibility of the end of life message and icon.
Checks the visibility of the end of life message and icon .
// Update status message should be hidden before user has // checked for updates.