mirror of
https://github.com/flutter/flutter
synced 2024-09-17 23:31:55 +00: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
|
// Use of this source code is governed by a BSD-style license that can be
|
||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
|
import 'dart:io' as io;
|
||||||
import 'dart:ui' as ui;
|
import 'dart:ui' as ui;
|
||||||
|
|
||||||
import 'package:flutter/painting.dart';
|
import 'package:flutter/painting.dart';
|
||||||
|
@ -26,7 +27,7 @@ void main() {
|
||||||
painter.layout();
|
painter.layout();
|
||||||
caretOffset = painter.getOffsetForCaret(new ui.TextPosition(offset: text.length), ui.Rect.zero);
|
caretOffset = painter.getOffsetForCaret(new ui.TextPosition(offset: text.length), ui.Rect.zero);
|
||||||
expect(caretOffset.dx, painter.width);
|
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", () {
|
test("TextPainter error test", () {
|
||||||
TextPainter painter = new TextPainter();
|
TextPainter painter = new TextPainter();
|
||||||
|
|
Loading…
Reference in a new issue