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
7678c2a5
Unverified
Commit
7678c2a5
authored
Jun 28, 2018
by
liyuqian
Committed by
GitHub
Jun 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add golden test for text shade overflow (#18816)
Goldens for flutter/flutter#18729
parent
35e8cd83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletion
+39
-1
goldens.version
bin/internal/goldens.version
+1
-1
text_golden_test.dart
packages/flutter/test/widgets/text_golden_test.dart
+38
-0
No files found.
bin/internal/goldens.version
View file @
7678c2a5
e4920845c80ca52c8891c023f137f1c9a651523e
c0e7174ec1fad55e920b9dfd8b79291e093a9f2d
packages/flutter/test/widgets/text_golden_test.dart
View file @
7678c2a5
...
...
@@ -5,6 +5,7 @@
import
'dart:io'
show
Platform
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/widgets.dart'
;
void
main
(
)
{
...
...
@@ -139,4 +140,41 @@ void main() {
skip:
true
,
// !Platform.isLinux,
);
});
testWidgets
(
'Text Fade'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
new
MaterialApp
(
home:
new
Scaffold
(
backgroundColor:
Colors
.
transparent
,
body:
new
RepaintBoundary
(
child:
Center
(
child:
new
Container
(
width:
200.0
,
height:
200.0
,
color:
Colors
.
green
,
child:
new
Center
(
child:
new
Container
(
width:
100.0
,
color:
Colors
.
blue
,
child:
const
Text
(
'Pp PPp PPPp PPPPp PPPPpp PPPPppp PPPPppppp '
,
style:
const
TextStyle
(
color:
Colors
.
black
),
maxLines:
3
,
overflow:
TextOverflow
.
fade
,
),
),
),
),
),
),
)
)
);
await
expectLater
(
find
.
byType
(
RepaintBoundary
).
first
,
matchesGoldenFile
(
'text_golden.Fade.1.png'
),
skip:
!
Platform
.
isLinux
,
);
});
}
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