test(animations): disable buggy test in Chrome 39 (#18483)

Fixes #15793
This commit is contained in:
Marc Laval 2017-08-09 23:15:40 +02:00 committed by Victor Berchet
parent e54bd59f22
commit 2f9d8ff46d
1 changed files with 13 additions and 9 deletions

View File

@ -10,11 +10,13 @@ import {AnimationDriver, ɵAnimationEngine, ɵWebAnimationsDriver, ɵWebAnimatio
import {AnimationGroupPlayer} from '@angular/animations/src/players/animation_group_player';
import {Component} from '@angular/core';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {browserDetection} from '@angular/platform-browser/testing/src/browser_util';
import {TestBed} from '../../testing';
export function main() {
// these tests are only mean't to be run within the DOM (for now)
// Buggy in Chromium 39, see https://github.com/angular/angular/issues/15793
if (typeof Element == 'undefined' || !ɵsupportsWebAnimations()) return;
describe('animation integration tests using web animations', function() {
@ -66,6 +68,7 @@ export function main() {
{height: '0px', offset: 0}, {height: '100px', offset: 1}
]);
if (!browserDetection.isOldChrome) {
cmp.exp = false;
fixture.detectChanges();
engine.flush();
@ -76,6 +79,7 @@ export function main() {
expect(webPlayer.keyframes).toEqual([
{height: '100px', offset: 0}, {height: '0px', offset: 1}
]);
}
});
it('should compute (!) animation styles for a container that is being inserted', () => {