From b89d790a84a1b7dd36f1e5c3c17ef5668dd7ee5a Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Fri, 11 Sep 2015 12:51:27 -0700 Subject: [PATCH] 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. --- .../unit/test/engine/paragraph_builder_test_disabled.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/unit/test/engine/paragraph_builder_test_disabled.dart b/packages/unit/test/engine/paragraph_builder_test_disabled.dart index 4e7d53b97d..2f24391ce3 100644 --- a/packages/unit/test/engine/paragraph_builder_test_disabled.dart +++ b/packages/unit/test/engine/paragraph_builder_test_disabled.dart @@ -8,6 +8,14 @@ void main() { 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); }); }