[flutter_test] new WidgetTester API based on finder objects (#3288)

This commit is contained in:
Yegor
2016-04-13 23:40:15 -07:00
parent a5a34d9704
commit f3a4f722c4
67 changed files with 1671 additions and 1122 deletions

View File

@@ -13,7 +13,7 @@ void main() {
hello_world.main(); // builds the app and schedules a frame but doesn't trigger one
tester.pump(); // triggers a frame
expect(tester.findText('Hello, world!'), isNotNull);
expect(tester, hasWidget(find.text('Hello, world!')));
});
});
}