Commit Graph

13 Commits

Author SHA1 Message Date
vvakame
4de74cb527 normalize line ending (CRLF -> LF) 2016-02-16 01:20:30 +09:00
Nathan Pitman
9319bd0b03 Update jquery.validation bindings and tests. Changes include:
* Relaxed $.validator.format so that the arguments don't have to be strings. Added overloads, so that if called with just a template and no arguments, it returns a curried function, as per http://jqueryvalidation.org/category/validator/. $.format might need changing (?) but I haven't touched it as it's deprecated anyway. Added tests.
* Place everything inside a JQueryValidation module to avoid cluttering the global namespace
* Split Validator into Validator and ValidatorStatic interfaces for correctness. Subdivide tests accordingly.
* Change rules to be typed as a RulesDictionary rather than an Object.
* Change ValidationOptions.groups to be { [groupName: string]: string } rather than Object.
* Change ValidationOptions.onclick, onfocusout and onkeyup from bool | Function to ShouldValidatePredicate, an alias for boolean | ((element: HTMLElement, event: JQueryEventObject) => void). Added more tests
2015-07-02 23:03:43 +12:00
Louis-Philippe Perras
e8a6d12dc7 Updated the tests test JQuery param.
Added a new test to validate that the element union now accepts JQuery object.
2015-02-04 18:09:38 -05:00
Maks3w
e07da8a6fa [jquery.validation][1.11.1] invalidElements and validElements methods 2014-11-09 12:09:26 +01:00
John Reilly
da1982687c jQuery.validation: Gave definition to errorMap 2014-01-02 15:49:20 +00:00
Igor Oleinikov
49ddab3a0b Merge remote-tracking branch 'remotes/upstream/switch-0.9.5' into switch-0.9.5
Conflicts:
	jquery/jquery-tests.ts
	q/Q-tests.ts
	q/Q.d.ts
2013-12-23 15:40:56 +04:00
johnnyreilly
15e43db83a jQuery.validation: Fix tests 2013-12-23 10:17:28 +00:00
Igor Oleinikov
d33450a368 jquery.validation: fix test 2013-12-18 20:36:55 +04:00
John Reilly
6b8d398be9 Added errorList / errorMap properties and valid / size / hideErrors functions with associated tests 2013-10-10 17:02:39 +01:00
Diullei Gomes
0ea971ff59 fix jquery.form tests 2013-02-24 13:31:08 -03:00
Boris Yankov
209d95071a Update reference paths 2013-01-17 20:03:30 +02:00
Boris Yankov
7c82efb17a Update reference paths 2012-11-19 01:28:08 +02:00
Boris Yankov
c91c45f9ae Move definitions and test in separate folders
This enables each definition to have a readme if necessary.
Also a .json metadata file to help with package managers.
And last, to have different versions of the definitions.
2012-11-18 22:28:44 +02:00