Commit ebaffbdd authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Correct spelling of 'Interval' in var name (#8375)

parent a68c979b
...@@ -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 kFastFeedbackInterval = const Duration(milliseconds: 10);
const Duration kSlowFeedbackInteral = const Duration(milliseconds: 200); const Duration kSlowFeedbackInterval = 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(kFastFeedbackInterval);
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(kSlowFeedbackInterval);
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(kSlowFeedbackInterval);
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(kFastFeedbackInterval);
await gesture.moveBy(hour3 - hour0); await gesture.moveBy(hour3 - hour0);
await tester.pump(kFastFeedbackInteral); await tester.pump(kFastFeedbackInterval);
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(kSlowFeedbackInterval);
await gesture.moveBy(hour3 - hour0); await gesture.moveBy(hour3 - hour0);
await tester.pump(kSlowFeedbackInteral); await tester.pump(kSlowFeedbackInterval);
await gesture.moveBy(hour0 - hour3); await gesture.moveBy(hour0 - hour3);
await gesture.up(); await gesture.up();
await finishPicker(tester); await finishPicker(tester);
......
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