Skip to content

Commit c83207f

Browse files
committed
fix(test): Android browser does not support element.click()
1 parent 3a7b50f commit c83207f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/test/core/compiler/integration_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ export function main() {
17031703
var dir = rootTC.debugElement.componentViewChildren[0].inject(
17041704
DirectiveWithPropDecorators);
17051705
var native = rootTC.debugElement.componentViewChildren[0].nativeElement;
1706-
native.click();
1706+
DOM.dispatchEvent(native, DOM.createMouseEvent('click'));
17071707

17081708
expect(dir.target).toBe(native);
17091709
async.done();

0 commit comments

Comments
 (0)