printer(printerId, origin, account) {
      const printer = this.cloudPrintersMap_.get(printerId);
      if (!!printer) {
        const printerDoneEvent =
            new Event(cloudprint.CloudPrintInterfaceEventType.PRINTER_DONE);
        printerDoneEvent.printer = printer;
        printerDoneEvent.printer.capabilities =
            print_preview_test_utils.getCddTemplate(printerId);
        this.dispatchEvent(printerDoneEvent);
      }
    }
/**
     * Dispatches a CloudPrintInterfaceEventType.PRINTER_DONE event with the
     * printer details if the printer has been added by calling setPrinter().
     * @param {string} printerId ID of the printer to lookup.
     * @param {!print_preview.DestinationOrigin} origin Origin of the printer.
     * @param {string=} account Account this printer is registered for.
     */
Dispatches a CloudPrintInterfaceEventType.PRINTER_DONE event with the
printer details if the printer has been added by calling setPrinter().
@param {string} printerId ID of the printer to lookup.
@param {!print_preview.DestinationOrigin} origin Origin of the printer.
@param {string=} account Account this printer is registered for.
Dispatches a CloudPrintInterfaceEventType . PRINTER_DONE event with the printer details if the printer has been added by calling setPrinter () . @param { string } printerId ID of the printer to lookup . @param { !print_preview . DestinationOrigin } origin Origin of the printer . @param { string = } account Account this printer is registered for .
printer(printerId, origin, account) {
      const printer = this.cloudPrintersMap_.get(printerId);
      if (!!printer) {
        const printerDoneEvent =
            new Event(cloudprint.CloudPrintInterfaceEventType.PRINTER_DONE);
        printerDoneEvent.printer = printer;
        printerDoneEvent.printer.capabilities =
            print_preview_test_utils.getCddTemplate(printerId);
        this.dispatchEvent(printerDoneEvent);
      }
    }
printer ( printerId , origin , account ) { const printer = this . cloudPrintersMap_ . get ( printerId ) ; if ( ! ! printer ) { const printerDoneEvent = new Event ( cloudprint . CloudPrintInterfaceEventType . PRINTER_DONE ) ; printerDoneEvent . printer = printer ; printerDoneEvent . printer . capabilities = print_preview_test_utils . getCddTemplate ( printerId ) ; this . dispatchEvent ( printerDoneEvent ) ; } }
Dispatches a CloudPrintInterfaceEventType.PRINTER_DONE event with the
 printer details if the printer has been added by calling setPrinter().
Dispatches a CloudPrintInterfaceEventType . PRINTER_DONE event with the printer details if the printer has been added by calling setPrinter () .