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/ngSwitchSpec.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/ngSwitchSpec.js')
| -rw-r--r-- | test/ng/directive/ngSwitchSpec.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/ng/directive/ngSwitchSpec.js b/test/ng/directive/ngSwitchSpec.js index 373ce4e1..9ccb3b12 100644 --- a/test/ng/directive/ngSwitchSpec.js +++ b/test/ng/directive/ngSwitchSpec.js @@ -262,17 +262,17 @@ describe('ngSwitch ngAnimate', function() { var first = element.children()[0]; if ($sniffer.transitions) { - expect(first.className).toContain('cool-enter-setup'); + expect(first.className).toContain('cool-enter'); window.setTimeout.expect(1).process(); - expect(first.className).toContain('cool-enter-start'); + expect(first.className).toContain('cool-enter-active'); window.setTimeout.expect(1000).process(); } else { expect(window.setTimeout.queue).toEqual([]); } - expect(first.className).not.toContain('cool-enter-setup'); - expect(first.className).not.toContain('cool-enter-start'); + expect(first.className).not.toContain('cool-enter'); + expect(first.className).not.toContain('cool-enter-active'); })); @@ -307,7 +307,7 @@ describe('ngSwitch ngAnimate', function() { if ($sniffer.transitions) { - expect(first.className).toContain('cool-leave-setup'); + expect(first.className).toContain('cool-leave'); window.setTimeout.expect(1).process(); window.setTimeout.expect(1).process(); } else { @@ -316,15 +316,15 @@ describe('ngSwitch ngAnimate', function() { if ($sniffer.transitions) { - expect(first.className).toContain('cool-leave-start'); + expect(first.className).toContain('cool-leave-active'); window.setTimeout.expect(1000).process(); window.setTimeout.expect(1000).process(); } else { expect(window.setTimeout.queue).toEqual([]); } - expect(first.className).not.toContain('cool-leave-setup'); - expect(first.className).not.toContain('cool-leave-start'); + expect(first.className).not.toContain('cool-leave'); + expect(first.className).not.toContain('cool-leave-active'); })); it('should catch and use the correct duration for animation', |
