Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2530f4c5
Unverified
Commit
2530f4c5
authored
Mar 11, 2021
by
Michael Goderbauer
Committed by
GitHub
Mar 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some issues flagged by unawaited_futures lint (#77844)
parent
32474dca
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
17 deletions
+17
-17
animation_controller_test.dart
...ges/flutter/test/animation/animation_controller_test.dart
+2
-2
checkbox_test.dart
packages/flutter/test/material/checkbox_test.dart
+1
-1
outline_button_test.dart
packages/flutter/test/material/outline_button_test.dart
+1
-1
outlined_button_test.dart
packages/flutter/test/material/outlined_button_test.dart
+1
-1
radio_test.dart
packages/flutter/test/material/radio_test.dart
+1
-1
switch_test.dart
packages/flutter/test/material/switch_test.dart
+1
-1
text_field_test.dart
packages/flutter/test/material/text_field_test.dart
+2
-2
tooltip_test.dart
packages/flutter/test/material/tooltip_test.dart
+1
-1
custom_multi_child_layout_test.dart
.../flutter/test/widgets/custom_multi_child_layout_test.dart
+7
-7
No files found.
packages/flutter/test/animation/animation_controller_test.dart
View file @
2530f4c5
...
...
@@ -791,7 +791,7 @@ void main() {
expect
(
repeating
.
animationBehavior
,
AnimationBehavior
.
preserve
);
});
test
(
'AnimationBehavior.preserve runs at normal speed when animatingTo'
,
()
async
{
test
(
'AnimationBehavior.preserve runs at normal speed when animatingTo'
,
()
{
debugSemanticsDisableAnimations
=
true
;
final
AnimationController
controller
=
AnimationController
(
vsync:
const
TestVSync
(),
...
...
@@ -816,7 +816,7 @@ void main() {
debugSemanticsDisableAnimations
=
false
;
});
test
(
'AnimationBehavior.normal runs at 20x speed when animatingTo'
,
()
async
{
test
(
'AnimationBehavior.normal runs at 20x speed when animatingTo'
,
()
{
debugSemanticsDisableAnimations
=
true
;
final
AnimationController
controller
=
AnimationController
(
vsync:
const
TestVSync
(),
...
...
packages/flutter/test/material/checkbox_test.dart
View file @
2530f4c5
...
...
@@ -1193,7 +1193,7 @@ void main() {
await
tester
.
pumpWidget
(
buildCheckbox
(
false
));
expect
(
find
.
byType
(
Checkbox
),
findsNothing
);
// Release pointer after widget disappeared.
gesture
.
up
();
await
gesture
.
up
();
});
}
...
...
packages/flutter/test/material/outline_button_test.dart
View file @
2530f4c5
...
...
@@ -106,7 +106,7 @@ void main() {
final
RenderObject
inkFeatures
=
tester
.
allRenderObjects
.
firstWhere
((
RenderObject
object
)
=>
object
.
runtimeType
.
toString
()
==
'_RenderInkFeatures'
);
expect
(
inkFeatures
,
paints
..
rect
(
color:
hoverColor
));
gesture
.
removePointer
();
await
gesture
.
removePointer
();
});
testWidgets
(
'OutlineButton changes mouse cursor when hovered'
,
(
WidgetTester
tester
)
async
{
...
...
packages/flutter/test/material/outlined_button_test.dart
View file @
2530f4c5
...
...
@@ -187,7 +187,7 @@ void main() {
final
RenderObject
inkFeatures
=
tester
.
allRenderObjects
.
firstWhere
((
RenderObject
object
)
=>
object
.
runtimeType
.
toString
()
==
'_RenderInkFeatures'
);
expect
(
inkFeatures
,
paints
..
rect
(
color:
hoverColor
));
gesture
.
removePointer
();
await
gesture
.
removePointer
();
});
testWidgets
(
'Does OutlinedButton work with focus'
,
(
WidgetTester
tester
)
async
{
...
...
packages/flutter/test/material/radio_test.dart
View file @
2530f4c5
...
...
@@ -1101,6 +1101,6 @@ void main() {
await
tester
.
pumpWidget
(
buildRadio
(
false
));
expect
(
find
.
byKey
(
key
),
findsNothing
);
// Release pointer after widget disappeared.
gesture
.
up
();
await
gesture
.
up
();
});
}
packages/flutter/test/material/switch_test.dart
View file @
2530f4c5
...
...
@@ -1631,6 +1631,6 @@ void main() {
await
tester
.
pumpWidget
(
buildSwitch
(
false
));
expect
(
find
.
byType
(
Switch
),
findsNothing
);
// Release pointer after widget disappeared.
gesture
.
up
();
await
gesture
.
up
();
});
}
packages/flutter/test/material/text_field_test.dart
View file @
2530f4c5
...
...
@@ -8817,14 +8817,14 @@ void main() {
// Regression test for https://github.com/flutter/flutter/issues/54729
// If the intrinsic height does not match that of the height after
// performLayout, this will fail.
tester
.
pumpWidget
(
_buildTest
(
isDense:
false
));
await
tester
.
pumpWidget
(
_buildTest
(
isDense:
false
));
});
testWidgets
(
'When isDense, intrinsic height can go below kMinInteractiveDimension height'
,
(
WidgetTester
tester
)
async
{
// Regression test for https://github.com/flutter/flutter/issues/54729
// If the intrinsic height does not match that of the height after
// performLayout, this will fail.
tester
.
pumpWidget
(
_buildTest
(
isDense:
true
));
await
tester
.
pumpWidget
(
_buildTest
(
isDense:
true
));
});
});
});
...
...
packages/flutter/test/material/tooltip_test.dart
View file @
2530f4c5
...
...
@@ -857,7 +857,7 @@ void main() {
// keep holding the long press, should still show tooltip
await
tester
.
pump
(
kLongPressTimeout
);
expect
(
find
.
text
(
tooltipText
),
findsOneWidget
);
gesture
.
up
();
await
gesture
.
up
();
});
testWidgets
(
'Tooltip shows/hides when hovered'
,
(
WidgetTester
tester
)
async
{
...
...
packages/flutter/test/widgets/custom_multi_child_layout_test.dart
View file @
2530f4c5
...
...
@@ -303,7 +303,7 @@ void main() {
}
testWidgets
(
'layoutChild on non existent child'
,
(
WidgetTester
tester
)
async
{
expectFlutterErrorMessage
(
await
expectFlutterErrorMessage
(
tester:
tester
,
delegate:
ZeroAndOneIdLayoutDelegate
(),
message:
...
...
@@ -315,7 +315,7 @@ void main() {
});
testWidgets
(
'layoutChild more than once'
,
(
WidgetTester
tester
)
async
{
expectFlutterErrorMessage
(
await
expectFlutterErrorMessage
(
tester:
tester
,
delegate:
DuplicateLayoutDelegate
(),
message:
...
...
@@ -327,7 +327,7 @@ void main() {
});
testWidgets
(
'layoutChild on invalid size constraint'
,
(
WidgetTester
tester
)
async
{
expectFlutterErrorMessage
(
await
expectFlutterErrorMessage
(
tester:
tester
,
delegate:
InvalidConstraintsChildLayoutDelegate
(),
message:
...
...
@@ -346,7 +346,7 @@ void main() {
});
testWidgets
(
'positionChild on non existent child'
,
(
WidgetTester
tester
)
async
{
expectFlutterErrorMessage
(
await
expectFlutterErrorMessage
(
tester:
tester
,
delegate:
NonExistentPositionDelegate
(),
message:
...
...
@@ -358,7 +358,7 @@ void main() {
});
testWidgets
(
"_callPerformLayout on child that doesn't have id"
,
(
WidgetTester
tester
)
async
{
expectFlutterErrorMessage
(
await
expectFlutterErrorMessage
(
widget:
Center
(
child:
CustomMultiChildLayout
(
children:
<
Widget
>[
LayoutWithMissingId
(
child:
Container
(
width:
100
))],
...
...
@@ -381,7 +381,7 @@ void main() {
});
testWidgets
(
'performLayout did not layout a child'
,
(
WidgetTester
tester
)
async
{
expectFlutterErrorMessage
(
await
expectFlutterErrorMessage
(
widget:
Center
(
child:
CustomMultiChildLayout
(
children:
<
Widget
>[
...
...
@@ -403,7 +403,7 @@ void main() {
});
testWidgets
(
'performLayout did not layout multiple child'
,
(
WidgetTester
tester
)
async
{
expectFlutterErrorMessage
(
await
expectFlutterErrorMessage
(
widget:
Center
(
child:
CustomMultiChildLayout
(
children:
<
Widget
>[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment