diff --git a/test/test-ui.js b/test/test-ui.js index 81d90b338..06ff77022 100644 --- a/test/test-ui.js +++ b/test/test-ui.js @@ -49,7 +49,6 @@ case 'lodash-modern': result = 'dist/lodash.min.js'; break; case 'lodash-legacy': result = 'dist/lodash.legacy.min.js'; break; case 'lodash-mobile': result = 'dist/lodash.mobile.min.js'; break; - case 'lodash-modularize': result = 'modularize/main.js'; break; case 'lodash-underscore': result = 'dist/lodash.underscore.min.js'; break; case 'lodash-custom-dev': result = 'lodash.custom.js'; break; case 'lodash-custom': result = 'lodash.custom.min.js'; break; @@ -74,7 +73,7 @@ }()); // used to indicate testing a modularized build - ui.isModularize = /\b(?:lodash-(?:amd|node)|modularize)\b/.test([location.pathname, location.search, ui.buildPath]); + ui.isModularize = /\b(?:commonjs|(index|main)\.js|lodash-(?:amd|node)|modularize)\b/.test([location.pathname, location.search, ui.buildPath]); // initialize controls addListener(window, 'load', function() { @@ -108,10 +107,9 @@ case 'lodash-modern': return 3; case 'lodash-legacy': return 4; case 'lodash-mobile': return 5; - case 'lodash-modularize': return 6; - case 'lodash-underscore': return 7; - case 'lodash-custom-dev': return 8; - case 'lodash-custom': return 9; + case 'lodash-underscore': return 6; + case 'lodash-custom-dev': return 7; + case 'lodash-custom': return 8; case 'lodash-compat-dev': case null: return 0; } @@ -148,7 +146,6 @@ '' + '' + '' + - '' + '' + '' + '' + diff --git a/test/test.js b/test/test.js index e0a5abeca..bee249099 100644 --- a/test/test.js +++ b/test/test.js @@ -47,7 +47,7 @@ }); /** Used to indicate testing a modularized build */ - var isModularize = ui.isModularize || /\b(?:commonjs|index\.js|lodash-(?:amd|node)|modularize)\b/.test([ui.buildPath, ui.urlParams.build, basename]); + var isModularize = ui.isModularize || /\b(?:commonjs|(index|main)\.js|lodash-(?:amd|node)|modularize)\b/.test([ui.buildPath, ui.urlParams.build, basename]); /*--------------------------------------------------------------------------*/ @@ -638,7 +638,8 @@ }); test('`_.' + methodName + '` should deep clone `lastIndex` regexp property', 1, function() { - var regexp = /x/g; + // avoid regexp literal here for older Opera + var regexp = RegExp('x', 'g'); regexp.test('vwxyz'); var actual = func(regexp);