Ensure the csp build is an alias of the mobile.

Former-commit-id: defb0a7d28cb3ff9d799dcbaceef3175f78531e9
This commit is contained in:
John-David Dalton
2013-02-10 01:14:49 -08:00
parent 1b27834c41
commit c1f62d72ae
2 changed files with 20 additions and 2 deletions

View File

@@ -1390,10 +1390,10 @@
var isMinify = options.indexOf('-m') > -1 || options.indexOf('--minify') > -1;
// flag to specify a mobile build
var isMobile = options.indexOf('mobile') > -1;
var isMobile = isCSP || options.indexOf('mobile') > -1;
// flag to specify a modern build
var isModern = isCSP || isMobile || options.indexOf('modern') > -1;
var isModern = isMobile || options.indexOf('modern') > -1;
// flag to specify a modularize build
var isModularize = options.indexOf('modularize') > -1;

View File

@@ -1093,6 +1093,24 @@
start();
});
});
asyncTest('`lodash csp`', function() {
var sources = [];
var check = _.after(2, _.once(function() {
equal(sources[0], sources[1]);
QUnit.start();
}));
var callback = function(data) {
// remove copyright header and append source
sources.push(data.source.replace(/^\/\**[\s\S]+?\*\/\n/, ''));
check();
};
build(['-s', '-d', 'csp'], callback);
build(['-s', '-d', 'mobile'], callback);
});
}());
/*--------------------------------------------------------------------------*/