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
ebaffbdd
Commit
ebaffbdd
authored
Feb 23, 2017
by
Chris Bracken
Committed by
GitHub
Feb 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct spelling of 'Interval' in var name (#8375)
parent
a68c979b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
time_picker_test.dart
packages/flutter/test/material/time_picker_test.dart
+9
-9
No files found.
packages/flutter/test/material/time_picker_test.dart
View file @
ebaffbdd
...
@@ -113,8 +113,8 @@ void main() {
...
@@ -113,8 +113,8 @@ void main() {
});
});
group
(
'haptic feedback'
,
()
{
group
(
'haptic feedback'
,
()
{
const
Duration
kFastFeedbackInteral
=
const
Duration
(
milliseconds:
10
);
const
Duration
kFastFeedbackInter
v
al
=
const
Duration
(
milliseconds:
10
);
const
Duration
kSlowFeedbackInteral
=
const
Duration
(
milliseconds:
200
);
const
Duration
kSlowFeedbackInter
v
al
=
const
Duration
(
milliseconds:
200
);
int
hapticFeedbackCount
;
int
hapticFeedbackCount
;
setUpAll
(()
{
setUpAll
(()
{
...
@@ -138,7 +138,7 @@ void main() {
...
@@ -138,7 +138,7 @@ void main() {
testWidgets
(
'quick successive tap-selects vibrate once'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'quick successive tap-selects vibrate once'
,
(
WidgetTester
tester
)
async
{
Point
center
=
await
startPicker
(
tester
,
(
TimeOfDay
time
)
{
});
Point
center
=
await
startPicker
(
tester
,
(
TimeOfDay
time
)
{
});
await
tester
.
tapAt
(
new
Point
(
center
.
x
,
center
.
y
-
50.0
));
await
tester
.
tapAt
(
new
Point
(
center
.
x
,
center
.
y
-
50.0
));
await
tester
.
pump
(
kFastFeedbackInteral
);
await
tester
.
pump
(
kFastFeedbackInter
v
al
);
await
tester
.
tapAt
(
new
Point
(
center
.
x
,
center
.
y
+
50.0
));
await
tester
.
tapAt
(
new
Point
(
center
.
x
,
center
.
y
+
50.0
));
await
finishPicker
(
tester
);
await
finishPicker
(
tester
);
expect
(
hapticFeedbackCount
,
1
);
expect
(
hapticFeedbackCount
,
1
);
...
@@ -147,9 +147,9 @@ void main() {
...
@@ -147,9 +147,9 @@ void main() {
testWidgets
(
'slow successive tap-selects vibrate once per tap'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'slow successive tap-selects vibrate once per tap'
,
(
WidgetTester
tester
)
async
{
Point
center
=
await
startPicker
(
tester
,
(
TimeOfDay
time
)
{
});
Point
center
=
await
startPicker
(
tester
,
(
TimeOfDay
time
)
{
});
await
tester
.
tapAt
(
new
Point
(
center
.
x
,
center
.
y
-
50.0
));
await
tester
.
tapAt
(
new
Point
(
center
.
x
,
center
.
y
-
50.0
));
await
tester
.
pump
(
kSlowFeedbackInteral
);
await
tester
.
pump
(
kSlowFeedbackInter
v
al
);
await
tester
.
tapAt
(
new
Point
(
center
.
x
,
center
.
y
+
50.0
));
await
tester
.
tapAt
(
new
Point
(
center
.
x
,
center
.
y
+
50.0
));
await
tester
.
pump
(
kSlowFeedbackInteral
);
await
tester
.
pump
(
kSlowFeedbackInter
v
al
);
await
tester
.
tapAt
(
new
Point
(
center
.
x
,
center
.
y
-
50.0
));
await
tester
.
tapAt
(
new
Point
(
center
.
x
,
center
.
y
-
50.0
));
await
finishPicker
(
tester
);
await
finishPicker
(
tester
);
expect
(
hapticFeedbackCount
,
3
);
expect
(
hapticFeedbackCount
,
3
);
...
@@ -174,9 +174,9 @@ void main() {
...
@@ -174,9 +174,9 @@ void main() {
TestGesture
gesture
=
await
tester
.
startGesture
(
hour3
);
TestGesture
gesture
=
await
tester
.
startGesture
(
hour3
);
await
gesture
.
moveBy
(
hour0
-
hour3
);
await
gesture
.
moveBy
(
hour0
-
hour3
);
await
tester
.
pump
(
kFastFeedbackInteral
);
await
tester
.
pump
(
kFastFeedbackInter
v
al
);
await
gesture
.
moveBy
(
hour3
-
hour0
);
await
gesture
.
moveBy
(
hour3
-
hour0
);
await
tester
.
pump
(
kFastFeedbackInteral
);
await
tester
.
pump
(
kFastFeedbackInter
v
al
);
await
gesture
.
moveBy
(
hour0
-
hour3
);
await
gesture
.
moveBy
(
hour0
-
hour3
);
await
gesture
.
up
();
await
gesture
.
up
();
await
finishPicker
(
tester
);
await
finishPicker
(
tester
);
...
@@ -190,9 +190,9 @@ void main() {
...
@@ -190,9 +190,9 @@ void main() {
TestGesture
gesture
=
await
tester
.
startGesture
(
hour3
);
TestGesture
gesture
=
await
tester
.
startGesture
(
hour3
);
await
gesture
.
moveBy
(
hour0
-
hour3
);
await
gesture
.
moveBy
(
hour0
-
hour3
);
await
tester
.
pump
(
kSlowFeedbackInteral
);
await
tester
.
pump
(
kSlowFeedbackInter
v
al
);
await
gesture
.
moveBy
(
hour3
-
hour0
);
await
gesture
.
moveBy
(
hour3
-
hour0
);
await
tester
.
pump
(
kSlowFeedbackInteral
);
await
tester
.
pump
(
kSlowFeedbackInter
v
al
);
await
gesture
.
moveBy
(
hour0
-
hour3
);
await
gesture
.
moveBy
(
hour0
-
hour3
);
await
gesture
.
up
();
await
gesture
.
up
();
await
finishPicker
(
tester
);
await
finishPicker
(
tester
);
...
...
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