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
Expand all
Hide 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 {
...
@@ -20,6 +20,7 @@ class TextMagnifierExampleApp extends StatelessWidget {
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
MaterialApp
(
return
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
Scaffold
(
home:
Scaffold
(
body:
Padding
(
body:
Padding
(
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
48.0
),
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() {
...
@@ -20,8 +20,9 @@ void main() {
testWidgets
(
'gradient matches golden'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'gradient matches golden'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
const
MaterialApp
(
MaterialApp
(
home:
SizedBox
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
const
SizedBox
(
width:
800
,
width:
800
,
height:
600
,
height:
600
,
child:
RepaintBoundary
(
child:
RepaintBoundary
(
...
...
packages/flutter/test/cupertino/dialog_test.dart
View file @
c3b2175a
...
@@ -1183,6 +1183,7 @@ void main() {
...
@@ -1183,6 +1183,7 @@ void main() {
testWidgets
(
'Default cupertino dialog golden'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'Default cupertino dialog golden'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
createAppWithButtonThatLaunchesDialog
(
createAppWithButtonThatLaunchesDialog
(
useMaterial3:
false
,
dialogBuilder:
(
BuildContext
context
)
{
dialogBuilder:
(
BuildContext
context
)
{
return
MediaQuery
(
return
MediaQuery
(
data:
MediaQuery
.
of
(
context
).
copyWith
(
textScaleFactor:
3.0
),
data:
MediaQuery
.
of
(
context
).
copyWith
(
textScaleFactor:
3.0
),
...
@@ -1523,8 +1524,10 @@ RenderBox findScrollableActionsSectionRenderBox(WidgetTester tester) {
...
@@ -1523,8 +1524,10 @@ RenderBox findScrollableActionsSectionRenderBox(WidgetTester tester) {
Widget
createAppWithButtonThatLaunchesDialog
(
{
Widget
createAppWithButtonThatLaunchesDialog
(
{
required
WidgetBuilder
dialogBuilder
,
required
WidgetBuilder
dialogBuilder
,
bool
?
useMaterial3
,
})
{
})
{
return
MaterialApp
(
return
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
useMaterial3
),
home:
Material
(
home:
Material
(
child:
Center
(
child:
Center
(
child:
Builder
(
builder:
(
BuildContext
context
)
{
child:
Builder
(
builder:
(
BuildContext
context
)
{
...
...
packages/flutter/test/rendering/localized_fonts_test.dart
View file @
c3b2175a
...
@@ -20,6 +20,7 @@ void main() {
...
@@ -20,6 +20,7 @@ void main() {
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
MaterialApp
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
supportedLocales:
const
<
Locale
>[
supportedLocales:
const
<
Locale
>[
Locale
(
'en'
,
'US'
),
Locale
(
'en'
,
'US'
),
Locale
(
'ja'
),
Locale
(
'ja'
),
...
@@ -64,6 +65,7 @@ void main() {
...
@@ -64,6 +65,7 @@ void main() {
(
WidgetTester
tester
)
async
{
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
MaterialApp
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
supportedLocales:
const
<
Locale
>[
supportedLocales:
const
<
Locale
>[
Locale
(
'en'
,
'US'
),
Locale
(
'en'
,
'US'
),
Locale
(
'ja'
),
Locale
(
'ja'
),
...
@@ -115,6 +117,7 @@ void main() {
...
@@ -115,6 +117,7 @@ void main() {
(
WidgetTester
tester
)
async
{
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
MaterialApp
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
supportedLocales:
const
<
Locale
>[
supportedLocales:
const
<
Locale
>[
Locale
(
'en'
,
'US'
),
Locale
(
'en'
,
'US'
),
Locale
(
'ja'
),
Locale
(
'ja'
),
...
...
packages/flutter/test/widgets/backdrop_filter_test.dart
View file @
c3b2175a
...
@@ -16,6 +16,7 @@ void main() {
...
@@ -16,6 +16,7 @@ void main() {
testWidgets
(
"BackdropFilter's cull rect does not shrink"
,
(
WidgetTester
tester
)
async
{
testWidgets
(
"BackdropFilter's cull rect does not shrink"
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
MaterialApp
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
Scaffold
(
home:
Scaffold
(
body:
Stack
(
body:
Stack
(
fit:
StackFit
.
expand
,
fit:
StackFit
.
expand
,
...
@@ -53,6 +54,7 @@ void main() {
...
@@ -53,6 +54,7 @@ void main() {
testWidgets
(
'BackdropFilter blendMode on saveLayer'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'BackdropFilter blendMode on saveLayer'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
MaterialApp
(
MaterialApp
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
Scaffold
(
home:
Scaffold
(
body:
Opacity
(
body:
Opacity
(
opacity:
0.9
,
opacity:
0.9
,
...
...
packages/flutter/test/widgets/page_route_builder_test.dart
View file @
c3b2175a
...
@@ -18,6 +18,7 @@ class TestPage extends StatelessWidget {
...
@@ -18,6 +18,7 @@ class TestPage extends StatelessWidget {
return
MaterialApp
(
return
MaterialApp
(
title:
'Test'
,
title:
'Test'
,
theme:
ThemeData
(
theme:
ThemeData
(
useMaterial3:
false
,
primarySwatch:
Colors
.
blue
,
primarySwatch:
Colors
.
blue
,
),
),
home:
const
HomePage
(),
home:
const
HomePage
(),
...
...
packages/flutter/test/widgets/selectable_text_test.dart
View file @
c3b2175a
...
@@ -5080,8 +5080,9 @@ void main() {
...
@@ -5080,8 +5080,9 @@ void main() {
testWidgets
(
'text selection style 1'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'text selection style 1'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
const
MaterialApp
(
MaterialApp
(
home:
Material
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
const
Material
(
child:
Center
(
child:
Center
(
child:
Column
(
child:
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
...
@@ -5132,8 +5133,9 @@ void main() {
...
@@ -5132,8 +5133,9 @@ void main() {
testWidgets
(
'text selection style 2'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'text selection style 2'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
const
MaterialApp
(
MaterialApp
(
home:
Material
(
theme:
ThemeData
(
useMaterial3:
false
),
home:
const
Material
(
child:
Center
(
child:
Center
(
child:
Column
(
child:
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
...
...
packages/flutter/test/widgets/text_golden_test.dart
View file @
c3b2175a
This diff is collapsed.
Click to expand it.
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