Add method to auto tests' proxy to clear the call list for better testing.
[dygraphs.git] / auto_tests / tests / Proxy.js
index 852009e..9ffc385 100644 (file)
@@ -71,3 +71,7 @@ Proxy.prototype.log__ = function(name, args) {
   var call = { name : name, args : args, properties: properties };
   this.calls__.push(call);
 };
+
+Proxy.reset = function(proxy) {
+  proxy.calls__ = [];
+}