Commit 52ed57e1 authored by Collin Jackson's avatar Collin Jackson

Test year selection for date picker

parent bb38d1d9
...@@ -27,8 +27,16 @@ void main() { ...@@ -27,8 +27,16 @@ void main() {
tester.pumpFrame(builder); tester.pumpFrame(builder);
expect(currentValue, isNull); 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')); tester.tap(tester.findText('30'));
expect(currentValue, equals(new DateTime(2013, 1, 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