flutter/packages/unit/test/engine/paragraph_builder_test_disabled.dart
Adam Barth 403441d2ab ParagraphBuilder should be able to build a paragraph
This patch start down the road of implementing text layout and painting without
the DOM. We can construct a basic paragraph consisting of a single run of text
and we can get through layout without crashing.
2015-09-11 10:23:15 -07:00

14 lines
344 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.layout();
});
}