21 Commits

Author SHA1 Message Date
77ad6bc008 Fixes #15678: Fixed resetForm method in yii.activeForm.js which used an undefined variable 2018-02-23 12:58:47 +03:00
c009b06114 Fixes #14604: Fixed yii\validators\CompareValidator compareAttribute does not work if compareAttribute form ID has been changed 2017-11-15 00:43:14 +03:00
732e7d9cbf Merge pull request #14935 from rob006/email-validator
Add tests with double dot for EmailValidator
2017-10-06 18:26:42 +03:00
7e681b4a56 Fixed yii.js to follow jquery-pjax API changes
Fixes #14926
2017-10-06 12:19:13 +03:00
a9f2827f87 Add tests with double dot for EmailValidator. 2017-10-06 10:05:56 +02:00
85f8709f14 Fixed test 2017-10-04 18:41:45 +03:00
0e240ef2d0 Container type for pjax must be string 2017-10-04 18:41:39 +03:00
8f2d9baf98 Fixes #14186, Fixes #14510: yiiActiveForm regressions
- #14186: Forced validation in `yiiActiveForm` do not trigger `afterValidate` event
- #14510: The state of a form is always "not validated" when using forced validation in `yiiActiveForm`
2017-07-29 14:37:29 +03:00
a731fd4142 Fixes #14318: Trigger yiiActiveForm.events.afterValidateAttribute after updating attribute 2017-07-24 23:25:47 +03:00
ab68caa867 Removed unused local var in JS test (#14093) 2017-06-11 19:20:31 +03:00
33cff4b5cc Cleanup after #14017 (#14091) 2017-05-01 11:58:02 +02:00
b00cd65ef3 Fixes #13738: Fixed getQueryParams() method in yii.js to correctly parse URL with question mark and no query parameters 2017-03-16 14:15:05 +03:00
cdb21d7e2c Added JS tests for # #13379 2017-02-28 00:58:25 +06:00
323568c2e9 Remove trailing spaces from sources and tests (#13621) [skip ci] 2017-02-19 17:34:22 +03:00
6b8cf1709e Fixes #13306: Wildcard in reloadableScripts in yii.js allows 0 characters 2017-02-18 22:01:01 +03:00
8e1a4208ed Improved way of testing jQuery's AJAX "script" and "jsonp" requests (#13554) 2017-02-14 00:13:56 +03:00
37f19a0256 Fixes #13300, #13307, #13310, #13312
- Bug #13300: Allow pjax with "data-pjax" with no value in `yii.js`.
- Bug #13307: Preventing of race conditions in script filter in `yii.js` works incorrectly.
- Bug #13310: Handle relative and absolute URLs coincidence in CSS filter in `yii.js`.
- Bug #13312: `skipOuterContainers` option was incorrectly passed to pjax in `handleAction` in `yii.js`.
- Partially fixes #13299.

Adds tests for #8014, #11921, #10974, #11494, #10358, #10097.
2017-01-25 11:00:13 +03:00
8d813f7bf1 Fixes #12840, #12836, #13231, #13232
Additionally added tests for #10302 (#10284 (comment)), #10284 (#10217 (comment)), #11729
2016-12-18 12:06:17 +03:00
a132ee9a08 Fixed order or checks in IpValidator
Fixes #13198
2016-12-13 18:14:04 +02:00
d96363674c Added JS tests for yii.captcha.js (#12840), fixes #13159 (#13160)
* Added JS tests for yii.captcha.js (#12840), fixes #13159

* Sinon needs to be imported in similar fashion in other test files

* Added according line to CHANGELOG [skip ci]

* Update CHANGELOG.md

* Try to run tests with default timeout in Travis

* Added note about JS tests to the docs [skip ci]

* Simplified tests for multiple elements (init, destroy methods)
2016-12-10 14:42:28 +02:00
8ea1f510af Implemented Javascript test suite
fixes #12840

Used @nkovacs draft as starting
point(https://github.com/yiisoft/yii2/issues/11037#issuecomment-193356450).
I also fixed some bugs in `yii.validation.js` and did some refactoring.

Implemented tests:

- yii.validation.js

Running tests:

- Install Node.js. I used the latest version available at the moment -
  `v7.1.0`. Note that used `jsdom` dependent library version requires
`Node.js >= 4`.
- Run `npm install` to install dependencies.
- Execute `npm test` for running tests.
2016-12-01 11:25:18 +01:00