MCPcopy
hub / github.com/ampproject/amphtml / CompileHtmlparserTestMinified

Function CompileHtmlparserTestMinified

validator/build.py:397–413  ·  view source on GitHub ↗

Runs closure compiler for htmlparser_test.js. Args: out_dir: directory name of the output directory. Must not have slashes, dots, etc.

(out_dir)

Source from the content-addressed store, hash-verified

395
396
397def CompileHtmlparserTestMinified(out_dir):
398 """Runs closure compiler for htmlparser_test.js.
399
400 Args:
401 out_dir: directory name of the output directory. Must not have slashes,
402 dots, etc.
403 """
404 logging.info('entering ...')
405 CompileWithClosure(
406 js_files=[
407 'js/engine/htmlparser.js', 'js/engine/htmlparser-interface.js',
408 'js/engine/htmlparser_test.js'
409 ],
410 definitions=[],
411 entry_points=['amp.htmlparser.HtmlParserTest'],
412 output_file='%s/htmlparser_test_minified.js' % out_dir)
413 logging.info('... success')
414
415
416def CompileParseCssTestMinified(out_dir):

Callers 1

MainFunction · 0.85

Calls 2

CompileWithClosureFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected