From d57dd6f2d72c2cf8aa342746076246effd10c8e3 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Sun, 15 Sep 2013 00:42:17 -0400 Subject: [PATCH] Add method to auto tests' proxy to clear the call list for better testing. --- auto_tests/tests/Proxy.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/auto_tests/tests/Proxy.js b/auto_tests/tests/Proxy.js index 852009e..9ffc385 100644 --- a/auto_tests/tests/Proxy.js +++ b/auto_tests/tests/Proxy.js @@ -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__ = []; +} -- 2.7.4