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
6303a32d
Commit
6303a32d
authored
Feb 17, 2017
by
Ian Hickson
Committed by
GitHub
Feb 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pesto crash (#8238)
parent
a44d3b7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
pesto_demo.dart
examples/flutter_gallery/lib/demo/pesto_demo.dart
+2
-1
pesto_test.dart
examples/flutter_gallery/test/pesto_test.dart
+14
-0
No files found.
examples/flutter_gallery/lib/demo/pesto_demo.dart
View file @
6303a32d
...
...
@@ -152,7 +152,8 @@ class _RecipeGridPageState extends State<RecipeGridPage> {
recipe:
recipe
,
onTap:
()
{
showRecipePage
(
context
,
recipe
);
},
);
}
},
childCount:
config
.
recipes
.
length
,
),
),
);
...
...
examples/flutter_gallery/test/pesto_test.dart
View file @
6303a32d
...
...
@@ -41,4 +41,18 @@ void main() {
await
tester
.
pump
();
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
// transition is complete
});
testWidgets
(
'Pesto can be scrolled all the way down'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
new
GalleryApp
());
await
tester
.
pump
();
// see https://github.com/flutter/flutter/issues/1865
await
tester
.
tap
(
find
.
text
(
'Pesto'
));
await
tester
.
pump
();
// Launch pesto
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
// transition is complete
await
tester
.
fling
(
find
.
text
(
'Pesto Bruschetta'
),
const
Offset
(
0.0
,
-
200.0
),
10000.0
);
await
tester
.
pump
();
// start fling
await
tester
.
pumpUntilNoTransientCallbacks
();
expect
(
find
.
text
(
'Sicilian-Style sardines'
),
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