File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
_tests/test/core/linker/integration Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ void main() {
7272 cmpElement.children
7373 .item (2 )!
7474 .children
75- .item (1 )!
75+ .item (0 )!
7676 .dispatchEvent (MouseEvent ('click' ));
7777 });
7878 expect (cmp.numberOfChecks, 4 );
Original file line number Diff line number Diff line change @@ -61,8 +61,9 @@ void main() {
6161 final inputPrevent =
6262 testFixture.rootElement.children.item (0 ) as HTMLInputElement ;
6363 final inputNoPrevent =
64- testFixture.rootElement.children.item (0 ) as HTMLInputElement ;
65- final clickPrevent = MouseEvent ('click' );
64+ testFixture.rootElement.children.item (1 ) as HTMLInputElement ;
65+ // `true` by default in the `dart:html` Event contructor
66+ final clickPrevent = MouseEvent ('click' , MouseEventInit (cancelable: true ));
6667 final clickNoPrevent = MouseEvent ('click' );
6768 inputPrevent.dispatchEvent (clickPrevent);
6869 inputNoPrevent.dispatchEvent (clickNoPrevent);
You can’t perform that action at this time.
0 commit comments