3.0 source code
This commit is contained in:
29
OfficeWeb/vendor/requirejs/tests/mapConfig/mapConfigRelative-tests.js
vendored
Normal file
29
OfficeWeb/vendor/requirejs/tests/mapConfig/mapConfigRelative-tests.js
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
define('lib/b', [], { name: 'b' });
|
||||
|
||||
define('b1', [], { name: 'b1' });
|
||||
|
||||
define('lib/a', ['./b'], function(b) {
|
||||
return {
|
||||
name: 'a',
|
||||
b: b
|
||||
};
|
||||
});
|
||||
|
||||
require({
|
||||
map: {
|
||||
'lib/a': {
|
||||
'lib/b': 'b1'
|
||||
}
|
||||
}
|
||||
},['lib/a'], function(a) {
|
||||
doh.register(
|
||||
'mapConfigRelative',
|
||||
[
|
||||
function mapConfigRelative(t){
|
||||
t.is('a', a.name);
|
||||
t.is('b1', a.b.name);
|
||||
}
|
||||
]
|
||||
);
|
||||
doh.run();
|
||||
});
|
||||
Reference in New Issue
Block a user