@@ -487,6 +487,7 @@ class SemanticsTester {
487
487
TextDirection ? textDirection,
488
488
List <SemanticsAction >? actions,
489
489
List <SemanticsFlag >? flags,
490
+ Set <SemanticsTag >? tags,
490
491
double ? scrollPosition,
491
492
double ? scrollExtentMax,
492
493
double ? scrollExtentMin,
@@ -536,6 +537,12 @@ class SemanticsTester {
536
537
return false ;
537
538
}
538
539
}
540
+ if (tags != null ) {
541
+ final Set <SemanticsTag >? actualTags = node.getSemanticsData ().tags;
542
+ if (! setEquals <SemanticsTag >(actualTags, tags)) {
543
+ return false ;
544
+ }
545
+ }
539
546
if (scrollPosition != null && ! nearEqual (node.scrollPosition, scrollPosition, 0.1 )) {
540
547
return false ;
541
548
}
@@ -796,6 +803,7 @@ class _IncludesNodeWith extends Matcher {
796
803
this .textDirection,
797
804
this .actions,
798
805
this .flags,
806
+ this .tags,
799
807
this .scrollPosition,
800
808
this .scrollExtentMax,
801
809
this .scrollExtentMin,
@@ -806,6 +814,7 @@ class _IncludesNodeWith extends Matcher {
806
814
value != null ||
807
815
actions != null ||
808
816
flags != null ||
817
+ tags != null ||
809
818
scrollPosition != null ||
810
819
scrollExtentMax != null ||
811
820
scrollExtentMin != null ||
@@ -821,6 +830,7 @@ class _IncludesNodeWith extends Matcher {
821
830
final TextDirection ? textDirection;
822
831
final List <SemanticsAction >? actions;
823
832
final List <SemanticsFlag >? flags;
833
+ final Set <SemanticsTag >? tags;
824
834
final double ? scrollPosition;
825
835
final double ? scrollExtentMax;
826
836
final double ? scrollExtentMin;
@@ -839,6 +849,7 @@ class _IncludesNodeWith extends Matcher {
839
849
textDirection: textDirection,
840
850
actions: actions,
841
851
flags: flags,
852
+ tags: tags,
842
853
scrollPosition: scrollPosition,
843
854
scrollExtentMax: scrollExtentMax,
844
855
scrollExtentMin: scrollExtentMin,
@@ -865,6 +876,7 @@ class _IncludesNodeWith extends Matcher {
865
876
if (textDirection != null ) ' (${textDirection !.name })' ,
866
877
if (actions != null ) 'actions "${actions !.join (', ' )}"' ,
867
878
if (flags != null ) 'flags "${flags !.join (', ' )}"' ,
879
+ if (tags != null ) 'tags "${tags !.join (', ' )}"' ,
868
880
if (scrollPosition != null ) 'scrollPosition "$scrollPosition "' ,
869
881
if (scrollExtentMax != null ) 'scrollExtentMax "$scrollExtentMax "' ,
870
882
if (scrollExtentMin != null ) 'scrollExtentMin "$scrollExtentMin "' ,
@@ -889,6 +901,7 @@ Matcher includesNodeWith({
889
901
TextDirection ? textDirection,
890
902
List <SemanticsAction >? actions,
891
903
List <SemanticsFlag >? flags,
904
+ Set <SemanticsTag >? tags,
892
905
double ? scrollPosition,
893
906
double ? scrollExtentMax,
894
907
double ? scrollExtentMin,
@@ -905,6 +918,7 @@ Matcher includesNodeWith({
905
918
textDirection: textDirection,
906
919
actions: actions,
907
920
flags: flags,
921
+ tags: tags,
908
922
scrollPosition: scrollPosition,
909
923
scrollExtentMax: scrollExtentMax,
910
924
scrollExtentMin: scrollExtentMin,
0 commit comments