Merge branch 'main' into pipelines/run-20261112-2323-read-chat-replies-aloud-with-word-highli-e079

This commit is contained in:
2026-11-13 01:29:09 +00:00
18 changed files with 668 additions and 126 deletions
@@ -106,7 +106,11 @@ void main() {
await tester.sendKeyEvent(LogicalKeyboardKey.keyA);
await tester.pump();
expect(count, 0, reason: 'a key with no focus in the pane is not its input');
expect(
count,
0,
reason: 'a key with no focus in the pane is not its input',
);
focus.requestFocus();
await tester.pump();
@@ -116,7 +120,9 @@ void main() {
expect(count, 1);
});
testWidgets('code-driven focus into the pane reports nothing', (tester) async {
testWidgets('code-driven focus into the pane reports nothing', (
tester,
) async {
var count = 0;
final focus = FocusNode();
addTearDown(focus.dispose);
@@ -127,7 +133,11 @@ void main() {
await tester.pump(const Duration(seconds: 1));
expect(focus.hasFocus, isTrue);
expect(count, 0, reason: 'focus moved in code, with no key press, is passive');
expect(
count,
0,
reason: 'focus moved in code, with no key press, is passive',
);
});
testWidgets('Tab from outside the pane into it reports once', (tester) async {
@@ -38,8 +38,12 @@ void main() {
tester,
) async {
final gateway = await pumpThread(tester);
await tester.tap(find.byTooltip('More actions').hitTestable().first);
await tester.pumpAndSettle();
// With nothing else to offer, the bar shows no More menu at all.
final more = find.byTooltip('More actions').hitTestable();
if (more.evaluate().isNotEmpty) {
await tester.tap(more.first);
await tester.pumpAndSettle();
}
expect(find.text('Stop'), findsNothing);
expect(gateway.interruptBodies, isEmpty);
});