function assertAdvancedVisibilityAfterSearch(expectedAdvanced) {
      searchManager.setMatchesFound(true);
      return settingsMain.searchContents('Query1')
          .then(function() {
            searchManager.setMatchesFound(false);
            return settingsMain.searchContents('');
          })
          .then(function() {
            // Imitate behavior of clearing search.
            settings.navigateTo(settings.routes.BASIC);
            Polymer.dom.flush();
            return assertPageVisibility('block', expectedAdvanced);
          });
    }
/**
     * Asserts the visibility of the basic and advanced pages after exiting
     * search mode.
     * @param {string} Expected 'display' value for the advanced page.
     * @return {!Promise}
     */
Asserts the visibility of the basic and advanced pages after exiting
search mode.
@param {string} Expected 'display' value for the advanced page.
@return {!Promise}
Asserts the visibility of the basic and advanced pages after exiting search mode . @param { string } Expected ' display ' value for the advanced page . @return { !Promise }
function assertAdvancedVisibilityAfterSearch(expectedAdvanced) {
      searchManager.setMatchesFound(true);
      return settingsMain.searchContents('Query1')
          .then(function() {
            searchManager.setMatchesFound(false);
            return settingsMain.searchContents('');
          })
          .then(function() {
            settings.navigateTo(settings.routes.BASIC);
            Polymer.dom.flush();
            return assertPageVisibility('block', expectedAdvanced);
          });
    }
function assertAdvancedVisibilityAfterSearch ( expectedAdvanced ) { searchManager . setMatchesFound ( true ) ; return settingsMain . searchContents ( 'Query1' ) . then ( function ( ) { searchManager . setMatchesFound ( false ) ; return settingsMain . searchContents ( '' ) ; } ) . then ( function ( ) { settings . navigateTo ( settings . routes . BASIC ) ; Polymer . dom . flush ( ) ; return assertPageVisibility ( 'block' , expectedAdvanced ) ; } ) ; }
Asserts the visibility of the basic and advanced pages after exiting
 search mode.
Asserts the visibility of the basic and advanced pages after exiting search mode .
// Imitate behavior of clearing search.