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

Function checkPollution

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

Source from the content-addressed store, hash-verified

3485 }
3486
3487 function checkPollution() {
3488 var newGlobals,
3489 deletedGlobals,
3490 old = config.pollution;
3491
3492 saveGlobal();
3493
3494 newGlobals = diff(config.pollution, old);
3495 if (newGlobals.length > 0) {
3496 pushFailure("Introduced global variable(s): " + newGlobals.join(", "));
3497 }
3498
3499 deletedGlobals = diff(old, config.pollution);
3500 if (deletedGlobals.length > 0) {
3501 pushFailure("Deleted global variable(s): " + deletedGlobals.join(", "));
3502 }
3503 }
3504
3505 // Will be exposed as QUnit.test
3506 function test(testName, callback) {

Callers 1

qunit-2.9.2.jsFile · 0.85

Calls 3

saveGlobalFunction · 0.85
diffFunction · 0.85
pushFailureFunction · 0.85

Tested by

no test coverage detected