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

31 lines
645 B
JavaScript

define('a',[], {});
define('text!template.html',[],function () { return 'TEXT';});
define('b',['text!template.html'], function(tmpl) {
return 'b ' + tmpl;
});
define('c',['text!template.html'], function(tmpl) {
return 'c ' + tmpl;
});
require(['a'], function (a) {
require({
paths: {
'text': '../../../text/text'
}
}, ['b', 'c'], function(b, c) {
doh.register(
"issue379",
[
function issue379(t){
t.is('b TEXT', b);
t.is('c TEXT', c);
}
]
);
doh.run();
});
});