Commits

Shlomi Fish  committed 7b4b895

QUnit now errors if there's a syntax error.

Previously it "succeeded" with zero assertions run, which is misleading.

  • Participants
  • Parent commits 05ff560

Comments (0)

Files changed (1)

File abc-path/js/abc-path-test.html

 
   <script type="text/javascript">
       $(document).ready(function () { 
-          test_abc_path();
+          try {
+              test_abc_path();
+          }
+          catch (err) {
+            module("Meta");
+            test("global_failure", function() {
+                ok (false, 'test_abc_path() has thrown an exception or is invalid.');
+            });
+          }
           // Hide passed tests by default.
           $('#qunit-tests').addClass('hidepass');
       });