Commit 403441d2 authored by Adam Barth's avatar Adam Barth

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.
parent 63101e49
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();
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment