tests/performance/run.js
/**
 * Start the performance tests on Firefox.
 * Set `currentBrowser` to Firefox.
 */
Start the performance tests on Firefox.
Set `currentBrowser` to Firefox.
Start the performance tests on Firefox . Set ` currentBrowser ` to Firefox .
async function startPerfhomepageOnFirefox(homePage) {
  if (currentBrowser !== undefined) {
    currentBrowser.kill();
  }
  if (FIREFOX_CMD === undefined || FIREFOX_CMD === null) {
    console.error("Error: Starting browser before initialization");
    return process.exit(1);
  }
  const spawned = spawnProc(FIREFOX_CMD, [
    ...FIREFOX_OPTIONS,
    `http://localhost:${PERF_TESTS_PORT}/${homePage}`
  ]);
  currentBrowser = spawned.child;
}
async function startPerfhomepageOnFirefox ( homePage ) { if ( currentBrowser !== undefined ) { currentBrowser . kill ( ) ; } if ( FIREFOX_CMD === undefined || FIREFOX_CMD === null ) { console . error ( "Error: Starting browser before initialization" ) ; return process . exit ( 1 ) ; } const spawned = spawnProc ( FIREFOX_CMD , [ ... FIREFOX_OPTIONS , ` ${ PERF_TESTS_PORT } ${ homePage } ` ] ) ; currentBrowser = spawned . child ; }
Start the performance tests on Firefox.
Start the performance tests on Firefox .
// eslint-disable-next-line no-console