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

23 lines
511 B
JavaScript

require({
baseUrl: './'
},
['a'],
function(a) {
//This call then triggers another require call
//for a loaded resource. Make sure it does not
//trigger a double notification.
a.doSomething();
doh.register(
'nestedRequire',
[
function nestedRequire(t){
t.is(1, a.counter);
t.is('base', a.base.name);
}
]
);
doh.run();
}
);