From 1734c6e6bfe921b52d6a65b17812f6316c22b1d2 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 8 Jul 2013 00:05:00 -0700 Subject: [PATCH] Make test/underscore.html support the `modularize` option and cleanup test/index.html. Former-commit-id: 98ab3a50a58f27508208655a983a9cd96d99f965 --- test/index.html | 13 +++++- test/underscore.html | 106 +++++++++++++++++++++++++++++++------------ 2 files changed, 87 insertions(+), 32 deletions(-) diff --git a/test/index.html b/test/index.html index 6a3472e70..3a2b8b1ab 100644 --- a/test/index.html +++ b/test/index.html @@ -52,9 +52,18 @@ } window.require && require( (function() { - var modulePath = ui.buildPath.replace(/\.js$/, ''); + var reModularize = /modularize/; + + var baseUrl = reModularize.test(ui.urlParams.build) + ? '../modularize/' + : ''; + + var modulePath = reModularize.test(ui.urlParams.build) + ? 'lodash' + : ui.buildPath.replace(/\.js$/, ''); + return { - 'baseUrl': (/modularize/.test(ui.urlParams.build) ? 'modularize/' : ''), + 'baseUrl': baseUrl, 'urlArgs': 't=' + (+new Date), 'paths': { 'lodash': modulePath, diff --git a/test/underscore.html b/test/underscore.html index 5fd8e650b..785efe1dc 100644 --- a/test/underscore.html +++ b/test/underscore.html @@ -19,34 +19,31 @@ + - - + - - - - - -