()
| 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) { |
no test coverage detected