// useful globals var currentSuite, currentCase; // loads common.js module function load (test, fn) { module = {}; $script('/test/' + test, function () { fn(module.exports); }); }; // load all tests function run () { var tests = Array.prototype.slice.call(arguments) , i = 0; function complete () { $('body').append('

All suites completed

'); }; if (tests.length) { // load dom $('body').append('