Minor cleanup to tests. (#9197)

This commit is contained in:
Ian Hickson 2017-04-04 17:21:22 -07:00 committed by GitHub
parent cf991a3412
commit d98daa6e10
3 changed files with 3 additions and 3 deletions

View File

@ -53,6 +53,7 @@ void main() {
],
),
);
expect(_selectedDate, equals(new DateTime(2016, DateTime.JULY, 26)));
await tester.tapAt(const Point(50.0, 100.0));
expect(_selectedDate, equals(new DateTime(2016, DateTime.JULY, 26)));

View File

@ -30,7 +30,7 @@ void main() {
children: <String>['A', 'B', 'C', 'D', 'E', 'F'].map((String item) {
return new SizedBox(
height: 200.0,
child: new Text(item)
child: new Text(item),
);
}).toList(),
),

View File

@ -60,8 +60,7 @@ void main() {
expect(log, equals(<String>['Alaska']));
log.clear();
await tester.fling(
find.byType(PageView), const Offset(-200.0, 0.0), 1000.0);
await tester.fling(find.byType(PageView), const Offset(-200.0, 0.0), 1000.0);
await tester.pumpAndSettle(_frameDuration);
expect(find.text('Alabama'), findsNothing);