build_loader_tests.js revision 6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4
mods = {};
var testMod = function(v) {
//Removes YUI core modules
(v !== 'intl-base')) {
return true;
}
return false;
}
if (testMod(v)) { //Removes YUI core modules
if (json[v].submodules) {
if (testMod(k)) { //Removes YUI core modules
}
});
}
}
});
str += ' var loader = new Y.Loader({\n';
str += ' ignoreRegistered: true,\n';
str += ' allowRollup: false\n';
str += ' });\n';
str += ' loader.calculate();\n';
str += ' //Testing A rollup module\n';
str += ' Assert.isTrue((loader.sorted.indexOf("' + s + '")) > -1, "Module (' + s + ') not found in sorted array");\n';
});
} else {
str += ' //Testing A normal module\n';
str += ' Assert.isTrue((loader.sorted.indexOf("' + key + '")) > -1, "Module (' + key + ') not found in sorted array");\n';
}
str += ' }';
return str;
};
var tests = [];
});
var str = '{\n';
str += ' name: "Loader Tests",\n';
str += ' \n}';