8000 docs(ngClass): add class 'has-error' to demonstrate hyphen use by qbzzt · Pull Request #12027 · 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.

docs(ngClass): add class 'has-error' to demonstrate hyphen use #12027

Closed
wants to merge 4 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
Fixed the tests to deal with the new class name
  • Loading branch information
qbzzt committed Jun 4, 2015
commit 9d75b0bf1bc1e10f7ebf46b0c6262a8dc88bb3e1
4 changes: 2 additions & 2 deletions src/ng/directive/ngClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ function classDirective(name, selector) {
it('should let you toggle the class', function() {

expect(ps.first().getAttribute('class')).not.toMatch(/bold/);
expect(ps.first().getAttribute('class')).not.toMatch(/red/);
expect(ps.first().getAttribute('class')).not.toMatch(/has-error/);

element(by.model('important')).click();
expect(ps.first().getAttribute('class')).toMatch(/bold/);

element(by.model('error')).click();
expect(ps.first().getAttribute('class')).toMatch(/red/);
expect(ps.first().getAttribute('class')).toMatch(/has-error/);
});

it('should let you toggle string example', function() {
Expand Down
0