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
73ce3f21
Unverified
Commit
73ce3f21
authored
Aug 09, 2020
by
Hans Muller
Committed by
GitHub
Aug 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated old button references in packages/flutter_test (#63230)
parent
61349ca6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
15 deletions
+21
-15
accessibility_test.dart
packages/flutter_test/test/accessibility_test.dart
+5
-3
accessibility_window_test.dart
packages/flutter_test/test/accessibility_window_test.dart
+11
-7
controller_test.dart
packages/flutter_test/test/controller_test.dart
+2
-2
finders_test.dart
packages/flutter_test/test/finders_test.dart
+1
-1
live_widget_controller_test.dart
packages/flutter_test/test/live_widget_controller_test.dart
+1
-1
widget_tester_test.dart
packages/flutter_test/test/widget_tester_test.dart
+1
-1
No files found.
packages/flutter_test/test/accessibility_test.dart
View file @
73ce3f21
...
...
@@ -583,9 +583,11 @@ void main() {
theme:
ThemeData
.
light
(),
home:
Scaffold
(
backgroundColor:
Colors
.
white
,
body:
RaisedButton
(
color:
const
Color
(
0xFFFBBC04
),
elevation:
0
,
body:
ElevatedButton
(
style:
ElevatedButton
.
styleFrom
(
primary:
const
Color
(
0xFFFBBC04
),
elevation:
0
,
),
onPressed:
()
{},
child:
const
Text
(
'Button'
,
style:
TextStyle
(
color:
Colors
.
black
)),
),
...
...
packages/flutter_test/test/accessibility_window_test.dart
View file @
73ce3f21
...
...
@@ -10,11 +10,13 @@ void main() {
tester
.
binding
.
window
.
devicePixelRatioTestValue
=
1.2
;
tester
.
binding
.
window
.
physicalSizeTestValue
=
const
Size
(
250
,
300
);
final
RaisedButton
invalidButton
=
Rais
edButton
(
final
Widget
invalidButton
=
Elevat
edButton
(
onPressed:
()
{},
style:
ElevatedButton
.
styleFrom
(
primary:
Colors
.
orangeAccent
,
// background fill color
onPrimary:
Colors
.
orange
,
// text foreground color
),
child:
const
Text
(
'Button'
),
textColor:
Colors
.
orange
,
color:
Colors
.
orangeAccent
,
);
await
tester
.
pumpWidget
(
MaterialApp
(
home:
Scaffold
(
body:
invalidButton
)));
...
...
@@ -26,15 +28,17 @@ void main() {
tester
.
binding
.
window
.
devicePixelRatioTestValue
=
4.2
;
tester
.
binding
.
window
.
physicalSizeTestValue
=
const
Size
(
2500
,
3000
);
final
RaisedButton
invalidButton
=
Rais
edButton
(
final
Widget
invalidButton
=
Elevat
edButton
(
onPressed:
()
{},
style:
ElevatedButton
.
styleFrom
(
primary:
Colors
.
orangeAccent
,
// background fill color
onPrimary:
Colors
.
orange
,
// text foreground color
),
child:
const
Text
(
'Button'
),
textColor:
Colors
.
orange
,
color:
Colors
.
orangeAccent
,
);
await
tester
.
pumpWidget
(
MaterialApp
(
home:
Scaffold
(
body:
invalidButton
)));
final
Evaluation
result
=
await
textContrastGuideline
.
evaluate
(
tester
);
expect
(
result
.
passed
,
false
);
});
}
\ No newline at end of file
}
packages/flutter_test/test/controller_test.dart
View file @
73ce3f21
...
...
@@ -63,7 +63,7 @@ void main() {
MaterialApp
(
home:
Scaffold
(
body:
Container
(
child:
OutlineButton
(
child:
Outline
d
Button
(
onPressed:
()
{
},
child:
const
Text
(
'hello'
),
),
...
...
@@ -85,7 +85,7 @@ void main() {
MaterialApp
(
home:
Scaffold
(
body:
Container
(
child:
OutlineButton
(
child:
Outline
d
Button
(
onPressed:
()
{
},
child:
const
Text
(
'hello'
),
),
...
...
packages/flutter_test/test/finders_test.dart
View file @
73ce3f21
...
...
@@ -41,7 +41,7 @@ void main() {
Semantics
(
label:
'Add'
,
button:
true
,
child:
const
Fla
tButton
(
child:
const
Tex
tButton
(
child:
Text
(
'+'
),
onPressed:
null
,
),
...
...
packages/flutter_test/test/live_widget_controller_test.dart
View file @
73ce3f21
...
...
@@ -18,7 +18,7 @@ class _CountButtonState extends State<CountButton> {
int
counter
=
0
;
@override
Widget
build
(
BuildContext
context
)
{
return
Rais
edButton
(
return
Elevat
edButton
(
child:
Text
(
'Counter
$counter
'
),
onPressed:
()
{
setState
(()
{
...
...
packages/flutter_test/test/widget_tester_test.dart
View file @
73ce3f21
...
...
@@ -375,7 +375,7 @@ void main() {
home:
Center
(
child:
Builder
(
builder:
(
BuildContext
context
)
{
return
Rais
edButton
(
return
Elevat
edButton
(
child:
const
Text
(
'Next'
),
onPressed:
()
{
Navigator
.
push
<
void
>(
context
,
MaterialPageRoute
<
void
>(
...
...
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