8000 ngClass[Odd/Even] overhaul by gkalpak · Pull Request #15228 · angular/angular.js · GitHub
[go: up one dir, main page]

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

ngClass[Odd/Even] overhaul #15228

Closed
wants to merge 15 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! test(ngClass): add some tests about one-time bindings and obje…
…cts inside arrays
  • Loading branch information
gkalpak committed Oct 8, 2016
commit 16e666ba170d1671dc74f4651c49d2e2b8d9ed0c
4 changes: 3 additions & 1 deletion test/ng/directive/ngClassSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ describe('ngClass', function() {
})
);

it('should do value remove the watcher when static map one-time binding',
it('should remove the watcher when static map one-time binding',
inject(function($rootScope, $compile) {
element = $compile('<div ng-class="::{foo: fooPresent}"></div>')($rootScope);
$rootScope.$digest();
Expand All @@ -568,6 +568,8 @@ describe('ngClass', function() {
element = $compile('<div ng-class="classVar"></div>')($rootScope);
$rootScope.$digest();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth adding an expectation that it should have the class "orange" here?


expect(element).toHaveClass('orange');

$rootScope.classVar[0].orange = false;
$rootScope.$digest();

Expand Down
0