From c83207f2316b0cd2a42dc5d5e0c556714fbc5d56 Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Tue, 8 Sep 2015 13:50:28 +0200 Subject: [PATCH] fix(test): Android browser does not support element.click() --- modules/angular2/test/core/compiler/integration_spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/test/core/compiler/integration_spec.ts b/modules/angular2/test/core/compiler/integration_spec.ts index f08c0dfe84..fe8199de81 100644 --- a/modules/angular2/test/core/compiler/integration_spec.ts +++ b/modules/angular2/test/core/compiler/integration_spec.ts @@ -1703,7 +1703,7 @@ export function main() { var dir = rootTC.debugElement.componentViewChildren[0].inject( DirectiveWithPropDecorators); var native = rootTC.debugElement.componentViewChildren[0].nativeElement; - native.click(); + DOM.dispatchEvent(native, DOM.createMouseEvent('click')); expect(dir.target).toBe(native); async.done();