aboutsummaryrefslogtreecommitdiffstats
path: root/test/widget/inputSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/widget/inputSpec.js')
-rw-r--r--test/widget/inputSpec.js8
1 files changed, 8 insertions, 0 deletions
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('<input type="password" ng:model="name" >');
+ expect(element.attr('type')).toBe('password');
+ });
+ });
+
+
it('should ignore text widget which have no name', function() {
compile('<input type="text"/>');
expect(scope.$element.attr('ng-exception')).toBeFalsy();