3.0 source code
This commit is contained in:
23
OfficeWeb/vendor/requirejs/tests/bundles/bundles-tests.js
vendored
Normal file
23
OfficeWeb/vendor/requirejs/tests/bundles/bundles-tests.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
require({
|
||||
bundles: {
|
||||
'main': ['util', 'main'],
|
||||
'second': ['other'],
|
||||
'third': ['third']
|
||||
}
|
||||
}, ['util', 'other', 'third'], function (util, other, third) {
|
||||
|
||||
require(['main'], function (main) {
|
||||
doh.register(
|
||||
'bundles',
|
||||
[
|
||||
function bundles(t){
|
||||
t.is('util', util.name);
|
||||
t.is('other', other.name);
|
||||
t.is('third', third.name);
|
||||
t.is('main', main.name);
|
||||
}
|
||||
]
|
||||
);
|
||||
doh.run();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user