define([], function () {
var out = function () { };
if (window.location.hash.indexOf("?test=test") > -1) {
window.onerror = function (msg, url, lineNo, columnNo, e) {
document.body.innerHTML = '
' +
JSON.stringify([
msg,
url,
lineNo,
columnNo,
e ? e.message : null,
e ? e.stack : null
]).replace(/';
};
require.onError = function (e) {
document.body.innerHTML = '
' +
JSON.stringify([
e ? e.message : null,
e ? e.stack : null
]).replace(/';
};
out = function (f) { f(); }
}
out.passed = function () {
document.body.innerHTML = '
Test Passed
';
}
return out;
});