Skip to content

Commit 9642623

Browse files
authored
Specify widget height in EditableText shortcuts tests (#98607)
1 parent 95d1fab commit 9642623

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/flutter/test/widgets/editable_text_shortcuts_tests.dart renamed to packages/flutter/test/widgets/editable_text_shortcuts_test.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ void main() {
6969
child: SizedBox(
7070
// Softwrap at exactly 20 characters.
7171
width: 201,
72+
height: 200,
7273
child: EditableText(
7374
controller: controller,
7475
showSelectionHandles: true,
@@ -118,7 +119,7 @@ void main() {
118119
expect(controller.selection, const TextSelection.collapsed(offset: -1), reason: activator.toString());
119120
}
120121
},
121-
skip: kIsWeb, // [intended]
122+
skip: kIsWeb, // [intended] on web these keys are handled by the browser.
122123
variant: TargetPlatformVariant.all(),
123124
);
124125

@@ -1627,7 +1628,7 @@ void main() {
16271628
});
16281629
});
16291630
},
1630-
skip: kIsWeb, // [intended]
1631+
skip: kIsWeb, // [intended] on web these keys are handled by the browser.
16311632
);
16321633

16331634
group('macOS shortcuts', () {
@@ -1796,5 +1797,5 @@ void main() {
17961797
affinity: TextAffinity.upstream,
17971798
));
17981799
}, variant: macOSOnly);
1799-
});
1800+
}, skip: kIsWeb); // [intended] on web these keys are handled by the browser.
18001801
}

0 commit comments

Comments
 (0)