function createPage() {
      nativeLayer.setInitialSettings(initialSettings);
      nativeLayer.setLocalDestinations(localDestinationInfos);
      if (initialSettings.printerName) {
        nativeLayer.setLocalDestinationCapabilities(
            print_preview_test_utils.getCddTemplate(
                initialSettings.printerName));
      }

      page = document.createElement('print-preview-app');
      const previewArea = page.$$('print-preview-preview-area');
      previewArea.plugin_ = new print_preview.PDFPluginStub(
          previewArea.onPluginLoad_.bind(previewArea));
    }
/**
     * Initializes the page with initial settings and local destinations
     * given by |initialSettings| and |localDestinationInfos|. Also creates
     * the fake plugin. Moved out of setup so tests can set those parameters
     * differently.
     */
Initializes the page with initial settings and local destinations
given by |initialSettings| and |localDestinationInfos|. Also creates
the fake plugin. Moved out of setup so tests can set those parameters
differently.
Initializes the page with initial settings and local destinations given by |initialSettings| and |localDestinationInfos| . Also creates the fake plugin . Moved out of setup so tests can set those parameters differently .
function createPage() {
      nativeLayer.setInitialSettings(initialSettings);
      nativeLayer.setLocalDestinations(localDestinationInfos);
      if (initialSettings.printerName) {
        nativeLayer.setLocalDestinationCapabilities(
            print_preview_test_utils.getCddTemplate(
                initialSettings.printerName));
      }
      page = document.createElement('print-preview-app');
      const previewArea = page.$$('print-preview-preview-area');
      previewArea.plugin_ = new print_preview.PDFPluginStub(
          previewArea.onPluginLoad_.bind(previewArea));
    }
function createPage ( ) { nativeLayer . setInitialSettings ( initialSettings ) ; nativeLayer . setLocalDestinations ( localDestinationInfos ) ; if ( initialSettings . printerName ) { nativeLayer . setLocalDestinationCapabilities ( print_preview_test_utils . getCddTemplate ( initialSettings . printerName ) ) ; } page = document . createElement ( 'print-preview-app' ) ; const previewArea = page . $$ ( 'print-preview-preview-area' ) ; previewArea . plugin_ = new print_preview . PDFPluginStub ( previewArea . onPluginLoad_ . bind ( previewArea ) ) ; }
Initializes the page with initial settings and local destinations
 given by |initialSettings| and |localDestinationInfos|.
Initializes the page with initial settings and local destinations given by |initialSettings| and |localDestinationInfos| .