From 0924b020ec461a5359b1e4f2e784987431343597 Mon Sep 17 00:00:00 2001 From: Luke Church Date: Wed, 30 Nov 2016 07:10:19 +0000 Subject: [PATCH] Skip failing input tests (#6965) * Skip failing input tests * Only skip on Mac OS --- packages/flutter/test/widgets/input_test.dart | 6 ++++-- packages/flutter/test/widgets/scrollable_fling_test.dart | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/flutter/test/widgets/input_test.dart b/packages/flutter/test/widgets/input_test.dart index 024f0ff7d6..43c8ed44a0 100644 --- a/packages/flutter/test/widgets/input_test.dart +++ b/packages/flutter/test/widgets/input_test.dart @@ -3,6 +3,7 @@ // found in the LICENSE file. import 'dart:async'; +import 'dart:io'; import 'package:flutter_test/flutter_test.dart'; import 'package:flutter/material.dart'; @@ -591,7 +592,8 @@ void main() { await tester.pumpWidget(builder()); expect(inputValue.selection.isCollapsed, true); expect(inputValue.text, cutValue); - }); + }, skip: Platform.isMacOS); // Skip due to https://github.com/flutter/flutter/issues/6961 + testWidgets('Can scroll multiline input', (WidgetTester tester) async { GlobalKey inputKey = new GlobalKey(); @@ -688,7 +690,7 @@ void main() { expect(newFirstPos.y, firstPos.y); expect(inputBox.hitTest(new HitTestResult(), position: inputBox.globalToLocal(newFirstPos)), isTrue); expect(inputBox.hitTest(new HitTestResult(), position: inputBox.globalToLocal(newFourthPos)), isFalse); - }); + }, skip: Platform.isMacOS); // Skip due to https://github.com/flutter/flutter/issues/6961 testWidgets('InputField smoke test', (WidgetTester tester) async { InputValue inputValue = InputValue.empty; diff --git a/packages/flutter/test/widgets/scrollable_fling_test.dart b/packages/flutter/test/widgets/scrollable_fling_test.dart index a9d205963c..941e808383 100644 --- a/packages/flutter/test/widgets/scrollable_fling_test.dart +++ b/packages/flutter/test/widgets/scrollable_fling_test.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +import 'dart:io'; + import 'package:flutter_test/flutter_test.dart'; import 'package:flutter/material.dart'; @@ -80,7 +82,7 @@ void main() { await tester.tap(find.byType(Scrollable)); await tester.pump(const Duration(milliseconds: 50)); expect(log, equals(['tap 18', 'tap 31'])); - }); + }, skip: Platform.isMacOS); // Skip due to https://github.com/flutter/flutter/issues/6961 testWidgets('fling and wait and tap', (WidgetTester tester) async { List log = []; @@ -102,5 +104,5 @@ void main() { await tester.tap(find.byType(Scrollable)); await tester.pump(const Duration(milliseconds: 50)); expect(log, equals(['tap 18', 'tap 43'])); - }); + }, skip: Platform.isMacOS); // Skip due to https://github.com/flutter/flutter/issues/6961 }