Tests: more targeted log capture setup

@Ventero pointed out that functions also have a length property
This commit is contained in:
Chris Adams 2013-07-02 16:09:19 -04:00
parent 2a3044e0cf
commit 9fb4ae2a9a

View File

@ -89,7 +89,7 @@
error: [],
reset: function () {
for (var i in testLog) {
if (testLog.hasOwnProperty(i) && 'length' in testLog[i]) {
if (testLog.hasOwnProperty(i) && 'length' in testLog[i] && 'push' in testLog[i]) {
testLog[i].length = 0;
}
}