From e2acbee113aaca858f418e9749e1c4278beea5ac Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 23 Feb 2013 16:17:50 -0800 Subject: [PATCH] Adjust `iife` build test and add `strict` build tests. Former-commit-id: 1422311e7c7106e7def75b7b75800975c59127ff --- test/test-build.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/test/test-build.js b/test/test-build.js index 69b07ad38..ea3fa6eaa 100644 --- a/test/test-build.js +++ b/test/test-build.js @@ -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; }