Commit d98daa6e authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Minor cleanup to tests. (#9197)

parent cf991a34
...@@ -53,6 +53,7 @@ void main() { ...@@ -53,6 +53,7 @@ void main() {
], ],
), ),
); );
expect(_selectedDate, equals(new DateTime(2016, DateTime.JULY, 26)));
await tester.tapAt(const Point(50.0, 100.0)); await tester.tapAt(const Point(50.0, 100.0));
expect(_selectedDate, equals(new DateTime(2016, DateTime.JULY, 26))); expect(_selectedDate, equals(new DateTime(2016, DateTime.JULY, 26)));
......
...@@ -30,7 +30,7 @@ void main() { ...@@ -30,7 +30,7 @@ void main() {
children: <String>['A', 'B', 'C', 'D', 'E', 'F'].map((String item) { children: <String>['A', 'B', 'C', 'D', 'E', 'F'].map((String item) {
return new SizedBox( return new SizedBox(
height: 200.0, height: 200.0,
child: new Text(item) child: new Text(item),
); );
}).toList(), }).toList(),
), ),
......
...@@ -60,8 +60,7 @@ void main() { ...@@ -60,8 +60,7 @@ void main() {
expect(log, equals(<String>['Alaska'])); expect(log, equals(<String>['Alaska']));
log.clear(); log.clear();
await tester.fling( await tester.fling(find.byType(PageView), const Offset(-200.0, 0.0), 1000.0);
find.byType(PageView), const Offset(-200.0, 0.0), 1000.0);
await tester.pumpAndSettle(_frameDuration); await tester.pumpAndSettle(_frameDuration);
expect(find.text('Alabama'), findsNothing); expect(find.text('Alabama'), findsNothing);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment