diff --git a/tests/jquery.testHelper.js b/tests/jquery.testHelper.js index ed4241b8..f69a0afb 100644 --- a/tests/jquery.testHelper.js +++ b/tests/jquery.testHelper.js @@ -103,6 +103,19 @@ // invoke the function which should, in some fashion, // trigger the defined event fn(timedOut); + }, + + decorate: function(opts){ + var thisVal = opts.this || window; + + return function(){ + var returnVal; + opts.before && opts.before.apply(thisVal, arguments); + returnVal = opts.fn.apply(thisVal, arguments); + opts.after && opts.after.apply(thisVal, arguments); + + return returnVal; + }; } }; })(jQuery); \ No newline at end of file diff --git a/tests/unit/select/index.html b/tests/unit/select/index.html index 9581166b..a286ec73 100644 --- a/tests/unit/select/index.html +++ b/tests/unit/select/index.html @@ -9,9 +9,9 @@ + - @@ -27,7 +27,7 @@