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
e9c94e6c
Unverified
Commit
e9c94e6c
authored
Oct 07, 2020
by
Jonah Williams
Committed by
GitHub
Oct 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build analysis errors (#67476)
parent
f1c1d944
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
segmented_control_test.dart
packages/flutter/test/cupertino/segmented_control_test.dart
+6
-6
sliding_segmented_control_test.dart
...lutter/test/cupertino/sliding_segmented_control_test.dart
+2
-2
tab_test.dart
packages/flutter/test/cupertino/tab_test.dart
+3
-3
No files found.
packages/flutter/test/cupertino/segmented_control_test.dart
View file @
e9c94e6c
...
...
@@ -256,7 +256,7 @@ void main() {
DefaultTextStyle
textStyle
=
tester
.
widget
(
find
.
widgetWithText
(
DefaultTextStyle
,
'Child 1'
));
IconTheme
iconTheme
=
tester
.
widget
(
find
.
widgetWithIcon
(
IconTheme
,
const
IconData
(
1
)));
expect
(
textStyle
.
style
!
.
color
,
isSameColorAs
(
CupertinoColors
.
white
));
expect
(
textStyle
.
style
.
color
,
isSameColorAs
(
CupertinoColors
.
white
));
expect
(
iconTheme
.
data
.
color
,
CupertinoColors
.
activeBlue
);
await
tester
.
tap
(
find
.
widgetWithIcon
(
IconTheme
,
const
IconData
(
1
)));
...
...
@@ -265,7 +265,7 @@ void main() {
textStyle
=
tester
.
widget
(
find
.
widgetWithText
(
DefaultTextStyle
,
'Child 1'
));
iconTheme
=
tester
.
widget
(
find
.
widgetWithIcon
(
IconTheme
,
const
IconData
(
1
)));
expect
(
textStyle
.
style
!
.
color
,
CupertinoColors
.
activeBlue
);
expect
(
textStyle
.
style
.
color
,
CupertinoColors
.
activeBlue
);
expect
(
iconTheme
.
data
.
color
,
isSameColorAs
(
CupertinoColors
.
white
));
});
...
...
@@ -300,7 +300,7 @@ void main() {
DefaultTextStyle
textStyle
=
tester
.
widget
(
find
.
widgetWithText
(
DefaultTextStyle
,
'Child 1'
).
first
);
IconThemeData
iconTheme
=
IconTheme
.
of
(
tester
.
element
(
find
.
byIcon
(
const
IconData
(
1
))));
expect
(
textStyle
.
style
!
.
color
,
isSameColorAs
(
CupertinoColors
.
black
));
expect
(
textStyle
.
style
.
color
,
isSameColorAs
(
CupertinoColors
.
black
));
expect
(
iconTheme
.
color
,
isSameColorAs
(
CupertinoColors
.
systemBlue
.
darkColor
));
await
tester
.
tap
(
find
.
byIcon
(
const
IconData
(
1
)));
...
...
@@ -310,7 +310,7 @@ void main() {
textStyle
=
tester
.
widget
(
find
.
widgetWithText
(
DefaultTextStyle
,
'Child 1'
).
first
);
iconTheme
=
IconTheme
.
of
(
tester
.
element
(
find
.
byIcon
(
const
IconData
(
1
))));
expect
(
textStyle
.
style
!
.
color
,
isSameColorAs
(
CupertinoColors
.
systemBlue
.
darkColor
));
expect
(
textStyle
.
style
.
color
,
isSameColorAs
(
CupertinoColors
.
systemBlue
.
darkColor
));
expect
(
iconTheme
.
color
,
isSameColorAs
(
CupertinoColors
.
black
));
},
);
...
...
@@ -348,7 +348,7 @@ void main() {
IconTheme
iconTheme
=
tester
.
widget
(
find
.
widgetWithIcon
(
IconTheme
,
const
IconData
(
1
)));
expect
(
getRenderSegmentedControl
(
tester
).
borderColor
,
CupertinoColors
.
black
);
expect
(
textStyle
.
style
!
.
color
,
CupertinoColors
.
lightBackgroundGray
);
expect
(
textStyle
.
style
.
color
,
CupertinoColors
.
lightBackgroundGray
);
expect
(
iconTheme
.
data
.
color
,
CupertinoColors
.
activeGreen
.
color
);
expect
(
getBackgroundColor
(
tester
,
0
),
CupertinoColors
.
activeGreen
.
color
);
expect
(
getBackgroundColor
(
tester
,
1
),
CupertinoColors
.
lightBackgroundGray
);
...
...
@@ -359,7 +359,7 @@ void main() {
textStyle
=
tester
.
widget
(
find
.
widgetWithText
(
DefaultTextStyle
,
'Child 1'
));
iconTheme
=
tester
.
widget
(
find
.
widgetWithIcon
(
IconTheme
,
const
IconData
(
1
)));
expect
(
textStyle
.
style
!
.
color
,
CupertinoColors
.
activeGreen
.
color
);
expect
(
textStyle
.
style
.
color
,
CupertinoColors
.
activeGreen
.
color
);
expect
(
iconTheme
.
data
.
color
,
CupertinoColors
.
lightBackgroundGray
);
expect
(
getBackgroundColor
(
tester
,
0
),
CupertinoColors
.
lightBackgroundGray
);
expect
(
getBackgroundColor
(
tester
,
1
),
CupertinoColors
.
activeGreen
.
color
);
...
...
packages/flutter/test/cupertino/sliding_segmented_control_test.dart
View file @
e9c94e6c
...
...
@@ -254,7 +254,7 @@ void main() {
DefaultTextStyle
textStyle
=
tester
.
widget
(
find
.
widgetWithText
(
DefaultTextStyle
,
'Child 1'
).
first
);
expect
(
textStyle
.
style
!
.
fontWeight
,
FontWeight
.
w500
);
expect
(
textStyle
.
style
.
fontWeight
,
FontWeight
.
w500
);
await
tester
.
tap
(
find
.
byIcon
(
const
IconData
(
1
)));
await
tester
.
pump
();
...
...
@@ -263,7 +263,7 @@ void main() {
textStyle
=
tester
.
widget
(
find
.
widgetWithText
(
DefaultTextStyle
,
'Child 1'
).
first
);
expect
(
groupValue
,
1
);
expect
(
textStyle
.
style
!
.
fontWeight
,
FontWeight
.
normal
);
expect
(
textStyle
.
style
.
fontWeight
,
FontWeight
.
normal
);
},
);
...
...
packages/flutter/test/cupertino/tab_test.dart
View file @
e9c94e6c
...
...
@@ -245,7 +245,7 @@ void main() {
builder:
(
BuildContext
context
)
=>
CupertinoButton
(
child:
const
Text
(
'home'
),
onPressed:
()
{
Navigator
.
of
(
context
).
restorablePushNamed
(
'/2'
);
Navigator
.
of
(
context
)
!
.
restorablePushNamed
(
'/2'
);
},
),
routes:
<
String
,
WidgetBuilder
>{
...
...
@@ -269,7 +269,7 @@ void main() {
expect
(
find
.
text
(
'home'
),
findsNothing
);
expect
(
find
.
text
(
'second route'
),
findsOneWidget
);
Navigator
.
of
(
tester
.
element
(
find
.
text
(
'second route'
))).
pop
();
Navigator
.
of
(
tester
.
element
(
find
.
text
(
'second route'
)))
!
.
pop
();
await
tester
.
pumpAndSettle
();
expect
(
find
.
text
(
'home'
),
findsOneWidget
);
...
...
@@ -280,7 +280,7 @@ void main() {
expect
(
find
.
text
(
'home'
),
findsNothing
);
expect
(
find
.
text
(
'second route'
),
findsOneWidget
);
Navigator
.
of
(
tester
.
element
(
find
.
text
(
'second route'
))).
pop
();
Navigator
.
of
(
tester
.
element
(
find
.
text
(
'second route'
)))
!
.
pop
();
await
tester
.
pumpAndSettle
();
expect
(
find
.
text
(
'home'
),
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