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
fd935768
Unverified
Commit
fd935768
authored
Sep 25, 2020
by
Hans Muller
Committed by
GitHub
Sep 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced obsolete use of FlatButton with TextButton in scroll_activity_test (#66602)
parent
890e6cce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
scroll_activity_test.dart
packages/flutter/test/widgets/scroll_activity_test.dart
+5
-5
No files found.
packages/flutter/test/widgets/scroll_activity_test.dart
View file @
fd935768
...
...
@@ -58,13 +58,13 @@ void main() {
expect
(
find
.
text
(
'Page 1'
),
findsNothing
);
expect
(
find
.
text
(
'Page 5'
),
findsNothing
);
expect
(
find
.
text
(
'Page 100'
),
findsOneWidget
);
await
tester
.
tap
(
find
.
byType
(
Fla
tButton
));
// 6
await
tester
.
tap
(
find
.
byType
(
Tex
tButton
));
// 6
await
tester
.
pump
();
expect
(
find
.
text
(
'Page 1'
),
findsNothing
);
expect
(
find
.
text
(
'Page 6'
),
findsNothing
);
expect
(
find
.
text
(
'Page 5'
),
findsNothing
);
expect
(
find
.
text
(
'Page 100'
),
findsOneWidget
);
await
tester
.
tap
(
find
.
byType
(
Fla
tButton
));
// 7
await
tester
.
tap
(
find
.
byType
(
Tex
tButton
));
// 7
await
tester
.
pump
();
expect
(
find
.
text
(
'Page 1'
),
findsNothing
);
expect
(
find
.
text
(
'Page 6'
),
findsNothing
);
...
...
@@ -82,7 +82,7 @@ void main() {
expect
(
find
.
text
(
'Page 4'
),
findsOneWidget
);
expect
(
find
.
text
(
'Page 5'
),
findsNothing
);
expect
(
find
.
text
(
'Page 100'
),
findsNothing
);
await
tester
.
tap
(
find
.
byType
(
Fla
tButton
));
// 8
await
tester
.
tap
(
find
.
byType
(
Tex
tButton
));
// 8
await
tester
.
pump
();
expect
(
find
.
text
(
'Page 1'
),
findsNothing
);
expect
(
find
.
text
(
'Page 8'
),
findsNothing
);
...
...
@@ -107,7 +107,7 @@ void main() {
await
tester
.
drag
(
find
.
byType
(
PageView62209
),
const
Offset
(
800.0
,
0.0
));
await
tester
.
pump
();
expect
(
find
.
text
(
'Page 1'
),
findsOneWidget
);
await
tester
.
tap
(
find
.
byType
(
Fla
tButton
));
// 9
await
tester
.
tap
(
find
.
byType
(
Tex
tButton
));
// 9
await
tester
.
pump
();
expect
(
find
.
text
(
'Page 1'
),
findsOneWidget
);
expect
(
find
.
text
(
'Page 9'
),
findsNothing
);
...
...
@@ -146,7 +146,7 @@ class _PageView62209State extends State<PageView62209> {
body:
Column
(
children:
<
Widget
>[
Expanded
(
child:
Carousel62209
(
pages:
_pages
)),
Fla
tButton
(
Tex
tButton
(
child:
const
Text
(
'ADD PAGE'
),
onPressed:
()
{
setState
(()
{
...
...
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