未验证 提交 7ecc879f 编写于 作者: M Michael Klimushyn 提交者: GitHub

Fix failing test on Cirrus (#6469)

Updates the tests to use the `--use-test-fonts` argument.

Fixes flutter/flutter#22682
上级 88facf40
......@@ -7,7 +7,6 @@ import 'dart:ui';
import 'package:test/test.dart';
void main() {
// TODO(flutter/flutter#22682): Re-enable this test.
test('Should be able to build and layout a paragraph', () {
final ParagraphBuilder builder = ParagraphBuilder(ParagraphStyle());
builder.addText('Hello');
......@@ -17,5 +16,5 @@ void main() {
paragraph.layout(ParagraphConstraints(width: 800.0));
expect(paragraph.width, isNonZero);
expect(paragraph.height, isNonZero);
}, skip: 'Fails on cirrus.');
});
}
......@@ -11,7 +11,7 @@ popd
run_test () {
out/host_debug_unopt/dart out/host_debug_unopt/gen/frontend_server.dart.snapshot --sdk-root out/host_debug_unopt/flutter_patched_sdk --incremental --strong --target=flutter --packages flutter/testing/dart/.packages --output-dill out/host_debug_unopt/engine_test.dill $1
out/host_debug_unopt/flutter_tester --disable-observatory out/host_debug_unopt/engine_test.dill
out/host_debug_unopt/flutter_tester --disable-observatory --use-test-fonts out/host_debug_unopt/engine_test.dill
}
# Verify that a failing test returns a failure code.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册