mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 15:24:43 +00:00
fix broken e2e test due to $window no longer published
This commit is contained in:
parent
4f22d6866c
commit
c3e32f1a51
1 changed files with 9 additions and 5 deletions
|
|
@ -339,14 +339,18 @@ extend(angularValidator, {
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* <script>
|
* <script>
|
||||||
* function myValidator(inputToValidate, validationDone) {
|
* function MyCntl(){
|
||||||
* setTimeout(function(){
|
* this.myValidator = function (inputToValidate, validationDone) {
|
||||||
* validationDone(inputToValidate.length % 2);
|
* setTimeout(function(){
|
||||||
* }, 500);
|
* validationDone(inputToValidate.length % 2);
|
||||||
|
* }, 500);
|
||||||
|
* }
|
||||||
* }
|
* }
|
||||||
* </script>
|
* </script>
|
||||||
* This input is validated asynchronously:
|
* This input is validated asynchronously:
|
||||||
* <input name="text" ng:validate="asynchronous:$window.myValidator">
|
* <div ng:controller="MyCntl">
|
||||||
|
* <input name="text" ng:validate="asynchronous:myValidator">
|
||||||
|
* </div>
|
||||||
*
|
*
|
||||||
* @scenario
|
* @scenario
|
||||||
* it('should change color in delayed way', function(){
|
* it('should change color in delayed way', function(){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue