build-system/tasks/make-golden.js
/**
 * Make a golden image of the url.
 * Ex:
 * `gulp make-golden --path=examples/everything.amp.html \
 *     --host=http://localhost:8000`
 *  @param {function} cb callback function
 */
Make a golden image of the url.
Make a golden image of the url .
function makeGolden(cb) {
  var path = argv.path;
  var host = argv.host || 'http://localhost:8000';
  var output = argv.output;
  var device = argv.device || 'iPhone6+';
  var verbose = (argv.verbose || argv.v);
  if (!output) {
    output = 'screenshots' + (path && path[0] != '/' ? '/' : '') +
        path + '.png';
  }
  doScreenshot(host, path, output, device, verbose, cb);
}
function makeGolden ( cb ) { var path = argv . path ; var host = argv . host || 'http://localhost:8000' ; var output = argv . output ; var device = argv . device || 'iPhone6+' ; var verbose = ( argv . verbose || argv . v ) ; if ( ! output ) { output = 'screenshots' + ( path && path [ 0 ] != '/' ? '/' : '' ) + path + '.png' ; } doScreenshot ( host , path , output , device , verbose , cb ) ; }
Make a golden image of the url.
Make a golden image of the url .