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
0277a46b
Unverified
Commit
0277a46b
authored
Feb 22, 2022
by
Anurag Roy
Committed by
GitHub
Feb 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comments for chip tests (#97476)
parent
729f8c83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
chip_test.dart
packages/flutter/test/material/chip_test.dart
+9
-11
No files found.
packages/flutter/test/material/chip_test.dart
View file @
0277a46b
...
...
@@ -3504,8 +3504,8 @@ void main() {
),
);
// Tap at the delete icon of the chip, which is at the right
//
side of the
chip
// Tap at the delete icon of the chip, which is at the right
side of the
// chip
final
Offset
topRightOfInkwell
=
tester
.
getTopLeft
(
find
.
byType
(
InkWell
).
first
);
final
Offset
tapLocationOfDeleteButton
=
topRightOfInkwell
+
const
Offset
(
8
,
8
);
final
TestGesture
tapGesture
=
await
tester
.
startGesture
(
tapLocationOfDeleteButton
);
...
...
@@ -3515,7 +3515,7 @@ void main() {
// Wait for some more time while pressing and holding the delete button
await
tester
.
pumpAndSettle
();
// There should be no tooltip
// There should be no
delete button
tooltip
expect
(
findTooltipContainer
(
'Delete'
),
findsNothing
);
await
tapGesture
.
up
();
...
...
@@ -3557,8 +3557,7 @@ void main() {
),
);
// Tap at the delete icon of the chip, which is at the right
// side of the chip
// Hover over the delete icon of the chip
final
Offset
centerOfDeleteButton
=
tester
.
getCenter
(
find
.
byKey
(
deleteButtonKey
));
final
TestGesture
hoverGesture
=
await
tester
.
createGesture
(
kind:
PointerDeviceKind
.
mouse
);
await
hoverGesture
.
moveTo
(
centerOfDeleteButton
);
...
...
@@ -3566,10 +3565,10 @@ void main() {
await
tester
.
pump
();
// Wait for some more time while
pressing and holding
the delete button
// Wait for some more time while
hovering over
the delete button
await
tester
.
pumpAndSettle
();
// There should be no delete tooltip
// There should be no delete
button
tooltip
expect
(
findTooltipContainer
(
''
),
findsNothing
);
// There should be a chip tooltip, however.
expect
(
findTooltipContainer
(
'Chip Tooltip'
),
findsOneWidget
);
...
...
@@ -3585,8 +3584,7 @@ void main() {
),
);
// Hover over the delete icon of the chip, which is at the right side of the
// chip
// Hover over the delete icon of the chip
final
Offset
centerOfDeleteButton
=
tester
.
getCenter
(
find
.
byKey
(
deleteButtonKey
));
final
TestGesture
hoverGesture
=
await
tester
.
createGesture
(
kind:
PointerDeviceKind
.
mouse
);
await
hoverGesture
.
moveTo
(
centerOfDeleteButton
);
...
...
@@ -3594,12 +3592,12 @@ void main() {
await
tester
.
pump
();
// Wait for some more time while
pressing and holding
the delete button
// Wait for some more time while
hovering over
the delete button
await
tester
.
pumpAndSettle
();
// There should not be a chip tooltip
expect
(
findTooltipContainer
(
'Chip Tooltip'
),
findsNothing
);
// There should be a delete tooltip
// There should be a delete
button
tooltip
expect
(
findTooltipContainer
(
'Delete'
),
findsOneWidget
);
});
...
...
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