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

Function begin

tests/qunit-2.9.2.js:4373–4406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4371 }
4372
4373 function begin() {
4374 var i,
4375 l,
4376 modulesLog = [];
4377
4378 // If the test run hasn't officially begun yet
4379 if (!config.started) {
4380
4381 // Record the time of the test run's beginning
4382 config.started = now();
4383
4384 // Delete the loose unnamed module if unused.
4385 if (config.modules[0].name === "" && config.modules[0].tests.length === 0) {
4386 config.modules.shift();
4387 }
4388
4389 // Avoid unnecessary information by not logging modules' test environments
4390 for (i = 0, l = config.modules.length; i < l; i++) {
4391 modulesLog.push({
4392 name: config.modules[i].name,
4393 tests: config.modules[i].tests
4394 });
4395 }
4396
4397 // The test run is officially beginning now
4398 emit("runStart", globalSuite.start(true));
4399 runLoggingCallbacks("begin", {
4400 totalTests: Test.count,
4401 modules: modulesLog
4402 }).then(unblockAndAdvanceQueue);
4403 } else {
4404 unblockAndAdvanceQueue();
4405 }
4406 }
4407
4408 exportQUnit(QUnit);
4409

Callers 2

internalStartFunction · 0.85
scheduleBeginFunction · 0.85

Calls 3

emitFunction · 0.85
runLoggingCallbacksFunction · 0.85
unblockAndAdvanceQueueFunction · 0.85

Tested by

no test coverage detected