tests/performance/run.js
/**
 * Build the `tasks` array and start all tests on the Chrome browser.
 * The `onFinished` callback will be called when finished.
 */
Build the `tasks` array and start all tests on the Chrome browser.
The `onFinished` callback will be called when finished.
Build the ` tasks ` array and start all tests on the Chrome browser . The ` onFinished ` callback will be called when finished .
async function startAllTestsOnChrome() {
  CHROME_CMD = await getChromeCmd();
  for (let i = 0; i < TEST_ITERATIONS; i++) {
    tasks.push(
      () => startCurrentPlayerTestsOnChrome(i * 2, TEST_ITERATIONS * 2)
    );
    tasks.push(
      () => startLastPlayerTestsOnChrome(i * 2 + 1, TEST_ITERATIONS * 2)
    );
  }
  if (CHROME_CMD === null) {
    console.error("Error: Chrome not found on the current platform");
    return process.exit(1);
  }
  startNextTaskOrFinish();
}
async function startAllTestsOnChrome ( ) { CHROME_CMD = await getChromeCmd ( ) ; for ( let i = 0 ; i < TEST_ITERATIONS ; i ++ ) { tasks . push ( ( ) => startCurrentPlayerTestsOnChrome ( i * 2 , TEST_ITERATIONS * 2 ) ) ; tasks . push ( ( ) => startLastPlayerTestsOnChrome ( i * 2 + 1 , TEST_ITERATIONS * 2 ) ) ; } if ( CHROME_CMD === null ) { console . error ( "Error: Chrome not found on the current platform" ) ; return process . exit ( 1 ) ; } startNextTaskOrFinish ( ) ; }
Build the `tasks` array and start all tests on the Chrome browser.
Build the ` tasks ` array and start all tests on the Chrome browser .
// eslint-disable-next-line no-console