mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
9466cbbcb4
Previously, the fn "Text" class rendered as a single block of text. Now, there's a "Paragraph" class that contains "TextFragment"s, and "Text" is just a component that places a single TextFragment into a single Paragraph. This allows other components, notably the Input component, to build more complicated paragraphs of styled text, without using 'display'. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1139123007
23 lines
484 B
Plaintext
23 lines
484 B
Plaintext
<import src="../resources/run-after-display.sky" />
|
|
<script>
|
|
import 'basic.dart';
|
|
import 'dart:sky';
|
|
import '../resources/dom_serializer.dart';
|
|
import 'dart:sky.internals' as internals;
|
|
|
|
void main() {
|
|
new TestApp();
|
|
runAfterDisplay(() {
|
|
document.firstChild.remove();
|
|
document.firstChild.remove();
|
|
var result = serializeNode(document);
|
|
try {
|
|
internals.notifyTestComplete(result);
|
|
} catch (e) {
|
|
print(e);
|
|
print(result);
|
|
}
|
|
});
|
|
}
|
|
</script>
|