From 9014280f7bf02ca319a31e22f90183ae423f2da7 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Mon, 6 Feb 2017 16:53:52 -0800 Subject: [PATCH] Skip TextPainter caret test (#7912) Reason: https://github.com/flutter/flutter/issues/4273 --- packages/flutter/test/painting/text_painter_test.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/flutter/test/painting/text_painter_test.dart b/packages/flutter/test/painting/text_painter_test.dart index 8825d9d919a..39006505aff 100644 --- a/packages/flutter/test/painting/text_painter_test.dart +++ b/packages/flutter/test/painting/text_painter_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +import 'dart:io' as io; import 'dart:ui' as ui; import 'package:flutter/painting.dart'; @@ -26,7 +27,7 @@ void main() { painter.layout(); caretOffset = painter.getOffsetForCaret(new ui.TextPosition(offset: text.length), ui.Rect.zero); expect(caretOffset.dx, painter.width); - }); + }, skip: io.Platform.isMacOS); // TODO(goderbauer): Disabled because of https://github.com/flutter/flutter/issues/4273 test("TextPainter error test", () { TextPainter painter = new TextPainter();