(test)
| 3041 | } |
| 3042 | |
| 3043 | function runTest(test) { |
| 3044 | promise = test.callback.call(test.testEnvironment, test.assert); |
| 3045 | test.resolvePromise(promise); |
| 3046 | |
| 3047 | // If the test has a "lock" on it, but the timeout is 0, then we push a |
| 3048 | // failure as the test should be synchronous. |
| 3049 | if (test.timeout === 0 && test.semaphore !== 0) { |
| 3050 | pushFailure("Test did not finish synchronously even though assert.timeout( 0 ) was used.", sourceFromStacktrace(2)); |
| 3051 | } |
| 3052 | } |
| 3053 | }, |
| 3054 | |
| 3055 | after: function after() { |
no test coverage detected