Skip to content

Commit

Permalink
Update test per review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bleroux committed May 2, 2023
1 parent c617135 commit 025423d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/web_ui/test/engine/text_editing_test.dart
Expand Up @@ -1943,8 +1943,9 @@ Future<void> testMain() async {
checkTextAreaEditingState(textarea, '1\n2\n3\n4\n', 8, 8);

// 'mousedown' event should be prevented.
final bool prevented = !textarea.dispatchEvent(createDomEvent('Event', 'mousedown'));
expect(prevented, true);
final DomEvent event = createDomEvent('Event', 'mousedown');
textarea.dispatchEvent(event);
expect(event.defaultPrevented, isTrue);

hideKeyboard();
});
Expand Down

0 comments on commit 025423d

Please sign in to comment.