Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
56508d41
Commit
56508d41
authored
Aug 26, 2015
by
Collin Jackson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #872 from collinjackson/more_date_picker_tests
Test year selection for date picker
parents
38d23028
52ed57e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
date_picker_test.dart
packages/unit/test/widget/date_picker_test.dart
+9
-1
No files found.
packages/unit/test/widget/date_picker_test.dart
View file @
56508d41
...
...
@@ -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
)));
});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment