Skip to content

Commit

Permalink
Remove remaining tester params
Browse files Browse the repository at this point in the history
  • Loading branch information
angelosilvestre committed Apr 4, 2024
1 parent 8bfae43 commit e929406
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions lib/src/keyboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -604,36 +604,36 @@ extension KeyboardInput on WidgetTester {
await pumpAndSettle();
}

Future<void> pressCmdHome(WidgetTester tester) async {
await tester.sendKeyDownEvent(LogicalKeyboardKey.meta, platform: _keyEventPlatform);
await tester.sendKeyDownEvent(LogicalKeyboardKey.home, platform: _keyEventPlatform);
await tester.sendKeyUpEvent(LogicalKeyboardKey.meta, platform: _keyEventPlatform);
await tester.sendKeyUpEvent(LogicalKeyboardKey.home, platform: _keyEventPlatform);
await tester.pumpAndSettle();
}

Future<void> pressCmdEnd(WidgetTester tester) async {
await tester.sendKeyDownEvent(LogicalKeyboardKey.meta, platform: _keyEventPlatform);
await tester.sendKeyDownEvent(LogicalKeyboardKey.end, platform: _keyEventPlatform);
await tester.sendKeyUpEvent(LogicalKeyboardKey.meta, platform: _keyEventPlatform);
await tester.sendKeyUpEvent(LogicalKeyboardKey.end, platform: _keyEventPlatform);
await tester.pumpAndSettle();
}

Future<void> pressCtrlHome(WidgetTester tester) async {
await tester.sendKeyDownEvent(LogicalKeyboardKey.control, platform: _keyEventPlatform);
await tester.sendKeyDownEvent(LogicalKeyboardKey.home, platform: _keyEventPlatform);
await tester.sendKeyUpEvent(LogicalKeyboardKey.control, platform: _keyEventPlatform);
await tester.sendKeyUpEvent(LogicalKeyboardKey.home, platform: _keyEventPlatform);
await tester.pumpAndSettle();
}

Future<void> pressCtrlEnd(WidgetTester tester) async {
await tester.sendKeyDownEvent(LogicalKeyboardKey.control, platform: _keyEventPlatform);
await tester.sendKeyDownEvent(LogicalKeyboardKey.end, platform: _keyEventPlatform);
await tester.sendKeyUpEvent(LogicalKeyboardKey.control, platform: _keyEventPlatform);
await tester.sendKeyUpEvent(LogicalKeyboardKey.end, platform: _keyEventPlatform);
await tester.pumpAndSettle();
Future<void> pressCmdHome() async {
await sendKeyDownEvent(LogicalKeyboardKey.meta, platform: _keyEventPlatform);
await sendKeyDownEvent(LogicalKeyboardKey.home, platform: _keyEventPlatform);
await sendKeyUpEvent(LogicalKeyboardKey.meta, platform: _keyEventPlatform);
await sendKeyUpEvent(LogicalKeyboardKey.home, platform: _keyEventPlatform);
await pumpAndSettle();
}

Future<void> pressCmdEnd() async {
await sendKeyDownEvent(LogicalKeyboardKey.meta, platform: _keyEventPlatform);
await sendKeyDownEvent(LogicalKeyboardKey.end, platform: _keyEventPlatform);
await sendKeyUpEvent(LogicalKeyboardKey.meta, platform: _keyEventPlatform);
await sendKeyUpEvent(LogicalKeyboardKey.end, platform: _keyEventPlatform);
await pumpAndSettle();
}

Future<void> pressCtrlHome() async {
await sendKeyDownEvent(LogicalKeyboardKey.control, platform: _keyEventPlatform);
await sendKeyDownEvent(LogicalKeyboardKey.home, platform: _keyEventPlatform);
await sendKeyUpEvent(LogicalKeyboardKey.control, platform: _keyEventPlatform);
await sendKeyUpEvent(LogicalKeyboardKey.home, platform: _keyEventPlatform);
await pumpAndSettle();
}

Future<void> pressCtrlEnd() async {
await sendKeyDownEvent(LogicalKeyboardKey.control, platform: _keyEventPlatform);
await sendKeyDownEvent(LogicalKeyboardKey.end, platform: _keyEventPlatform);
await sendKeyUpEvent(LogicalKeyboardKey.control, platform: _keyEventPlatform);
await sendKeyUpEvent(LogicalKeyboardKey.end, platform: _keyEventPlatform);
await pumpAndSettle();
}

Future<void> pressCmdZ() async {
Expand Down

0 comments on commit e929406

Please sign in to comment.