test(animations): disable buggy test in Chrome 39 (#18483)
Fixes #15793
This commit is contained in:
parent
e54bd59f22
commit
2f9d8ff46d
|
@ -10,11 +10,13 @@ import {AnimationDriver, ɵAnimationEngine, ɵWebAnimationsDriver, ɵWebAnimatio
|
||||||
import {AnimationGroupPlayer} from '@angular/animations/src/players/animation_group_player';
|
import {AnimationGroupPlayer} from '@angular/animations/src/players/animation_group_player';
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
||||||
|
import {browserDetection} from '@angular/platform-browser/testing/src/browser_util';
|
||||||
|
|
||||||
import {TestBed} from '../../testing';
|
import {TestBed} from '../../testing';
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
// these tests are only mean't to be run within the DOM (for now)
|
// 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;
|
if (typeof Element == 'undefined' || !ɵsupportsWebAnimations()) return;
|
||||||
|
|
||||||
describe('animation integration tests using web animations', function() {
|
describe('animation integration tests using web animations', function() {
|
||||||
|
@ -66,16 +68,18 @@ export function main() {
|
||||||
{height: '0px', offset: 0}, {height: '100px', offset: 1}
|
{height: '0px', offset: 0}, {height: '100px', offset: 1}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
cmp.exp = false;
|
if (!browserDetection.isOldChrome) {
|
||||||
fixture.detectChanges();
|
cmp.exp = false;
|
||||||
engine.flush();
|
fixture.detectChanges();
|
||||||
|
engine.flush();
|
||||||
|
|
||||||
expect(engine.players.length).toEqual(1);
|
expect(engine.players.length).toEqual(1);
|
||||||
webPlayer = engine.players[0].getRealPlayer() as ɵWebAnimationsPlayer;
|
webPlayer = engine.players[0].getRealPlayer() as ɵWebAnimationsPlayer;
|
||||||
|
|
||||||
expect(webPlayer.keyframes).toEqual([
|
expect(webPlayer.keyframes).toEqual([
|
||||||
{height: '100px', offset: 0}, {height: '0px', offset: 1}
|
{height: '100px', offset: 0}, {height: '0px', offset: 1}
|
||||||
]);
|
]);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should compute (!) animation styles for a container that is being inserted', () => {
|
it('should compute (!) animation styles for a container that is being inserted', () => {
|
||||||
|
|
Loading…
Reference in New Issue