Cleanup unit tests.

Former-commit-id: 460ffc3bd38c98dd86fc8c74d4720eed5d50433d
This commit is contained in:
John-David Dalton
2012-07-10 22:04:40 -04:00
parent 0515db3d7c
commit eb43786641
2 changed files with 23 additions and 26 deletions

View File

@@ -15,9 +15,9 @@
// assign `QUnit.config` properties
QUnit.config.lodashFilename = (function() {
switch (build) {
case 'prod': return 'lodash.min';
case 'custom': return 'lodash.custom.min';
case 'custom-debug': return 'lodash.custom';
case 'prod': return 'lodash.min';
}
return 'lodash';
}());
@@ -52,13 +52,13 @@
dropdown.selectedIndex = (function() {
switch (build) {
case 'custom': return 3;
case 'custom-debug': return 2;
case 'prod': return 1;
case 'custom': return 2;
case 'custom-debug': return 3;
}
return 0;
}());
checkbox.checked = norequire;
addEvent(checkbox, 'click', eventHandler);
addEvent(dropdown, 'change', eventHandler);
@@ -77,8 +77,8 @@
'<select name="build">' +
'<option value="dev">developement</option>' +
'<option value="prod">production</option>' +
'<option value="custom-debug">custom (debug)</option>' +
'<option value="custom">custom</option>' +
'<option value="custom-debug">custom (debug)</option>' +
'</select>build';
var checkbox = label1.firstChild,