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
f771c9fe
Unverified
Commit
f771c9fe
authored
May 05, 2022
by
Phil Quitslund
Committed by
GitHub
May 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename local functions with `_`s (#102991)
parent
0ea21bc5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
date_picker_test.dart
packages/flutter/test/cupertino/date_picker_test.dart
+6
-6
form_row_test.dart
packages/flutter/test/cupertino/form_row_test.dart
+3
-3
picker_test.dart
packages/flutter/test/cupertino/picker_test.dart
+3
-3
No files found.
packages/flutter/test/cupertino/date_picker_test.dart
View file @
f771c9fe
...
...
@@ -1518,7 +1518,7 @@ void main() {
});
testWidgets
(
'DatePicker adapts to MaterialApp dark mode'
,
(
WidgetTester
tester
)
async
{
Widget
_
buildDatePicker
(
Brightness
brightness
)
{
Widget
buildDatePicker
(
Brightness
brightness
)
{
return
MaterialApp
(
theme:
ThemeData
(
brightness:
brightness
),
home:
CupertinoDatePicker
(
...
...
@@ -1530,14 +1530,14 @@ void main() {
}
// CupertinoDatePicker with light theme.
await
tester
.
pumpWidget
(
_
buildDatePicker
(
Brightness
.
light
));
await
tester
.
pumpWidget
(
buildDatePicker
(
Brightness
.
light
));
RenderParagraph
paragraph
=
tester
.
renderObject
(
find
.
text
(
'October'
).
first
);
expect
(
paragraph
.
text
.
style
!.
color
,
CupertinoColors
.
label
);
// Text style should not return unresolved color.
expect
(
paragraph
.
text
.
style
!.
color
.
toString
().
contains
(
'UNRESOLVED'
),
isFalse
);
// CupertinoDatePicker with dark theme.
await
tester
.
pumpWidget
(
_
buildDatePicker
(
Brightness
.
dark
));
await
tester
.
pumpWidget
(
buildDatePicker
(
Brightness
.
dark
));
paragraph
=
tester
.
renderObject
(
find
.
text
(
'October'
).
first
);
expect
(
paragraph
.
text
.
style
!.
color
,
CupertinoColors
.
label
);
// Text style should not return unresolved color.
...
...
@@ -1545,7 +1545,7 @@ void main() {
});
testWidgets
(
'TimerPicker adapts to MaterialApp dark mode'
,
(
WidgetTester
tester
)
async
{
Widget
_
buildTimerPicker
(
Brightness
brightness
)
{
Widget
buildTimerPicker
(
Brightness
brightness
)
{
return
MaterialApp
(
theme:
ThemeData
(
brightness:
brightness
),
home:
CupertinoTimerPicker
(
...
...
@@ -1557,14 +1557,14 @@ void main() {
}
// CupertinoTimerPicker with light theme.
await
tester
.
pumpWidget
(
_
buildTimerPicker
(
Brightness
.
light
));
await
tester
.
pumpWidget
(
buildTimerPicker
(
Brightness
.
light
));
RenderParagraph
paragraph
=
tester
.
renderObject
(
find
.
text
(
'hours'
));
expect
(
paragraph
.
text
.
style
!.
color
,
CupertinoColors
.
label
);
// Text style should not return unresolved color.
expect
(
paragraph
.
text
.
style
!.
color
.
toString
().
contains
(
'UNRESOLVED'
),
isFalse
);
// CupertinoTimerPicker with light theme.
await
tester
.
pumpWidget
(
_
buildTimerPicker
(
Brightness
.
dark
));
await
tester
.
pumpWidget
(
buildTimerPicker
(
Brightness
.
dark
));
paragraph
=
tester
.
renderObject
(
find
.
text
(
'hours'
));
expect
(
paragraph
.
text
.
style
!.
color
,
CupertinoColors
.
label
);
// Text style should not return unresolved color.
...
...
packages/flutter/test/cupertino/form_row_test.dart
View file @
f771c9fe
...
...
@@ -170,7 +170,7 @@ void main() {
const
Widget
prefix
=
Text
(
'Prefix'
);
const
Widget
helper
=
Text
(
'Helper'
);
Widget
_
buildFormRow
(
Brightness
brightness
)
{
Widget
buildFormRow
(
Brightness
brightness
)
{
return
MaterialApp
(
theme:
ThemeData
(
brightness:
brightness
),
home:
const
Center
(
...
...
@@ -184,7 +184,7 @@ void main() {
}
// CupertinoFormRow with light theme.
await
tester
.
pumpWidget
(
_
buildFormRow
(
Brightness
.
light
));
await
tester
.
pumpWidget
(
buildFormRow
(
Brightness
.
light
));
RenderParagraph
helperParagraph
=
tester
.
renderObject
(
find
.
text
(
'Helper'
));
expect
(
helperParagraph
.
text
.
style
!.
color
,
CupertinoColors
.
label
);
// Text style should not return unresolved color.
...
...
@@ -195,7 +195,7 @@ void main() {
expect
(
prefixParagraph
.
text
.
style
!.
color
.
toString
().
contains
(
'UNRESOLVED'
),
isFalse
);
// CupertinoFormRow with light theme.
await
tester
.
pumpWidget
(
_
buildFormRow
(
Brightness
.
dark
));
await
tester
.
pumpWidget
(
buildFormRow
(
Brightness
.
dark
));
helperParagraph
=
tester
.
renderObject
(
find
.
text
(
'Helper'
));
expect
(
helperParagraph
.
text
.
style
!.
color
,
CupertinoColors
.
label
);
// Text style should not return unresolved color.
...
...
packages/flutter/test/cupertino/picker_test.dart
View file @
f771c9fe
...
...
@@ -425,7 +425,7 @@ void main() {
});
testWidgets
(
'Picker adapts to MaterialApp dark mode'
,
(
WidgetTester
tester
)
async
{
Widget
_
buildCupertinoPicker
(
Brightness
brightness
)
{
Widget
buildCupertinoPicker
(
Brightness
brightness
)
{
return
MaterialApp
(
theme:
ThemeData
(
brightness:
brightness
),
home:
Align
(
...
...
@@ -450,14 +450,14 @@ void main() {
}
// CupertinoPicker with light theme.
await
tester
.
pumpWidget
(
_
buildCupertinoPicker
(
Brightness
.
light
));
await
tester
.
pumpWidget
(
buildCupertinoPicker
(
Brightness
.
light
));
RenderParagraph
paragraph
=
tester
.
renderObject
(
find
.
text
(
'1'
));
expect
(
paragraph
.
text
.
style
!.
color
,
CupertinoColors
.
label
);
// Text style should not return unresolved color.
expect
(
paragraph
.
text
.
style
!.
color
.
toString
().
contains
(
'UNRESOLVED'
),
isFalse
);
// CupertinoPicker with dark theme.
await
tester
.
pumpWidget
(
_
buildCupertinoPicker
(
Brightness
.
dark
));
await
tester
.
pumpWidget
(
buildCupertinoPicker
(
Brightness
.
dark
));
paragraph
=
tester
.
renderObject
(
find
.
text
(
'1'
));
expect
(
paragraph
.
text
.
style
!.
color
,
CupertinoColors
.
label
);
// Text style should not return unresolved color.
...
...
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