function runTests() {
  runnerStartTime = performance.now();
  for (var name in window) {
    // To avoid unnecessary getting properties, test name first.
    if (/^test/.test(name) && typeof window[name] == 'function')
      testCases.push(name);
  }
  if (!testCases.length) {
    console.error('Failed to find test cases.');
    cleanTestRun = false;
  }
  try {
    if (window.setUpPage)
      window.setUpPage();
  } catch (err) {
    cleanTestRun = false;
  }
  continueTesting();
}
/**
 * Runs all functions starting with test and reports success or
 * failure of the test suite.
 */
Runs all functions starting with test and reports success or
failure of the test suite.
Runs all functions starting with test and reports success or failure of the test suite .
function runTests() {
  runnerStartTime = performance.now();
  for (var name in window) {
    if (/^test/.test(name) && typeof window[name] == 'function')
      testCases.push(name);
  }
  if (!testCases.length) {
    console.error('Failed to find test cases.');
    cleanTestRun = false;
  }
  try {
    if (window.setUpPage)
      window.setUpPage();
  } catch (err) {
    cleanTestRun = false;
  }
  continueTesting();
}
function runTests ( ) { runnerStartTime = performance . now ( ) ; for ( var name in window ) { if ( / ^test / . test ( name ) && typeof window [ name ] == 'function' ) testCases . push ( name ) ; } if ( ! testCases . length ) { console . error ( 'Failed to find test cases.' ) ; cleanTestRun = false ; } try { if ( window . setUpPage ) window . setUpPage ( ) ; } catch ( err ) { cleanTestRun = false ; } continueTesting ( ) ; }
Runs all functions starting with test and reports success or
 failure of the test suite.
Runs all functions starting with test and reports success or failure of the test suite .
// To avoid unnecessary getting properties, test name first.