3.0 source code
This commit is contained in:
49
OfficeWeb/vendor/requirejs/tests/mapConfig/built/mapConfigStarAdapter-tests.js
vendored
Normal file
49
OfficeWeb/vendor/requirejs/tests/mapConfig/built/mapConfigStarAdapter-tests.js
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
define('d',{
|
||||
name: 'd'
|
||||
});
|
||||
|
||||
define('adapter/d',['d'], function(d) {
|
||||
d.adapted = true;
|
||||
return d;
|
||||
});
|
||||
|
||||
define('e',['d'], function (d) {
|
||||
return {
|
||||
name: 'e',
|
||||
d: d
|
||||
};
|
||||
});
|
||||
|
||||
/*global doh */
|
||||
require({
|
||||
baseUrl: './',
|
||||
map: {
|
||||
'*': {
|
||||
'd': 'adapter/d'
|
||||
},
|
||||
'adapter/d': {
|
||||
d: 'd'
|
||||
}
|
||||
}
|
||||
},
|
||||
['e', 'adapter/d'],
|
||||
function(e, adapterD) {
|
||||
|
||||
doh.register(
|
||||
'mapConfigStarAdapter',
|
||||
[
|
||||
function mapConfigStarAdapter(t){
|
||||
t.is('e', e.name);
|
||||
t.is('d', e.d.name);
|
||||
t.is(true, e.d.adapted);
|
||||
t.is(true, adapterD.adapted);
|
||||
t.is('d', adapterD.name);
|
||||
}
|
||||
]
|
||||
);
|
||||
doh.run();
|
||||
}
|
||||
);
|
||||
|
||||
define("mapConfigStarAdapter-tests", function(){});
|
||||
Reference in New Issue
Block a user