var TEST_JS_LOADED // Purposfully left undefined - this is to avoid the global variables being loaded more than once if (TEST_JS_LOADED == undefined) { TEST_JS_LOADED = true // Set to true to print out every single comparison var verbose = false // Set to true to "break" on the first error var haltOnError = false var errorCount = 0 function error(message) { console.log("+++ " + message) printBackTrace() errorCount++ if ( haltOnError ) throw "error" } function printBackTrace() { var bt = utils.backtrace() // We start at 3, so we don't show backtrakce(), printBackTrace() and error() for ( var i=3;i