title: QUnit not running external JavaScript file
body: <p>I'm trying to adapt the tutorial <a href="http://www.obeythetestinggoat.com/book/chapter_14.html#_building_a_javascript_unit_test_for_our_desired_functionality" rel="nofollow">here</a> to use QUnit v2.x, but it doesn't seem to be picking up the JavaScript file I want to test.</p>
  
  <p>test.html</p>
  
  <pre><code>&lt;div id="qunit"&gt;&lt;/div&gt;
  &lt;div id="qunit-fixture"&gt;
    &lt;form&gt;
      &lt;input name="text" /&gt;
      &lt;div class="has-error"&gt;Error text&lt;/div&gt;
    &lt;/form&gt;
  &lt;/div&gt;
  
  &lt;script src="http://code.jquery.com/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="qunit.js"&gt;&lt;/script&gt;
  &lt;script src="../list.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
      QUnit.test("errors should be hidden on keypress", function (assert) {
          $('input').trigger('keypress');
          assert.equal($('.has-error').is(':visible'), false);
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>list.js</p>
  
  <pre><code>jQuery(document).ready(function ($) {
      $('input').on('keypress', function () {
          $('.has-error').hide();
      });
  });
  </code></pre>
  
  <p>The test fails with a result of true</p>
  
  <p>The provided code in the tutorial works fine with QUnit 1.23</p>
  
  <pre><code>&lt;script&gt;
  
  /*global $, test, equal */
  
  test("errors should be hidden on keypress", function () {
      $('input').trigger('keypress');
      equal($('.has-error').is(':visible'), false);
  });
  
  test("errors not be hidden unless there is a keypress", function () {
      equal($('.has-error').is(':visible'), true);
  });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Edit: Using QUnit v1.23 both versions of the tests work!</p>