diff options
| author | Matias Niemelàˆ | 2013-05-07 17:11:39 -0400 |
|---|---|---|
| committer | Misko Hevery | 2013-05-08 16:03:31 -0700 |
| commit | 11f712bc3e310302eb2e8691cf6d110bdcde1810 (patch) | |
| tree | 5e8b27a3dc2a8b0b18a4e0560f21f007206772b5 /test/ng/directive/ngIfSpec.js | |
| parent | 14757874a7cea7961f31211b245c417bd4b20512 (diff) | |
| download | angular.js-11f712bc3e310302eb2e8691cf6d110bdcde1810.tar.bz2 | |
chore(ngAnimate): CSS classes X-setup/X-start -> X/X-active
BREAKING CHANGE: css classes foo-setup/foo-start become foo/foo-active
The CSS transition classes have changed suffixes. To migrate rename
.foo-setup {...} to .foo {...}
.foo-start {...} to .foo-active {...}
or for type: enter, leave, move, show, hide
.foo-type-setup {...} to .foo-type {...}
.foo-type-start {...} to .foo-type-active {...}
Diffstat (limited to 'test/ng/directive/ngIfSpec.js')
| -rwxr-xr-x | test/ng/directive/ngIfSpec.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ng/directive/ngIfSpec.js b/test/ng/directive/ngIfSpec.js index 3fa523a7..5726e092 100755 --- a/test/ng/directive/ngIfSpec.js +++ b/test/ng/directive/ngIfSpec.js @@ -121,16 +121,16 @@ describe('ngIf ngAnimate', function () { var first = element.children()[0]; if ($sniffer.transitions) { - expect(first.className).toContain('custom-enter-setup'); + expect(first.className).toContain('custom-enter'); window.setTimeout.expect(1).process(); - expect(first.className).toContain('custom-enter-start'); + expect(first.className).toContain('custom-enter-active'); window.setTimeout.expect(1000).process(); } else { expect(window.setTimeout.queue).toEqual([]); } - expect(first.className).not.toContain('custom-enter-setup'); - expect(first.className).not.toContain('custom-enter-start'); + expect(first.className).not.toContain('custom-enter'); + expect(first.className).not.toContain('custom-enter-active'); })); it('should fire off the leave animation + add and remove the css classes', @@ -158,9 +158,9 @@ describe('ngIf ngAnimate', function () { expect(element.children().length).toBe($sniffer.transitions ? 1 : 0); if ($sniffer.transitions) { - expect(first.className).toContain('custom-leave-setup'); + expect(first.className).toContain('custom-leave'); window.setTimeout.expect(1).process(); - expect(first.className).toContain('custom-leave-start'); + expect(first.className).toContain('custom-leave-active'); window.setTimeout.expect(1000).process(); } else { expect(window.setTimeout.queue).toEqual([]); |
