<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>QUnit Example</title>
  <link rel="stylesheet" href="vendor/qunit.css">
  <script src="vendor/qunit.js"></script>
  <script src="vendor/jquery-1.9.1.js"></script>
  <script src="test.js"></script>
</head>
<body>
  <div id="qunit"></div>
  <script type="text/javascript">
    var n = 0;
    // hacky setTimeout approach because of problems with jquery's delegate in
    // ie8.
    function hidePassedTestsByDefault() {
      var qt = $('#qunit-tests'),
          qfp = $('#qunit-filter-pass');

      if (qt.length && qfp.length) {
        qt.addClass('hidepass');
        qfp.prop('checked', true);
      } else if (++n < 10) {
        setTimeout(hidePassedTestsByDefault, 100);
      }
    }
    $(document).ready(hidePassedTestsByDefault);

    QUnit.config.testTimeout = 500;
    // uncomment for debugging
    //QUnit.config.testTimeout = 60 * 1000;

    // load all tests
    for (var moduleName in define.registry) {
      if (!define.registry.hasOwnProperty(moduleName)) { continue; }
    
      if (/_tests$/.test(moduleName)) {
        requireModule(moduleName);
      }
    }
  </script>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>QUnit Example</title>
  <link rel="stylesheet" href="vendor/qunit.css">
  <script src="vendor/qunit.js"></script>
  <script src="vendor/jquery-1.9.1.js"></script>
  <script src="test.js"></script>
</head>
<body>
  <div id="qunit"></div>
  <script type="text/javascript">
    var n = 0;
    // hacky setTimeout approach because of problems with jquery's delegate in
    // ie8.
    function hidePassedTestsByDefault() {
      var qt = $('#qunit-tests'),
          qfp = $('#qunit-filter-pass');

      if (qt.length && qfp.length) {
        qt.addClass('hidepass');
        qfp.prop('checked', true);
      } else if (++n < 10) {
        setTimeout(hidePassedTestsByDefault, 100);
      }
    }
    $(document).ready(hidePassedTestsByDefault);

    // 500 is a perfectly reasonable timeout for local testing.  We use the
    // larger value because the SauceLabs VMs can be slow.
    QUnit.config.testTimeout = 5000;

    // uncomment for debugging
    //QUnit.config.testTimeout = 60 * 1000;

    // load all tests
    for (var moduleName in define.registry) {
      if (!define.registry.hasOwnProperty(moduleName)) { continue; }
    
      if (/_tests$/.test(moduleName)) {
        requireModule(moduleName);
      }
    }
  </script>
</body>
</html>

Increase test timeout for saucelabs.
Increase test timeout for saucelabs.
