add ability to match child semantics data (#22001)

This commit is contained in:
Jonah Williams
2018-10-05 17:44:26 -07:00
committed by GitHub
parent 21a32fdd0c
commit cdf1cec902
16 changed files with 307 additions and 62 deletions

View File

@@ -14,7 +14,7 @@ void main() {
home: ChipDemo(),
));
expect(tester.getSemanticsData(find.byIcon(Icons.vignette)), matchesSemanticsData(
expect(tester.getSemantics(find.byIcon(Icons.vignette)), matchesSemantics(
isButton: true,
hasEnabledState: true,
isEnabled: true,
@@ -22,7 +22,7 @@ void main() {
label: 'Update border shape',
));
expect(tester.getSemanticsData(find.byIcon(Icons.refresh)), matchesSemanticsData(
expect(tester.getSemantics(find.byIcon(Icons.refresh)), matchesSemantics(
isButton: true,
hasEnabledState: true,
isEnabled: true,