(element, index, array, arg4, arg5, arg6)
| 28 | |
| 29 | function doForEach(arr) { |
| 30 | function callback(element, index, array, arg4, arg5, arg6) { |
| 31 | |
| 32 | function shouldBeUndefined(_a) { |
| 33 | var exception; |
| 34 | var _av; |
| 35 | try { |
| 36 | _av = eval(_a); |
| 37 | } catch (e) { |
| 38 | exception = e; |
| 39 | } |
| 40 | |
| 41 | if (exception) |
| 42 | testFailed(_a + " should be undefined. Threw exception " + exception); |
| 43 | else if (typeof _av == "undefined") |
| 44 | testPassed(_a + " is undefined."); |
| 45 | else |
| 46 | testFailed(_a + " should be undefined. Was " + _av); |
| 47 | } |
| 48 | |
| 49 | shouldBeUndefined("arg4"); |
| 50 | shouldBeUndefined("arg5"); |
| 51 | shouldBeUndefined("arg6"); |
| 52 | } |
| 53 | |
| 54 | arr.forEach(callback); |
| 55 | } |
no test coverage detected