mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +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
|
||||
* <script>
|
||||
* function myValidator(inputToValidate, validationDone) {
|
||||
* setTimeout(function(){
|
||||
* validationDone(inputToValidate.length % 2);
|
||||
* }, 500);
|
||||
* function MyCntl(){
|
||||
* this.myValidator = function (inputToValidate, validationDone) {
|
||||
* setTimeout(function(){
|
||||
* validationDone(inputToValidate.length % 2);
|
||||
* }, 500);
|
||||
* }
|
||||
* }
|
||||
* </script>
|
||||
* 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
|
||||
* it('should change color in delayed way', function(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue