chore(build): make the unit tests campaign to run again in Edge

This commit is contained in:
mlaval 2015-11-26 15:54:25 +01:00 committed by Jeremy Elbourn
parent 2a4ac63a34
commit 4fa1809f80
1 changed files with 43 additions and 37 deletions

View File

@ -9,7 +9,8 @@ import {
el,
SpyObject,
AsyncTestCompleter,
inject
inject,
browserDetection
} from 'angular2/testing_internal';
import {
@ -62,6 +63,9 @@ export function main() {
expect(called).toBe(false);
});
// Makes Edge to disconnect when running the full unit test campaign
// TODO: remove when issue is solved: https://github.com/angular/angular/issues/4756
if (!browserDetection.isEdge) {
it("delivers next and error events asynchronously", inject([AsyncTestCompleter], (async) => {
let log = [];
ObservableWrapper.subscribe(emitter,
@ -81,7 +85,8 @@ export function main() {
log.push(5);
}));
it("delivers next and complete events asynchronously", inject([AsyncTestCompleter], (async) => {
it("delivers next and complete events asynchronously",
inject([AsyncTestCompleter], (async) => {
let log = [];
ObservableWrapper.subscribe(emitter,
(x) => {
@ -99,6 +104,7 @@ export function main() {
ObservableWrapper.callComplete(emitter);
log.push(5);
}));
}
it('delivers events synchronously', () => {
var e = new EventEmitter(false);