@@ -297,7 +297,7 @@ void main() {
297297  group ('LinkNode interactions' , () {
298298    // The Flutter test font uses square glyphs, so width equals height: 
299299    //   https://github.com/flutter/flutter/wiki/Flutter-Test-Fonts 
300-     const  fontSize  =   14.0 ; 
300+     // We use this to simulate taps on specific glyphs. 
301301
302302    Future <void > prepareContent (WidgetTester  tester, String  html) async  {
303303      await  testBinding.globalStore.add (eg.selfAccount, eg.initialSnapshot ());
@@ -323,6 +323,8 @@ void main() {
323323    }, variant:  const  TargetPlatformVariant ({TargetPlatform .android, TargetPlatform .iOS}));
324324
325325    testWidgets ('multiple links in paragraph' , (tester) async  {
326+       final  fontSize =  Paragraph .textStyle.fontSize! ;
327+ 
326328      await  prepareContent (tester,
327329        '<p><a href="https://a/">foo</a> bar <a href="https://b/">baz</a></p>' );
328330      final  base  =  tester.getTopLeft (find.text ('foo bar baz' ))
@@ -349,6 +351,8 @@ void main() {
349351    });
350352
351353    testWidgets ('link containing other spans' , (tester) async  {
354+       final  fontSize =  Paragraph .textStyle.fontSize! ;
355+ 
352356      await  prepareContent (tester,
353357        '<p><a href="https://a/">two <strong><em><code>words</code></em></strong></a></p>' );
354358      final  base  =  tester.getTopLeft (find.text ('two words' ))
0 commit comments