Skip to content

Commit 665f67d

Browse files
committed
Cleanup whitespace
1 parent f2321e1 commit 665f67d

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

test/test.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ test("hide(): errorWrapper", function() {
203203
var errorLabel = $('#errorWrapper');
204204
var element = $('#meal')[0];
205205
element.selectedIndex = 1;
206-
206+
207207
errorLabel.show();
208208
ok( errorLabel.is(":visible"), "Error label visible after validation" );
209209
var v = $('#testForm3').validate({ wrapper: "li", errorLabelContainer: $("#errorContainer") });
@@ -278,23 +278,23 @@ test("showErrors(), allow empty string and null as default message", function()
278278
rules: {
279279
username: {
280280
required: true,
281-
minlength: 3
281+
minlength: 3
282282
}
283283
},
284284
messages: {
285285
username: {
286286
required: "",
287287
minlength: "too short"
288-
}
288+
}
289289
}
290290
});
291291
ok( !$("#username").valid() );
292292
equals( "", $("label.error[for=username]").text() );
293-
293+
294294
$("#username").val("ab");
295295
ok( !$("#username").valid() );
296296
equals( "too short", $("label.error[for=username]").text() );
297-
297+
298298
$("#username").val("abc");
299299
ok( $("#username").valid() );
300300
ok( $("label.error[for=username]").is(":hidden") );
@@ -318,7 +318,7 @@ test("showErrors() - external messages", function() {
318318
v.form();
319319
equals( $("#testForm4 label.error[for=f1]").text(), "Please!" );
320320
equals( $("#testForm4 label.error[for=f2]").text(), "Wohoo!" );
321-
321+
322322
$.validator.methods = methods;
323323
$.validator.messages = messages;
324324
});
@@ -472,10 +472,10 @@ test("formatAndAdd", function() {
472472
v.formatAndAdd(fakeElement, {method: "maxlength", parameters: 2})
473473
equals( "Please enter no more than 2 characters.", v.errorList[0].message );
474474
equals( "bar", v.errorList[0].element.name );
475-
475+
476476
v.formatAndAdd(fakeElement, {method: "range", parameters:[2,4]})
477477
equals( "Please enter a value between 2 and 4.", v.errorList[1].message );
478-
478+
479479
v.formatAndAdd(fakeElement, {method: "range", parameters:[0,4]})
480480
equals( "Please enter a value between 0 and 4.", v.errorList[2].message );
481481
});
@@ -522,12 +522,12 @@ test("error containers, simple", function() {
522522
this.defaultShowErrors();
523523
}
524524
});
525-
525+
526526
v.prepareForm();
527527
ok( v.valid(), "form is valid" );
528528
equals( 0, container.find("label").length, "There should be no error labels" );
529529
equals( "", container.find("h3").html() );
530-
530+
531531
v.prepareForm();
532532
v.errorList = [{message:"bar", element: {name:"foo"}}, {message: "necessary", element: {name:"required"}}];
533533
ok( !v.valid(), "form is not valid after adding errors manually" );
@@ -538,7 +538,7 @@ test("error containers, simple", function() {
538538
ok( $(this).is(":visible"), "Check that each label is visible" );
539539
});
540540
equals( "There are 2 errors in your form.", container.find("h3").html() );
541-
541+
542542
v.prepareForm();
543543
ok( v.valid(), "form is valid after a reset" );
544544
v.showErrors();
@@ -558,12 +558,12 @@ test("error containers, with labelcontainer I", function() {
558558
errorLabelContainer: labelcontainer,
559559
wrapper: "li"
560560
});
561-
561+
562562
ok( v.valid(), "form is valid" );
563563
equals( 0, container.find("label").length, "There should be no error labels in the container" );
564564
equals( 0, labelcontainer.find("label").length, "There should be no error labels in the labelcontainer" );
565565
equals( 0, labelcontainer.find("li").length, "There should be no lis labels in the labelcontainer" );
566-
566+
567567
v.errorList = [{message:"bar", element: {name:"foo"}}, {name: "required", message: "necessary", element: {name:"required"}}];
568568
ok( !v.valid(), "form is not valid after adding errors manually" );
569569
v.showErrors();
@@ -603,12 +603,12 @@ test("errorcontainer, show/hide only on submit", function() {
603603
equals( "There are 2 errors in your form.", container.html() );
604604
ok( labelContainer.is(":visible"), "must be visible" );
605605
ok( container.is(":visible"), "must be visible" );
606-
606+
607607
$("#firstname").val("hix").keyup();
608608
$("#testForm1").triggerHandler("keyup", [jQuery.event.fix({ type: "keyup", target: $("#firstname")[0] })]);
609609
equals( 1, labelContainer.find("label:visible").length );
610610
equals( "There are 1 errors in your form.", container.html() );
611-
611+
612612
$("#lastname").val("abc");
613613
ok( v.form(), "Form now valid, trigger showErrors but not invalid-form" );
614614
});
@@ -853,7 +853,7 @@ test("all rules are evaluated even if one returns a dependency-mistmatch", funct
853853
equals( 0, $("#testForm1 label").size() );
854854
$("#firstname").valid();
855855
equals( 0, $("#testForm1 label").size() );
856-
856+
857857
delete $.validator.methods.custom1;
858858
delete $.validator.messages.custom1;
859859
});
@@ -897,7 +897,7 @@ test("option: subformRequired", function() {
897897
$("#bill_to_co").attr("checked", false);
898898
v.form();
899899
equals( 2, v.size() );
900-
900+
901901
delete $.validator.methods.billingRequired;
902902
delete $.validator.messages.billingRequired;
903903
});
@@ -1062,7 +1062,7 @@ test("validate checkbox on click", function() {
10621062
}
10631063
function trigger(element) {
10641064
element.click();
1065-
// triggered click event screws up checked-state in 1.4
1065+
// triggered click event screws up checked-state in 1.4
10661066
element.valid();
10671067
}
10681068
var e = $("#check2");
@@ -1088,7 +1088,7 @@ test("validate multiple checkbox on click", function() {
10881088
}
10891089
function trigger(element) {
10901090
element.click();
1091-
// triggered click event screws up checked-state in 1.4
1091+
// triggered click event screws up checked-state in 1.4
10921092
element.valid();
10931093
}
10941094
var e1 = $("#check1").attr("checked", false);
@@ -1116,7 +1116,7 @@ test("validate multiple checkbox on click", function() {
11161116
test("correct checkbox receives the error", function(){
11171117
function trigger(element) {
11181118
element.click();
1119-
// triggered click event screws up checked-state in 1.4
1119+
// triggered click event screws up checked-state in 1.4
11201120
element.valid();
11211121
}
11221122
var e1 = $("#check1").attr("checked", false);
@@ -1141,7 +1141,7 @@ test("validate radio on click", function() {
11411141
}
11421142
function trigger(element) {
11431143
element.click();
1144-
// triggered click event screws up checked-state in 1.4
1144+
// triggered click event screws up checked-state in 1.4
11451145
element.valid();
11461146
}
11471147
var e1 = $("#radio1");

0 commit comments

Comments
 (0)