function simulateDestinationSelect(destination) {
      // Fake destinationListItem.
      const item =
          document.createElement('print-preview-destination-list-item');
      item.destination = destination;

      // Get print list and fire event.
      const list = dialog.shadowRoot.querySelectorAll(
          'print-preview-destination-list')[1];
      list.fire('destination-selected', item);
    }
/**
     * @param {!print_preview.Destination} destination The destination to
     *     simulate selection of.
     */
@param {!print_preview.Destination} destination The destination to
simulate selection of.
@param { !print_preview . Destination } destination The destination to simulate selection of .
function simulateDestinationSelect(destination) {
      const item =
          document.createElement('print-preview-destination-list-item');
      item.destination = destination;
      const list = dialog.shadowRoot.querySelectorAll(
          'print-preview-destination-list')[1];
      list.fire('destination-selected', item);
    }
function simulateDestinationSelect ( destination ) { const item = document . createElement ( 'print-preview-destination-list-item' ) ; item . destination = destination ; const list = dialog . shadowRoot . querySelectorAll ( 'print-preview-destination-list' ) [ 1 ] ; list . fire ( 'destination-selected' , item ) ; }
@param {!print_preview.Destination} destination The destination to
     simulate selection of.
@param { !print_preview . Destination } destination The destination to simulate selection of .
// Fake destinationListItem. // Get print list and fire event.