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

40 lines
1.2 KiB
JavaScript

requirejs.config({
paths: {
text: '../../circular/complexPlugin/slowText'
}
});
//First make sure the plugin is loaded, so that there is nothing waiting for
//normalization.
require(['text'], function (text) {
function trim(text) {
return text.replace(/^\s+/, '').replace(/\s+$/, '');
}
require(['app'], function (app) {
doh.register(
"pluginsLast",
[
function pluginsLast(t){
t.is("app", app.name);
t.is("specificCollection", app.specificCollection.name);
t.is("specificCollection", app.specificCollection.html);
t.is("bigCollection", app.bigCollection.name);
t.is("bigCollection", app.bigCollection.html);
t.is("collection", app.bigCollection.collection.name);
t.is("collectionHelper", app.bigCollection.collection.collectionHelperName);
t.is("component", app.bigCollection.collection.componentName);
t.is("component", app.bigCollection.collection.componentHtml);
}
]
);
doh.run();
});
});