(test, callback)
| 2108 | }; |
| 2109 | |
| 2110 | function add_test_done_callback(test, callback) |
| 2111 | { |
| 2112 | if (test.phase === test.phases.COMPLETE) { |
| 2113 | callback(); |
| 2114 | return; |
| 2115 | } |
| 2116 | |
| 2117 | test._done_callbacks.push(callback); |
| 2118 | } |
| 2119 | |
| 2120 | /* |
| 2121 | * Invoke all specified cleanup functions. If one or more produce an error, |
no test coverage detected