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
c3b2175a
Unverified
Commit
c3b2175a
authored
Jun 15, 2023
by
Qun Cheng
Committed by
GitHub
Jun 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update golden tests (#128914)
parent
c7167765
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
439 additions
and
411 deletions
+439
-411
text_magnifier.0.dart
...ples/api/lib/widgets/text_magnifier/text_magnifier.0.dart
+1
-0
linear_gradient.0_test.dart
examples/api/test/painting/linear_gradient.0_test.dart
+3
-2
dialog_test.dart
packages/flutter/test/cupertino/dialog_test.dart
+3
-0
localized_fonts_test.dart
packages/flutter/test/rendering/localized_fonts_test.dart
+3
-0
backdrop_filter_test.dart
packages/flutter/test/widgets/backdrop_filter_test.dart
+2
-0
page_route_builder_test.dart
packages/flutter/test/widgets/page_route_builder_test.dart
+1
-0
selectable_text_test.dart
packages/flutter/test/widgets/selectable_text_test.dart
+6
-4
text_golden_test.dart
packages/flutter/test/widgets/text_golden_test.dart
+420
-405
No files found.
examples/api/lib/widgets/text_magnifier/text_magnifier.0.dart
View file @
c3b2175a
...
...
@@ -20,6 +20,7 @@ class TextMagnifierExampleApp extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
Scaffold
(
body:
Padding
(
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
48.0
),
...
...
examples/api/test/painting/linear_gradient.0_test.dart
View file @
c3b2175a
...
...
@@ -20,8 +20,9 @@ void main() {
testWidgets
(
'gradient matches golden'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
const
MaterialApp
(
home:
SizedBox
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
const
SizedBox
(
width:
800
,
height:
600
,
child:
RepaintBoundary
(
...
...
packages/flutter/test/cupertino/dialog_test.dart
View file @
c3b2175a
...
...
@@ -1183,6 +1183,7 @@ void main() {
testWidgets
(
'Default cupertino dialog golden'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
createAppWithButtonThatLaunchesDialog
(
useMaterial3:
false
,
dialogBuilder:
(
BuildContext
context
)
{
return
MediaQuery
(
data:
MediaQuery
.
of
(
context
).
copyWith
(
textScaleFactor:
3.0
),
...
...
@@ -1523,8 +1524,10 @@ RenderBox findScrollableActionsSectionRenderBox(WidgetTester tester) {
Widget
createAppWithButtonThatLaunchesDialog
(
{
required
WidgetBuilder
dialogBuilder
,
bool
?
useMaterial3
,
})
{
return
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
useMaterial3
),
home:
Material
(
child:
Center
(
child:
Builder
(
builder:
(
BuildContext
context
)
{
...
...
packages/flutter/test/rendering/localized_fonts_test.dart
View file @
c3b2175a
...
...
@@ -20,6 +20,7 @@ void main() {
await
tester
.
pumpWidget
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
supportedLocales:
const
<
Locale
>[
Locale
(
'en'
,
'US'
),
Locale
(
'ja'
),
...
...
@@ -64,6 +65,7 @@ void main() {
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
supportedLocales:
const
<
Locale
>[
Locale
(
'en'
,
'US'
),
Locale
(
'ja'
),
...
...
@@ -115,6 +117,7 @@ void main() {
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
supportedLocales:
const
<
Locale
>[
Locale
(
'en'
,
'US'
),
Locale
(
'ja'
),
...
...
packages/flutter/test/widgets/backdrop_filter_test.dart
View file @
c3b2175a
...
...
@@ -16,6 +16,7 @@ void main() {
testWidgets
(
"BackdropFilter's cull rect does not shrink"
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
Scaffold
(
body:
Stack
(
fit:
StackFit
.
expand
,
...
...
@@ -53,6 +54,7 @@ void main() {
testWidgets
(
'BackdropFilter blendMode on saveLayer'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
Scaffold
(
body:
Opacity
(
opacity:
0.9
,
...
...
packages/flutter/test/widgets/page_route_builder_test.dart
View file @
c3b2175a
...
...
@@ -18,6 +18,7 @@ class TestPage extends StatelessWidget {
return
MaterialApp
(
title:
'Test'
,
theme:
ThemeData
(
useMaterial3:
false
,
primarySwatch:
Colors
.
blue
,
),
home:
const
HomePage
(),
...
...
packages/flutter/test/widgets/selectable_text_test.dart
View file @
c3b2175a
...
...
@@ -5080,8 +5080,9 @@ void main() {
testWidgets
(
'text selection style 1'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
const
MaterialApp
(
home:
Material
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
const
Material
(
child:
Center
(
child:
Column
(
children:
<
Widget
>[
...
...
@@ -5132,8 +5133,9 @@ void main() {
testWidgets
(
'text selection style 2'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
const
MaterialApp
(
home:
Material
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
const
Material
(
child:
Center
(
child:
Column
(
children:
<
Widget
>[
...
...
packages/flutter/test/widgets/text_golden_test.dart
View file @
c3b2175a
...
...
@@ -788,7 +788,9 @@ void main() {
testWidgets
(
'Text Inline widget baseline'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
Center
(
Theme
(
data:
ThemeData
(
useMaterial3:
false
),
child:
Center
(
child:
RepaintBoundary
(
child:
Material
(
child:
Directionality
(
...
...
@@ -886,6 +888,7 @@ void main() {
),
),
),
),
);
await
expectLater
(
find
.
byType
(
Container
),
...
...
@@ -895,7 +898,9 @@ void main() {
testWidgets
(
'Text Inline widget aboveBaseline'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
Center
(
Theme
(
data:
ThemeData
(
useMaterial3:
false
),
child:
Center
(
child:
RepaintBoundary
(
child:
Material
(
child:
Directionality
(
...
...
@@ -993,6 +998,7 @@ void main() {
),
),
),
),
);
await
expectLater
(
find
.
byType
(
Container
),
...
...
@@ -1002,7 +1008,9 @@ void main() {
testWidgets
(
'Text Inline widget belowBaseline'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
Center
(
Theme
(
data:
ThemeData
(
useMaterial3:
false
),
child:
Center
(
child:
RepaintBoundary
(
child:
Material
(
child:
Directionality
(
...
...
@@ -1100,6 +1108,7 @@ void main() {
),
),
),
),
);
await
expectLater
(
find
.
byType
(
Container
),
...
...
@@ -1109,7 +1118,9 @@ void main() {
testWidgets
(
'Text Inline widget top'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
Center
(
Theme
(
data:
ThemeData
(
useMaterial3:
false
),
child:
Center
(
child:
RepaintBoundary
(
child:
Material
(
child:
Directionality
(
...
...
@@ -1207,6 +1218,7 @@ void main() {
),
),
),
),
);
await
expectLater
(
find
.
byType
(
Container
),
...
...
@@ -1216,7 +1228,9 @@ void main() {
testWidgets
(
'Text Inline widget middle'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
Center
(
Theme
(
data:
ThemeData
(
useMaterial3:
false
),
child:
Center
(
child:
RepaintBoundary
(
child:
Material
(
child:
Directionality
(
...
...
@@ -1314,6 +1328,7 @@ void main() {
),
),
),
),
);
await
expectLater
(
find
.
byType
(
Container
),
...
...
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