flutter/packages/unit/test/engine/paragraph_builder_test_disabled.dart
Adam Barth b89d790a84 Disentangle FontSize from Settings
Instead, just store the default font sizes in statics. These statics are
constants for now, but we'll probably make them configurable at some point.
2015-09-11 12:51:27 -07:00

22 lines
553 B
Dart

import 'dart:sky';
import 'package:test/test.dart';
void main() {
test("Should be able to build and layout a paragraph", () {
ParagraphBuilder builder = new ParagraphBuilder();
builder.addText('Hello');
Paragraph paragraph = builder.build(new ParagraphStyle());
expect(paragraph, isNotNull);
paragraph.minWidth = 0.0;
paragraph.maxWidth = 800.0;
paragraph.minHeight = 0.0;
paragraph.maxHeight = 600.0;
paragraph.layout();
expect(paragraph.width, isNonZero);
expect(paragraph.height, isNonZero);
});
}