Skip to content

Commit 17cf782

Browse files
committed
Remove .dev hack in test files
Running the default Grunt task now produces non-minified files, so this isn't necessary any more.
1 parent e8b07cb commit 17cf782

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

test/form.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,6 @@ <h2>Validation Module: Brazil</h2>
375375
<script src="../form-validator/jquery.form-validator.min.js"></script>
376376
<script>
377377
(function($, window) {
378-
379-
var dev = window.location.href.indexOf('dev') > -1 ? '.dev' : '';
380-
381378
// setup datepicker
382379
$("#datepicker").datepicker();
383380

@@ -409,7 +406,8 @@ <h2>Validation Module: Brazil</h2>
409406
lang : 'sv',
410407
sanitizeAll : 'trim', // only used on form C
411408
// borderColorOnError : 'purple',
412-
modules : 'security'+dev+', location'+dev+', sweden'+dev+', file'+dev+', uk'+dev+' , brazil'+dev +( xtraModule ? ','+xtraModule:''),
409+
modules : 'security, location, sweden, file,' +
410+
' uk, brazil' +( xtraModule ? ','+xtraModule:''),
413411
onModulesLoaded: function() {
414412
$('#country-suggestions').suggestCountry();
415413
$('#swedish-county-suggestions').suggestSwedishCounty();
@@ -443,12 +441,12 @@ <h2>Validation Module: Brazil</h2>
443441
window.applyValidation(false, '#form-b', 'element');
444442
window.applyValidation(true, '#form-c', function() {
445443
return $('#error-container');
446-
}, 'sanitize'+dev);
447-
window.applyValidation(true, '#form-d', 'element', 'html5'+dev);
444+
}, 'sanitize');
445+
window.applyValidation(true, '#form-d', 'element', 'html5');
448446
window.applyValidation(true, '#form-e');
449447

450448
// Load one module outside $.validate() even though you do not have to
451-
$.formUtils.loadModules('date'+dev+'.js', false, false);
449+
$.formUtils.loadModules('date', false, false);
452450

453451
$('input')
454452
.on('beforeValidation', function() {

test/qunit.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,10 +925,8 @@
925925

926926
}
927927

928-
var dev = window.location.hash.indexOf('dev') > -1 ? '.dev' : '';
929-
930928
$.validate({
931-
modules : 'security'+dev+', location'+dev+', sweden'+dev+', file'+dev+', date'+dev+', sanitize'+dev+', uk'+dev,
929+
modules : 'security, location, sweden, file, date, sanitize, uk',
932930
onModulesLoaded: function( $form ) {
933931
if( window.console && window.console.log )
934932
console.log('About to run all tests');

0 commit comments

Comments
 (0)