Commit 56508d41 authored by Collin Jackson's avatar Collin Jackson

Merge pull request #872 from collinjackson/more_date_picker_tests

Test year selection for date picker
parents 38d23028 52ed57e1
......@@ -27,8 +27,16 @@ void main() {
tester.pumpFrame(builder);
expect(currentValue, isNull);
tester.tap(tester.findText('2015'));
tester.pumpFrame(builder);
// TODO(jackson): We shouldn't need to pump a second frame here.
tester.pumpFrame(builder);
tester.tap(tester.findText('2014'));
tester.pumpFrame(builder);
// TODO(jackson): We shouldn't need to pump a second frame here.
tester.pumpFrame(builder);
expect(currentValue, equals(new DateTime(2014, 6, 9)));
tester.tap(tester.findText('30'));
expect(currentValue, equals(new DateTime(2013, 1, 30)));
});
}
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