ui/file_manager/base/gn/js_test_gen_html.py
def _process_js_module(input_file, output_filename):
  """Generates the HTML for a unittest based on JS Modules.

  Args:
    input_file: The path for the unittest JS module.
    output_filename: The path/filename for HTML to be generated.
  """

  # Map //ui/file_manager files to test URL:
  js_module_url = input_file.replace(
      'ui/file_manager/', 'chrome://file_manager_test/ui/file_manager/', 1)

  with open(output_filename, 'w') as out:
    out.write(_HTML_FILE_START + '\n')

    line = _JS_MODULE % (js_module_url)
    out.write(line + '\n')

    line = _JS_MODULE_REGISTER_TESTS % (js_module_url)
    out.write(line + '\n')
Generates the HTML for a unittest based on JS Modules.

  Args:
    input_file: The path for the unittest JS module.
    output_filename: The path/filename for HTML to be generated.
  
Generates the HTML for a unittest based on JS Modules.
Generates the HTML for a unittest based on JS Modules .
def _process_js_module(input_file, output_filename):
  js_module_url = input_file.replace(
      'ui/file_manager/', 'chrome://file_manager_test/ui/file_manager/', 1)
  with open(output_filename, 'w') as out:
    out.write(_HTML_FILE_START + '\n')
    line = _JS_MODULE % (js_module_url)
    out.write(line + '\n')
    line = _JS_MODULE_REGISTER_TESTS % (js_module_url)
    out.write(line + '\n')
def _process_js_module ( input_file , output_filename ) : js_module_url = input_file . replace ( 'ui/file_manager/' , 'chrome://file_manager_test/ui/file_manager/' , 1 ) with open ( output_filename , 'w' ) as out : out . write ( _HTML_FILE_START + '\n' ) line = _JS_MODULE % ( js_module_url ) out . write ( line + '\n' ) line = _JS_MODULE_REGISTER_TESTS % ( js_module_url ) out . write ( line + '\n' )
Generates the HTML for a unittest based on JS Modules.
Generates the HTML for a unittest based on JS Modules .
"""Generates the HTML for a unittest based on JS Modules.

  Args:
    input_file: The path for the unittest JS module.
    output_filename: The path/filename for HTML to be generated.
  """ # Map //ui/file_manager files to test URL:
input_file
The path for the unittest JS module.
The path for the unittest JS module .
output_filename
The path/filename for HTML to be generated.
The path / filename for HTML to be generated .