DocumentServer/OfficeWeb/vendor/requirejs/tests/plugins/sync-tests.js
2015-04-28 17:59:00 +03:00

21 lines
604 B
JavaScript

require({
baseUrl: requirejs.isBrowser ? "./" : "./plugins/"
}, ['require', 'earth', 'prime/earth'],
function (require, earth, primeEarth) {
doh.register(
"pluginsSync",
[
function pluginsSync(t){
t.is("a", earth.getA().name);
t.is("c", earth.getC().name);
t.is("b", earth.getB().name);
t.is("aPrime", primeEarth.getA().name);
t.is("cPrime", primeEarth.getC().name);
t.is("bPrime", primeEarth.getB().name);
}
]
);
doh.run();
});