diff --git a/modules/@angular/upgrade/test/upgrade_spec.ts b/modules/@angular/upgrade/test/upgrade_spec.ts index 90f21c510c..6f4354b1be 100644 --- a/modules/@angular/upgrade/test/upgrade_spec.ts +++ b/modules/@angular/upgrade/test/upgrade_spec.ts @@ -1023,6 +1023,13 @@ export function main() { expect($onDestroySpy).toHaveBeenCalled(); ref.dispose(); + + if (!(global as any)['requestAnimationFrame']) { + // Needed for browser which don't support RAF and use a 16.6 setTimeout instead in + // ng1's AnimateRunner. + // This setTimeout remains at the end of the test and needs to be discarded. + tick(20); + } }); }));