Class('Test.Run', {
my : {
have : {
harness : null
},
methods : {
configure : function (config) {
Joose.O.copy(config, this)
},
start : function (testFunc, testClass, topScope) {
(this.harness || window.parent.Test.Run.my.harness || window.opener.Test.Run.my.harness || Test.Run.Harness.Browser.Single.my).startTest(testFunc, testClass, topScope)
}
}
}
//eof my
})
//eof Test.Run
//starter, which also capture the top scope - it will be re-defined in Test.Run.Harness.Browser
StartTest = function (testFunc, testClass) {
Test.Run.my.start(testFunc, testClass, this)
}
__EXCEPTION_CATCHER__ = function (func) { var ex; try { func() } catch (e) { ex = e; }; return ex; }