fix(test): Android browser does not support element.click()
This commit is contained in:
parent
3a7b50f244
commit
c83207f231
|
@ -1703,7 +1703,7 @@ export function main() {
|
||||||
var dir = rootTC.debugElement.componentViewChildren[0].inject(
|
var dir = rootTC.debugElement.componentViewChildren[0].inject(
|
||||||
DirectiveWithPropDecorators);
|
DirectiveWithPropDecorators);
|
||||||
var native = rootTC.debugElement.componentViewChildren[0].nativeElement;
|
var native = rootTC.debugElement.componentViewChildren[0].nativeElement;
|
||||||
native.click();
|
DOM.dispatchEvent(native, DOM.createMouseEvent('click'));
|
||||||
|
|
||||||
expect(dir.target).toBe(native);
|
expect(dir.target).toBe(native);
|
||||||
async.done();
|
async.done();
|
||||||
|
|
Loading…
Reference in New Issue