* Advance the testQueue to the next test to process. Call done() if testQueue completes.
()
| 2637 | * Advance the testQueue to the next test to process. Call done() if testQueue completes. |
| 2638 | */ |
| 2639 | function advanceTestQueue() { |
| 2640 | if (!config.blocking && !config.queue.length && config.depth === 0) { |
| 2641 | done(); |
| 2642 | return; |
| 2643 | } |
| 2644 | |
| 2645 | var testTasks = config.queue.shift(); |
| 2646 | addToTaskQueue(testTasks()); |
| 2647 | |
| 2648 | if (priorityCount > 0) { |
| 2649 | priorityCount--; |
| 2650 | } |
| 2651 | |
| 2652 | advance(); |
| 2653 | } |
| 2654 | |
| 2655 | /** |
| 2656 | * Enqueue the tasks for a test into the task queue. |
no test coverage detected