Skip failing input tests (#6965)

* Skip failing input tests

* Only skip on Mac OS
This commit is contained in:
Luke Church
2016-11-30 07:10:19 +00:00
committed by GitHub
parent f0c7f5a942
commit 0924b020ec
2 changed files with 8 additions and 4 deletions

View File

@@ -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;

View File

@@ -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(<String>['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<String> log = <String>[];
@@ -102,5 +104,5 @@ void main() {
await tester.tap(find.byType(Scrollable));
await tester.pump(const Duration(milliseconds: 50));
expect(log, equals(<String>['tap 18', 'tap 43']));
});
}, skip: Platform.isMacOS); // Skip due to https://github.com/flutter/flutter/issues/6961
}