Skip to content

Commit e72a9b6

Browse files
committed
Test: Cleanup indent
1 parent 29f9a56 commit e72a9b6

File tree

2 files changed

+53
-53
lines changed

2 files changed

+53
-53
lines changed

test/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html id="html">
33
<head>
4-
<meta charset="utf8" />
4+
<meta charset="utf-8">
55
<title>jQuery - Validation Test Suite</title>
66
<link rel="stylesheet" href="qunit/qunit.css" />
77
<script src="jquery.js"></script>
@@ -269,9 +269,9 @@ <h3></h3>
269269

270270
<form id="subformRequired">
271271
<div class="billingAddressControl">
272-
<input type="checkbox" id="bill_to_co" name="bill_to_co" class="toggleCheck" checked="checked" style="width: auto;" tabindex="1" />
273-
<label for="bill_to_co" style="cursor:pointer">Same as Company Address</label>
274-
</div>
272+
<input type="checkbox" id="bill_to_co" name="bill_to_co" class="toggleCheck" checked="checked" style="width: auto;" tabindex="1" />
273+
<label for="bill_to_co" style="cursor:pointer">Same as Company Address</label>
274+
</div>
275275
<div id="subform">
276276
<input maxlength="40" class="billingRequired" name="bill_first_name" size="20" type="text" tabindex="2" value="" />
277277
</div>
@@ -311,11 +311,11 @@ <h3></h3>
311311
<input type="date" id="rangeDateValid" name="rangeDateValid" min="2012-11-21" max="2013-01-21" value="2012-12-21"/>
312312

313313
<!-- input type text is not supposed to have min/max according to html5,
314-
but for backward compatibility with 1.10.0 we treat it as number.
315-
you can also use type="number", in which case the browser may also
316-
do validation, and mobile browsers may offer a numeric keypad to edit
317-
the value.
318-
Type absent is treated like type="text".
314+
but for backward compatibility with 1.10.0 we treat it as number.
315+
you can also use type="number", in which case the browser may also
316+
do validation, and mobile browsers may offer a numeric keypad to edit
317+
the value.
318+
Type absent is treated like type="text".
319319
-->
320320
<input type="text" id="rangeTextInvalidGreater" name="rangeTextInvalidGreater" min="50" max="200" value="1000"/>
321321
<input type="text" id="rangeTextInvalidLess" name="rangeTextInvalidLess" min="200" max="1000" value="50"/>
@@ -326,7 +326,7 @@ <h3></h3>
326326
<input id="rangeAbsentValid" name="rangeAbsentValid" min="50" max="1000" value="200"/>
327327

328328
<!-- ranges are like numbers in html5, except that browser is not required
329-
to demand an exact value. User interface could be a slider.
329+
to demand an exact value. User interface could be a slider.
330330
-->
331331
<input type="range" id="rangeRangeValid" name="rangeRangeValid" min="50" max="1000" value="200"/>
332332

