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

Commit 36efe6c

Browse files
committed
test($animateCss): avoid unnecessary checking for transition-timing-function
There is no need to check for this in the test and it adds complexity for linux-based browsers.
1 parent 5081982 commit 36efe6c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/ngAnimate/animateCssSpec.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,7 +2130,7 @@ describe("ngAnimate $animateCss", function() {
21302130
expect(style).toContain('ease-in');
21312131
}));
21322132

2133-
it("should only execute the animation if any CSS to styles are mixed into together",
2133+
it("should execute the animation only if there is any provided CSS styling to go with the transition",
21342134
inject(function($animateCss, $rootElement) {
21352135

21362136
var options = {
@@ -2142,15 +2142,13 @@ describe("ngAnimate $animateCss", function() {
21422142

21432143
expect(element.css(prefix + 'transition-delay')).not.toEqual('4s');
21442144
expect(element.css(prefix + 'transition-duration')).not.toEqual('6s');
2145-
expect(element.css(prefix + 'transition-timing-function')).not.toEqual('ease-out');
21462145

21472146
options.to = { color: 'brown' };
21482147
$animateCss(element, options).start();
21492148
triggerAnimationStartFrame();
21502149

21512150
expect(element.css(prefix + 'transition-delay')).toEqual('4s');
21522151
expect(element.css(prefix + 'transition-duration')).toEqual('6s');
2153-
expect(element.css(prefix + 'transition-timing-function')).toEqual('ease-out');
21542152
}));
21552153
});
21562154

0 commit comments

Comments
 (0)