3.0 source code
This commit is contained in:
31
OfficeWeb/vendor/requirejs/tests/issue379/issue379.js
vendored
Normal file
31
OfficeWeb/vendor/requirejs/tests/issue379/issue379.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user