web-apps/vendor/requirejs/tests/plugins/onerror/onerror-tests.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

31 lines
560 B
JavaScript

var master = new doh.Deferred();
doh.register(
"pluginsOnError",
[
{
name: "pluginsOnError",
timeout: 5000,
runTest: function () {
return master;
}
}
]
);
doh.run();
require({
baseUrl: requirejs.isBrowser ? "./" : "./plugins/onerror",
enforceDefine: true
}, ['thrower!'],
function (thrower) {
master.callback(false);
},
function (err) {
master.callback(true);
});
//Since enforceDefine is used below, define somthing here.
define({});