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 += ' //Testing A rollup of a rollup module ( datatype )\n';
str += ' Assert.isTrue((loader.sorted.indexOf("' + s + '")) > -1, "Module (' + s + ') not found in sorted array");\n';
});
} else {
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 = [];
});
str += ' name: "Loader Tests",\n';
str += ' \n}';