Regression-test scaffolding for pp2limit method.
authorMike Taylor <mike@indexdata.com>
Wed, 23 Apr 2014 16:42:14 +0000 (17:42 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 23 Apr 2014 16:42:14 +0000 (17:42 +0100)
src/mkws-filter.js

index 4943ca1..4d600cc 100644 (file)
@@ -72,6 +72,15 @@ function filterSet(team) {
     };
 
     that.pp2limit = function(initial) {
+       var OLD = that.OLD_pp2limit(initial);
+       var NEW = that.NEW_pp2limit(initial);
+       if (OLD !== NEW) {
+           alert("pp2limit(): OLD[" + OLD + "] !== NEW[" + NEW + "]");
+       }
+       return OLD;
+    };
+
+    that.OLD_pp2limit = function(initial) {
        var res = initial || "";
 
        for (var i in m_list) {
@@ -85,6 +94,9 @@ function filterSet(team) {
        return res;
     };
 
+    that.NEW_pp2limit = function(initial) {
+       return that.OLD_pp2limit(initial);
+    }
 
     return that;
 }