aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/inputSpec.js
diff options
context:
space:
mode:
authorIgor Minar2012-04-09 11:20:55 -0700
committerIgor Minar2012-04-09 11:48:54 -0700
commit0f89383d981d0144c6db92b163edcc545d6b5222 (patch)
tree3eb2c5acb653840f7f1cfea6e198d0889edac63c /test/ng/directive/inputSpec.js
parent10daefc6f466a21d9418437666461c80cf24fcfe (diff)
downloadangular.js-0f89383d981d0144c6db92b163edcc545d6b5222.tar.bz2
chore(tests): rename all directive names to the normalized form
Diffstat (limited to 'test/ng/directive/inputSpec.js')
-rw-r--r--test/ng/directive/inputSpec.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/ng/directive/inputSpec.js b/test/ng/directive/inputSpec.js
index 395f37c3..9f8b21c4 100644
--- a/test/ng/directive/inputSpec.js
+++ b/test/ng/directive/inputSpec.js
@@ -233,7 +233,7 @@ describe('NgModelController', function() {
});
});
-describe('ng-model', function() {
+describe('ngModel', function() {
it('should set css classes (ng-valid, ng-invalid, ng-pristine, ng-dirty)',
inject(function($compile, $rootScope, $sniffer) {
@@ -376,7 +376,7 @@ describe('input', function() {
});
- it('should ignore input without ng-model attr', function() {
+ it('should ignore input without ngModel directive', function() {
compileInput('<input type="text" name="whatever" required />');
changeInputValueTo('');
@@ -750,7 +750,7 @@ describe('input', function() {
describe('checkbox', function() {
- it('should ignore checkbox without ng-model attr', function() {
+ it('should ignore checkbox without ngModel directive', function() {
compileInput('<input type="checkbox" name="whatever" required />');
changeInputValueTo('');
@@ -847,7 +847,7 @@ describe('input', function() {
});
- it('should ignore textarea without ng-model attr', function() {
+ it('should ignore textarea without ngModel directive', function() {
compileInput('<textarea name="whatever" required></textarea>');
inputElm = formElm.find('textarea');
@@ -860,7 +860,7 @@ describe('input', function() {
});
- describe('ng-list', function() {
+ describe('ngList', function() {
it('should parse text into an array', function() {
compileInput('<input type="text" ng-model="list" ng-list />');
@@ -941,7 +941,7 @@ describe('input', function() {
describe('required', function() {
- it('should allow bindings on ng-required', function() {
+ it('should allow bindings via ngRequired', function() {
compileInput('<input type="text" ng-model="value" ng-required="required" />');
scope.$apply(function() {
@@ -1015,7 +1015,7 @@ describe('input', function() {
});
- describe('ng-change', function() {
+ describe('ngChange', function() {
it('should $eval expression after new value is set in the model', function() {
compileInput('<input type="text" ng-model="value" ng-change="change()" />');
@@ -1040,7 +1040,7 @@ describe('input', function() {
});
- it('should $eval ng-change expression on checkbox', function() {
+ it('should $eval ngChange expression on checkbox', function() {
compileInput('<input type="checkbox" ng-model="foo" ng-change="changeFn()">');
scope.changeFn = jasmine.createSpy('changeFn');
@@ -1053,7 +1053,7 @@ describe('input', function() {
});
- describe('ng-value', function() {
+ describe('ngValue', function() {
it('should evaluate and set constant expressions', function() {
compileInput('<input type="radio" ng-model="selected" ng-value="true">' +
@@ -1090,7 +1090,7 @@ describe('input', function() {
});
- it('should work inside ng-repeat', function() {
+ it('should work inside ngRepeat', function() {
compileInput(
'<input type="radio" ng-repeat="i in items" ng-model="$parent.selected" ng-value="i.id">');