Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 13b21aa

Browse files
committed
fix(doc): example was referring to non existent CSS
1 parent 22c1db1 commit 13b21aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/directives.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -623,25 +623,25 @@ function classDirective(name, selector) {
623623
* @example
624624
<doc:example>
625625
<doc:source>
626-
<input type="button" value="set" ng:click="myVar='ng-input-indicator-wait'">
626+
<input type="button" value="set" ng:click="myVar='ng-invalid'">
627627
<input type="button" value="clear" ng:click="myVar=''">
628628
<br>
629629
<span ng:class="myVar">Sample Text &nbsp;&nbsp;&nbsp;&nbsp;</span>
630630
</doc:source>
631631
<doc:scenario>
632632
it('should check ng:class', function() {
633633
expect(element('.doc-example-live span').prop('className')).not().
634-
toMatch(/ng-input-indicator-wait/);
634+
toMatch(/ng-invalid/);
635635
636636
using('.doc-example-live').element(':button:first').click();
637637
638638
expect(element('.doc-example-live span').prop('className')).
639-
toMatch(/ng-input-indicator-wait/);
639+
toMatch(/ng-invalid/);
640640
641641
using('.doc-example-live').element(':button:last').click();
642642
643643
expect(element('.doc-example-live span').prop('className')).not().
644-
toMatch(/ng-input-indicator-wait/);
644+
toMatch(/ng-invalid/);
645645
});
646646
</doc:scenario>
647647
</doc:example>
@@ -670,7 +670,7 @@ var ngClassDirective = classDirective('', true);
670670
<ol ng:init="names=['John', 'Mary', 'Cate', 'Suz']">
671671
<li ng:repeat="name in names">
672672
<span ng:class-odd="'ng-format-negative'"
673-
ng:class-even="'ng-input-indicator-wait'">
673+
ng:class-even="'ng-invalid'">
674674
{{name}} &nbsp; &nbsp; &nbsp;
675675
</span>
676676
</li>
@@ -681,7 +681,7 @@ var ngClassDirective = classDirective('', true);
681681
expect(element('.doc-example-live li:first span').prop('className')).
682682
toMatch(/ng-format-negative/);
683683
expect(element('.doc-example-live li:last span').prop('className')).
684-
toMatch(/ng-input-indicator-wait/);
684+
toMatch(/ng-invalid/);
685685
});
686686
</doc:scenario>
687687
</doc:example>

0 commit comments

Comments
 (0)