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
f2865090
Unverified
Commit
f2865090
authored
Jan 29, 2020
by
Gary Qian
Committed by
GitHub
Jan 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move dart:ui ParagraphStyle tests to engine (#49645)
parent
8366b272
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
text_style_test.dart
packages/flutter/test/painting/text_style_test.dart
+0
-4
No files found.
packages/flutter/test/painting/text_style_test.dart
View file @
f2865090
...
...
@@ -176,21 +176,17 @@ void main() {
final
ui
.
ParagraphStyle
ps2
=
s2
.
getParagraphStyle
(
textAlign:
TextAlign
.
center
);
expect
(
ps2
,
equals
(
ui
.
ParagraphStyle
(
textAlign:
TextAlign
.
center
,
fontWeight:
FontWeight
.
w800
,
fontSize:
10.0
,
height:
100.0
)));
expect
(
ps2
.
toString
(),
'ParagraphStyle(textAlign: TextAlign.center, textDirection: unspecified, fontWeight: FontWeight.w800, fontStyle: unspecified, maxLines: unspecified, fontFamily: unspecified, fontSize: 10.0, height: 100.0x, ellipsis: unspecified, locale: unspecified)'
);
final
ui
.
ParagraphStyle
ps5
=
s5
.
getParagraphStyle
();
expect
(
ps5
,
equals
(
ui
.
ParagraphStyle
(
fontWeight:
FontWeight
.
w700
,
fontSize:
12.0
,
height:
123.0
)));
expect
(
ps5
.
toString
(),
'ParagraphStyle(textAlign: unspecified, textDirection: unspecified, fontWeight: FontWeight.w700, fontStyle: unspecified, maxLines: unspecified, fontFamily: unspecified, fontSize: 12.0, height: 123.0x, ellipsis: unspecified, locale: unspecified)'
);
},
skip:
isBrowser
);
test
(
'TextStyle with text direction'
,
()
{
final
ui
.
ParagraphStyle
ps6
=
const
TextStyle
().
getParagraphStyle
(
textDirection:
TextDirection
.
ltr
);
expect
(
ps6
,
equals
(
ui
.
ParagraphStyle
(
textDirection:
TextDirection
.
ltr
,
fontSize:
14.0
)));
expect
(
ps6
.
toString
(),
'ParagraphStyle(textAlign: unspecified, textDirection: TextDirection.ltr, fontWeight: unspecified, fontStyle: unspecified, maxLines: unspecified, fontFamily: unspecified, fontSize: 14.0, height: unspecified, ellipsis: unspecified, locale: unspecified)'
);
final
ui
.
ParagraphStyle
ps7
=
const
TextStyle
().
getParagraphStyle
(
textDirection:
TextDirection
.
rtl
);
expect
(
ps7
,
equals
(
ui
.
ParagraphStyle
(
textDirection:
TextDirection
.
rtl
,
fontSize:
14.0
)));
expect
(
ps7
.
toString
(),
'ParagraphStyle(textAlign: unspecified, textDirection: TextDirection.rtl, fontWeight: unspecified, fontStyle: unspecified, maxLines: unspecified, fontFamily: unspecified, fontSize: 14.0, height: unspecified, ellipsis: unspecified, locale: unspecified)'
);
});
test
(
'TextStyle using package font'
,
()
{
...
...
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