Adjust iife build test and add strict build tests.

Former-commit-id: 1422311e7c7106e7def75b7b75800975c59127ff
This commit is contained in:
John-David Dalton
2013-02-23 16:17:50 -08:00
parent 37b69eddf2
commit e2acbee113

View File

@@ -1038,8 +1038,8 @@
(function() {
var commands = [
'iife=this["lodash"]=(function(window,undefined){%output%;return lodash}(this))',
'iife=define(function(window,undefined){return function(){%output%;return lodash}}(this));'
'iife=this["lodash"]=(function(window){%output%;return lodash}(this))',
'iife=define(function(window){return function(){%output%;return lodash}}(this));'
];
commands.forEach(function(command) {
@@ -1216,7 +1216,7 @@
);
commands.forEach(function(origCommand) {
_.times(4, function(index) {
_.times(5, function(index) {
var command = origCommand;
if (index == 1) {
@@ -1225,13 +1225,19 @@
}
command = 'mobile ' + command;
}
if (index == 2) {
else if (index == 2) {
if (/legacy|modern/.test(command)) {
return;
}
command = 'modern ' + command;
}
if (index == 3) {
else if (index == 3) {
if (/strict/.test(command)) {
return;
}
command = 'strict ' + command;
}
else if (index == 4) {
if (/category|legacy|underscore/.test(command)) {
return;
}