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

Commit 6df598d

Browse files
committed
chore($animate): remove useless and expired test
1 parent 4aa9df7 commit 6df598d

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

test/ngAnimate/animateSpec.js

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,41 +1918,6 @@ describe("ngAnimate", function() {
19181918
}));
19191919

19201920

1921-
it("should not set the transition property flag if only CSS animations are used",
1922-
inject(function($compile, $rootScope, $animate, $sniffer, $timeout) {
1923-
1924-
if (!$sniffer.animations) return;
1925-
1926-
ss.addRule('.sleek-animation.ng-enter', '-webkit-animation: my_animation 2s linear;' +
1927-
'animation: my_animation 2s linear');
1928-
1929-
ss.addRule('.trans.ng-enter', '-webkit-transition:1s linear all;' +
1930-
'transition:1s linear all');
1931-
1932-
var propertyKey = ($sniffer.vendorPrefix == 'Webkit' ? '-webkit-' : '') + 'transition-property';
1933-
1934-
var element = html($compile('<div>...</div>')($rootScope));
1935-
var child = $compile('<div class="skeep-animation">...</div>')($rootScope);
1936-
child.css(propertyKey,'background-color');
1937-
1938-
$animate.enter(child, element);
1939-
$rootScope.$digest();
1940-
$timeout.flush();
1941-
1942-
browserTrigger(child,'transitionend', { timeStamp: Date.now() + 2000, elapsedTime: 2 });
1943-
1944-
expect(child.css(propertyKey)).toBe('background-color');
1945-
child.remove();
1946-
1947-
child = $compile('<div class="sleek-animation">...</div>')($rootScope);
1948-
child.attr('class','trans');
1949-
$animate.enter(child, element);
1950-
$rootScope.$digest();
1951-
1952-
expect(child.css(propertyKey)).not.toBe('background-color');
1953-
}));
1954-
1955-
19561921
it("should skip animations if the browser does not support CSS3 transitions and CSS3 animations",
19571922
inject(function($compile, $rootScope, $animate, $sniffer) {
19581923

0 commit comments

Comments
 (0)