Fix bug 428, add test which catches exception. What an annoying little bug.
[dygraphs.git] / auto_tests / misc / fake-jstestdriver.js
index e5db4c5..6f4f464 100644 (file)
@@ -27,6 +27,14 @@ var jstestdriver = {
   jQuery : jQuery
 };
 
+if (!console) {
+  var console = {
+    log: function(x) {
+      // ...
+    }
+  };
+}
+
 var jstd = {
   include : function(name) {
     this.sucker("Not including " + name);
@@ -84,6 +92,7 @@ function TestCase(name) {
       return false;
     }
   };
+
   testCase.prototype.runAllTests = function() {
     var results = {};
     var names = this.getTestNames();