Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adjust failing tests to new menu position
  • Loading branch information
justinmc committed Apr 18, 2023
commit 5eb881c48f0b88149f11045b47cecda8da8730fb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ void main() {

testWidgets('positions toolbar below anchor when it fits above bottom view padding', (WidgetTester tester) async {
// We expect the toolbar to be positioned right below the anchor with padding accounted for.
const double expectedToolbarY =
_kAnchor + (2 * SpellCheckSuggestionsToolbar.kToolbarContentDistanceBelow) - CupertinoTextSelectionToolbar.kToolbarScreenPadding;
const double expectedToolbarY = _kAnchor
+ SpellCheckSuggestionsToolbar.kToolbarContentDistanceBelow;

await tester.pumpWidget(
MaterialApp(
Expand All @@ -69,8 +69,9 @@ void main() {

testWidgets('re-positions toolbar higher below anchor when it does not fit above bottom view padding', (WidgetTester tester) async {
// We expect the toolbar to be positioned _kTestToolbarOverlap pixels above the anchor with padding accounted for.
const double expectedToolbarY =
_kAnchor + (2 * SpellCheckSuggestionsToolbar.kToolbarContentDistanceBelow) - CupertinoTextSelectionToolbar.kToolbarScreenPadding - _kTestToolbarOverlap;
const double expectedToolbarY = _kAnchor
+ SpellCheckSuggestionsToolbar.kToolbarContentDistanceBelow
- _kTestToolbarOverlap;

await tester.pumpWidget(
MaterialApp(
Expand Down