datefield test ready

This commit is contained in:
vitalets
2013-01-04 17:37:22 +04:00
parent 5dfa8bb218
commit 9492610a9a
5 changed files with 148 additions and 13 deletions

@ -27,16 +27,27 @@ require(["loader", jqurl], function(loader) {
});
function addTests(config) {
var date;
switch(params.f) {
case 'bootstrap':
date = ['test/unit/datefield', 'test/unit/date'];
break;
default:
date = ['test/unit/dateui'];
}
var tests = [
'test/mocks',
'test/unit/common',
'test/unit/text',
'test/unit/textarea',
'test/unit/select',
'test/unit/checklist',
(params.f === 'bootstrap') ? 'test/unit/date' : 'test/unit/dateui',
'test/unit/api'
'test/unit/checklist'
];
tests = tests.concat(date);
tests.push('test/unit/api');
for(var i=0; i<tests.length-1; i++) {
config.shim[tests[i+1]] = [tests[i]];