MCPcopy Create free account
hub / github.com/caike/jQuery-Simple-Timer / advanceTestQueue

Function advanceTestQueue

tests/qunit-2.9.2.js:2639–2653  ·  view source on GitHub ↗

* Advance the testQueue to the next test to process. Call done() if testQueue completes.

()

Source from the content-addressed store, hash-verified

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.

Callers 1

advanceFunction · 0.85

Calls 3

addToTaskQueueFunction · 0.85
advanceFunction · 0.85
doneFunction · 0.70

Tested by

no test coverage detected