Wire up paragraph font weight and font style in canvas golden test (flutter/engine#25700)

* Wire up paragraph font weight and font style in canvas golden test

* Update TODOs in test

* Update goldens lock
This commit is contained in:
Harry Terkelsen
2021-04-22 13:06:36 -07:00
committed by GitHub
parent a202663db3
commit b1c0cf8ce2
2 changed files with 3 additions and 11 deletions

View File

@@ -1,2 +1,2 @@
repository: https://github.com/flutter/goldens.git
revision: 5bef90a33a3a06924de81236ff7902c3e4e64659
revision: d885b270d90e031fdda2efd640eb5d6b6fbc9ce5

View File

@@ -271,14 +271,10 @@ void testMain() {
));
});
// TODO(yjbanov): paragraph fontWeight doesn't seem to work.
// https://github.com/flutter/flutter/issues/74338
test('text styles - paragraph weight', () async {
await testTextStyle('paragraph weight', paragraphFontWeight: ui.FontWeight.w900);
});
// TODO(yjbanov): paragraph fontStyle doesn't seem to work.
// https://github.com/flutter/flutter/issues/74338
test('text style - paragraph font style', () async {
await testTextStyle(
'paragraph font style',
@@ -471,8 +467,6 @@ void testMain() {
);
});
// TODO(yjbanov): paragraph fontWeight doesn't seem to work.
// https://github.com/flutter/flutter/issues/74338
test('text style - override font weight', () async {
await testTextStyle(
'override font weight',
@@ -481,8 +475,6 @@ void testMain() {
);
});
// TODO(yjbanov): paragraph fontStyle doesn't seem to work.
// https://github.com/flutter/flutter/issues/74338
test('text style - override font style', () async {
await testTextStyle(
'override font style',
@@ -1155,8 +1147,8 @@ Future<void> testTextStyle(
fontSize: paragraphFontSize,
height: paragraphHeight,
textHeightBehavior: paragraphTextHeightBehavior,
fontWeight: ui.FontWeight.normal,
fontStyle: ui.FontStyle.normal,
fontWeight: paragraphFontWeight,
fontStyle: paragraphFontStyle,
strutStyle: paragraphStrutStyle,
ellipsis: paragraphEllipsis,
locale: paragraphLocale,