aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/ngIncludeSpec.js
diff options
context:
space:
mode:
authorMatias Niemelàˆ2013-05-07 17:11:39 -0400
committerMisko Hevery2013-05-08 16:03:31 -0700
commit11f712bc3e310302eb2e8691cf6d110bdcde1810 (patch)
tree5e8b27a3dc2a8b0b18a4e0560f21f007206772b5 /test/ng/directive/ngIncludeSpec.js
parent14757874a7cea7961f31211b245c417bd4b20512 (diff)
downloadangular.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/ngIncludeSpec.js')
-rw-r--r--test/ng/directive/ngIncludeSpec.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/ng/directive/ngIncludeSpec.js b/test/ng/directive/ngIncludeSpec.js
index 46507041..2e8d7023 100644
--- a/test/ng/directive/ngIncludeSpec.js
+++ b/test/ng/directive/ngIncludeSpec.js
@@ -352,17 +352,17 @@ describe('ngInclude ngAnimate', function() {
applyCSS(child, 'transition', '1s linear all');
if ($sniffer.transitions) {
- expect(child.attr('class')).toContain('custom-enter-setup');
+ expect(child.attr('class')).toContain('custom-enter');
window.setTimeout.expect(1).process();
- expect(child.attr('class')).toContain('custom-enter-start');
+ expect(child.attr('class')).toContain('custom-enter-active');
window.setTimeout.expect(1000).process();
} else {
expect(window.setTimeout.queue).toEqual([]);
}
- expect(child.attr('class')).not.toContain('custom-enter-setup');
- expect(child.attr('class')).not.toContain('custom-enter-start');
+ expect(child.attr('class')).not.toContain('custom-enter');
+ expect(child.attr('class')).not.toContain('custom-enter-active');
}));
it('should fire off the leave animation + add and remove the css classes',
@@ -385,17 +385,17 @@ describe('ngInclude ngAnimate', function() {
$rootScope.$digest();
if ($sniffer.transitions) {
- expect(child.attr('class')).toContain('custom-leave-setup');
+ expect(child.attr('class')).toContain('custom-leave');
window.setTimeout.expect(1).process();
- expect(child.attr('class')).toContain('custom-leave-start');
+ expect(child.attr('class')).toContain('custom-leave-active');
window.setTimeout.expect(1000).process();
} else {
expect(window.setTimeout.queue).toEqual([]);
}
- expect(child.attr('class')).not.toContain('custom-leave-setup');
- expect(child.attr('class')).not.toContain('custom-leave-start');
+ expect(child.attr('class')).not.toContain('custom-leave');
+ expect(child.attr('class')).not.toContain('custom-leave-active');
}));
it('should catch and use the correct duration for animation',