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
77d6e960
Unverified
Commit
77d6e960
authored
Dec 13, 2021
by
Valentin Vignal
Committed by
GitHub
Dec 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✏
️ Correct test description for a non-draggable item (#94167)
parent
5cb09e77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
reorderable_list_test.dart
packages/flutter/test/widgets/reorderable_list_test.dart
+3
-3
No files found.
packages/flutter/test/widgets/reorderable_list_test.dart
View file @
77d6e960
...
@@ -641,7 +641,7 @@ void main() {
...
@@ -641,7 +641,7 @@ void main() {
expect
(
items
,
orderedEquals
(<
int
>[
1
,
0
,
2
,
3
,
4
]));
expect
(
items
,
orderedEquals
(<
int
>[
1
,
0
,
2
,
3
,
4
]));
});
});
testWidgets
(
'It should
allow the item to be dragged when enabled is tru
e'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'It should
not allow the item to be dragged when enabled is fals
e'
,
(
WidgetTester
tester
)
async
{
const
int
itemCount
=
5
;
const
int
itemCount
=
5
;
int
onReorderCallCount
=
0
;
int
onReorderCallCount
=
0
;
final
List
<
int
>
items
=
List
<
int
>.
generate
(
itemCount
,
(
int
index
)
=>
index
);
final
List
<
int
>
items
=
List
<
int
>.
generate
(
itemCount
,
(
int
index
)
=>
index
);
...
@@ -679,7 +679,7 @@ void main() {
...
@@ -679,7 +679,7 @@ void main() {
await
tester
.
pump
(
kLongPressTimeout
);
await
tester
.
pump
(
kLongPressTimeout
);
// Drag enough to move down the first item
// Drag enough to move down the first item
await
drag
.
moveBy
(
const
Offset
(
0
,
1
50
));
await
drag
.
moveBy
(
const
Offset
(
0
,
50
));
await
tester
.
pump
();
await
tester
.
pump
();
await
drag
.
up
();
await
drag
.
up
();
await
tester
.
pumpAndSettle
();
await
tester
.
pumpAndSettle
();
...
@@ -737,7 +737,7 @@ void main() {
...
@@ -737,7 +737,7 @@ void main() {
expect
(
items
,
orderedEquals
(<
int
>[
1
,
0
,
2
,
3
,
4
]));
expect
(
items
,
orderedEquals
(<
int
>[
1
,
0
,
2
,
3
,
4
]));
});
});
testWidgets
(
'It should
allow the item to be dragged when enabled is tru
e'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'It should
not allow the item to be dragged when enabled is fals
e'
,
(
WidgetTester
tester
)
async
{
const
int
itemCount
=
5
;
const
int
itemCount
=
5
;
int
onReorderCallCount
=
0
;
int
onReorderCallCount
=
0
;
final
List
<
int
>
items
=
List
<
int
>.
generate
(
itemCount
,
(
int
index
)
=>
index
);
final
List
<
int
>
items
=
List
<
int
>.
generate
(
itemCount
,
(
int
index
)
=>
index
);
...
...
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