From e82e64d57b65d9f3c4f2e8831f30b615a069b7f6 Mon Sep 17 00:00:00 2001 From: Konstantin Stepanov Date: Tue, 18 Oct 2011 02:18:27 +0300 Subject: fix(input): recognize 'password' as an html input type --- test/widget/inputSpec.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/widget/inputSpec.js') diff --git a/test/widget/inputSpec.js b/test/widget/inputSpec.js index a4fc86aa..837d8c83 100644 --- a/test/widget/inputSpec.js +++ b/test/widget/inputSpec.js @@ -405,6 +405,14 @@ describe('widget: input', function() { }); + describe('password', function () { + it('should not change password type to text', function () { + compile(''); + expect(element.attr('type')).toBe('password'); + }); + }); + + it('should ignore text widget which have no name', function() { compile(''); expect(scope.$element.attr('ng-exception')).toBeFalsy(); -- cgit v1.2.3