test/methods.js

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -690,28 +690,28 @@ test("iban", function() {
690690
* BIC tests (For BIC definition take a look on the implementation itself)
691691
*/
692692
test("bic", function() {
693-
var method = methodTest( "bic" );
694-
695-
ok( !method( "PBNKDEF" ), "Invalid BIC: too short" );
696-
ok( !method( "DEUTDEFFA1" ), "Invalid BIC: disallowed length" );
697-
ok( !method( "PBNKDEFFXXX1" ), "Invalid BIC: too long" );
698-
ok( !method( "1BNKDEFF" ), "Invalid BIC: invalid digit" );
699-
ok( !method( "PBNKDE1F" ), "Invalid BIC: invalid digit" );
700-
ok( !method( "PBNKDEF3" ), "Invalid BIC: invalid digit" );
701-
ok( !method( "PBNKDEFO" ), "Invalid BIC: invalid char" );
702-
ok( !method( "INGDDEFFXAA" ), "Invalid BIC: invalid char" );
703-
ok( !method( "DEUTDEF0" ), "Invalid BIC: invalid digit" );
704-
705-
ok( method( "DEUTDEFF" ), "Valid BIC" );
706-
ok( method( "DEUTDEFFXXX" ), "Valid BIC" );
707-
ok( method( "PBNKDE2F" ), "Valid BIC" );
708-
ok( method( "INGDDEFF101" ), "Valid BIC" );
709-
ok( method( "INGDDEF2134" ), "Valid BIC" );
710-
ok( method( "INGDDE91XXX" ), "Valid BIC" );
711-
ok( method( "INGDDEF2" ), "Valid BIC" );
712-
ok( method( "AAFFFRP1" ), "Valid BIC" );
713-
ok( method( "DEUTDEFFAB1" ), "Valid BIC" );
714-
ok( method( "DEUTDEFFAXX" ), "Valid BIC" );
693+
var method = methodTest( "bic" );
694+
695+
ok( !method( "PBNKDEF" ), "Invalid BIC: too short" );
696+
ok( !method( "DEUTDEFFA1" ), "Invalid BIC: disallowed length" );
697+
ok( !method( "PBNKDEFFXXX1" ), "Invalid BIC: too long" );
698+
ok( !method( "1BNKDEFF" ), "Invalid BIC: invalid digit" );
699+
ok( !method( "PBNKDE1F" ), "Invalid BIC: invalid digit" );
700+
ok( !method( "PBNKDEF3" ), "Invalid BIC: invalid digit" );
701+
ok( !method( "PBNKDEFO" ), "Invalid BIC: invalid char" );
702+
ok( !method( "INGDDEFFXAA" ), "Invalid BIC: invalid char" );
703+
ok( !method( "DEUTDEF0" ), "Invalid BIC: invalid digit" );
704+
705+
ok( method( "DEUTDEFF" ), "Valid BIC" );
706+
ok( method( "DEUTDEFFXXX" ), "Valid BIC" );
707+
ok( method( "PBNKDE2F" ), "Valid BIC" );
708+
ok( method( "INGDDEFF101" ), "Valid BIC" );
709+
ok( method( "INGDDEF2134" ), "Valid BIC" );
710+
ok( method( "INGDDE91XXX" ), "Valid BIC" );
711+
ok( method( "INGDDEF2" ), "Valid BIC" );
712+
ok( method( "AAFFFRP1" ), "Valid BIC" );
713+
ok( method( "DEUTDEFFAB1" ), "Valid BIC" );
714+
ok( method( "DEUTDEFFAXX" ), "Valid BIC" );
715715
});
716716

717717
test("postcodeUK", function() {
@@ -1188,27 +1188,27 @@ test("rangeWords", function(){
11881188
});
11891189

11901190
test("currency", function() { // Works with any symbol
1191-
var method = methodTest( "currency" );
1192-
ok( method( "£9", "£"), "Symbol no decimal" );
1193-
ok( method( "£9.9", "£"), "£, one decimal" );
1194-
ok( method( "£9.99", "£"), "£, two decimal" );
1195-
ok( method( "£9.90", "£"), "Valid currency" );
1196-
ok( method( "£9,999.9", "£"), "£, thousand, comma separator, one decimal" );
1197-
ok( method( "£9,999.99", "£"), "£, thousand, comma separator, two decimal" );
1198-
ok( method( "£9,999,999.9", "£"), "£, million, comma separators, one decimal" );
1199-
ok( method( "9", ["£", false]), "Valid currency" );
1200-
ok( method( "9.9", ["£", false]), "Valid currency" );
1201-
ok( method( "9.99", ["£", false]), "Valid currency" );
1202-
ok( method( "9.90", ["£", false]), "Valid currency" );
1203-
ok( method( "9,999.9", ["£", false]), "Valid currency" );
1204-
ok( method( "9,999.99", ["£", false]), "Valid currency" );
1205-
ok( method( "9,999,999.9", ["£", false]), "Valid currency" );
1206-
ok(!method( "9,", "£"), "Invalid currency" );
1207-
ok(!method( "9,99.99", "£"), "Invalid currency" );
1208-
ok(!method( "9,", "£"), "Invalid currency" );
1209-
ok(!method( "9.999", "£"), "Invalid currency" );
1210-
ok(!method( "9.999", "£"), "Invalid currency" );
1211-
ok(!method( "9.99,9", "£"), "Invalid currency" );
1191+
var method = methodTest( "currency" );
1192+
ok( method( "£9", "£"), "Symbol no decimal" );
1193+
ok( method( "£9.9", "£"), "£, one decimal" );
1194+
ok( method( "£9.99", "£"), "£, two decimal" );
1195+
ok( method( "£9.90", "£"), "Valid currency" );
1196+
ok( method( "£9,999.9", "£"), "£, thousand, comma separator, one decimal" );
1197+
ok( method( "£9,999.99", "£"), "£, thousand, comma separator, two decimal" );
1198+
ok( method( "£9,999,999.9", "£"), "£, million, comma separators, one decimal" );
1199+
ok( method( "9", ["£", false]), "Valid currency" );
1200+
ok( method( "9.9", ["£", false]), "Valid currency" );
1201+
ok( method( "9.99", ["£", false]), "Valid currency" );
1202+
ok( method( "9.90", ["£", false]), "Valid currency" );
1203+
ok( method( "9,999.9", ["£", false]), "Valid currency" );
1204+
ok( method( "9,999.99", ["£", false]), "Valid currency" );
1205+
ok( method( "9,999,999.9", ["£", false]), "Valid currency" );
1206+
ok(!method( "9,", "£"), "Invalid currency" );
1207+
ok(!method( "9,99.99", "£"), "Invalid currency" );
1208+
ok(!method( "9,", "£"), "Invalid currency" );
1209+
ok(!method( "9.999", "£"), "Invalid currency" );
1210+
ok(!method( "9.999", "£"), "Invalid currency" );
1211+
ok(!method( "9.99,9", "£"), "Invalid currency" );
12121212
});
12131213

12141214
})(jQuery);

0 commit comments

Comments
 (0)