diff options
| author | Misko Hevery | 2012-02-03 09:51:29 -0800 |
|---|---|---|
| committer | Misko Hevery | 2012-02-21 22:45:59 -0800 |
| commit | 13b21aaf5ac7267288fd94a50ece9a1f1ec2e379 (patch) | |
| tree | 8cfbbbd4f6426c62bd82270469f2e87943e4a115 /src/directives.js | |
| parent | 22c1db17444e09bcf13b0f24f4f805a65d8a3be0 (diff) | |
| download | angular.js-13b21aaf5ac7267288fd94a50ece9a1f1ec2e379.tar.bz2 | |
fix(doc): example was referring to non existent CSS
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/directives.js b/src/directives.js index 70b09c88..47a6ef56 100644 --- a/src/directives.js +++ b/src/directives.js @@ -623,7 +623,7 @@ function classDirective(name, selector) { * @example <doc:example> <doc:source> - <input type="button" value="set" ng:click="myVar='ng-input-indicator-wait'"> + <input type="button" value="set" ng:click="myVar='ng-invalid'"> <input type="button" value="clear" ng:click="myVar=''"> <br> <span ng:class="myVar">Sample Text </span> @@ -631,17 +631,17 @@ function classDirective(name, selector) { <doc:scenario> it('should check ng:class', function() { expect(element('.doc-example-live span').prop('className')).not(). - toMatch(/ng-input-indicator-wait/); + toMatch(/ng-invalid/); using('.doc-example-live').element(':button:first').click(); expect(element('.doc-example-live span').prop('className')). - toMatch(/ng-input-indicator-wait/); + toMatch(/ng-invalid/); using('.doc-example-live').element(':button:last').click(); expect(element('.doc-example-live span').prop('className')).not(). - toMatch(/ng-input-indicator-wait/); + toMatch(/ng-invalid/); }); </doc:scenario> </doc:example> @@ -670,7 +670,7 @@ var ngClassDirective = classDirective('', true); <ol ng:init="names=['John', 'Mary', 'Cate', 'Suz']"> <li ng:repeat="name in names"> <span ng:class-odd="'ng-format-negative'" - ng:class-even="'ng-input-indicator-wait'"> + ng:class-even="'ng-invalid'"> {{name}} </span> </li> @@ -681,7 +681,7 @@ var ngClassDirective = classDirective('', true); expect(element('.doc-example-live li:first span').prop('className')). toMatch(/ng-format-negative/); expect(element('.doc-example-live li:last span').prop('className')). - toMatch(/ng-input-indicator-wait/); + toMatch(/ng-invalid/); }); </doc:scenario> </doc:example> |
