mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Skip TextPainter caret test (#7912)
Reason: https://github.com/flutter/flutter/issues/4273
This commit is contained in:
parent
524058f53a
commit
9014280f7b
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user