fix broken e2e test due to $window no longer published

This commit is contained in:
Misko Hevery 2011-01-10 13:55:08 -08:00
parent 4f22d6866c
commit c3e32f1a51

View file

@ -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(){