From b1c0cf8ce24f2727c78d8a26224ca737a1aaed2c Mon Sep 17 00:00:00 2001 From: Harry Terkelsen Date: Thu, 22 Apr 2021 13:06:36 -0700 Subject: [PATCH] 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 --- engine/src/flutter/lib/web_ui/dev/goldens_lock.yaml | 2 +- .../web_ui/test/canvaskit/canvas_golden_test.dart | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/engine/src/flutter/lib/web_ui/dev/goldens_lock.yaml b/engine/src/flutter/lib/web_ui/dev/goldens_lock.yaml index a6453b378f..807e291632 100644 --- a/engine/src/flutter/lib/web_ui/dev/goldens_lock.yaml +++ b/engine/src/flutter/lib/web_ui/dev/goldens_lock.yaml @@ -1,2 +1,2 @@ repository: https://github.com/flutter/goldens.git -revision: 5bef90a33a3a06924de81236ff7902c3e4e64659 +revision: d885b270d90e031fdda2efd640eb5d6b6fbc9ce5 diff --git a/engine/src/flutter/lib/web_ui/test/canvaskit/canvas_golden_test.dart b/engine/src/flutter/lib/web_ui/test/canvaskit/canvas_golden_test.dart index 6012e25a97..7f5db4c493 100644 --- a/engine/src/flutter/lib/web_ui/test/canvaskit/canvas_golden_test.dart +++ b/engine/src/flutter/lib/web_ui/test/canvaskit/canvas_golden_test.dart @@ -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 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,