@@ -734,7 +734,7 @@ void main() {
734
734
});
735
735
});
736
736
737
- test ('Supports gesture recognizer semantics' , () {
737
+ test ('Supports gesture recognizer semantics' , () {
738
738
final RenderParagraph paragraph = RenderParagraph (
739
739
TextSpan (text: _kText, children: < InlineSpan > [
740
740
TextSpan (text: 'one' , recognizer: TapGestureRecognizer ()..onTap = () {}),
@@ -745,7 +745,18 @@ void main() {
745
745
);
746
746
layout (paragraph);
747
747
748
- paragraph.assembleSemanticsNode (SemanticsNode (), SemanticsConfiguration (), < SemanticsNode > []);
748
+ final SemanticsNode node = SemanticsNode ();
749
+ paragraph.assembleSemanticsNode (node, SemanticsConfiguration (), < SemanticsNode > []);
750
+ final List <SemanticsNode > children = < SemanticsNode > [];
751
+ node.visitChildren ((SemanticsNode child) {
752
+ children.add (child);
753
+ return true ;
754
+ });
755
+ expect (children.length, 4 );
756
+ expect (children[0 ].getSemanticsData ().actions, 0 );
757
+ expect (children[1 ].getSemanticsData ().hasAction (SemanticsAction .tap), true );
758
+ expect (children[2 ].getSemanticsData ().hasAction (SemanticsAction .longPress), true );
759
+ expect (children[3 ].getSemanticsData ().hasAction (SemanticsAction .tap), true );
749
760
});
750
761
751
762
test ('Supports empty text span with spell out' , () {
0 commit comments