fix(test): Android browser does not support element.click()

This commit is contained in:
Marc Laval 2015-09-08 13:50:28 +02:00
parent 3a7b50f244
commit c83207f231
1 changed files with 1 additions and 1 deletions

View File

@ -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();