()
| 35 | } |
| 36 | |
| 37 | function run() { |
| 38 | var t = 1; |
| 39 | for (i in Test.Tests) (function (test, context) { |
| 40 | ++t; |
| 41 | try { |
| 42 | test( |
| 43 | function (b, m) { |
| 44 | return assert(b, m, context); |
| 45 | }, |
| 46 | function () { |
| 47 | if (--t == 0) { |
| 48 | done(); |
| 49 | } |
| 50 | }); |
| 51 | } |
| 52 | catch (e) { |
| 53 | assert(false, 'Exception: ' + e, context); |
| 54 | if (--t == 0) { |
| 55 | done(); |
| 56 | } |
| 57 | throw e; |
| 58 | } |
| 59 | })(Test.Tests[i], i); |
| 60 | |
| 61 | if (--t == 0) { |
| 62 | done(); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | run(); |
| 67 | }; |