summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin <mhaug@live.de>2022-01-01 12:56:03 +0100
committerGitHub <noreply@github.com>2022-01-01 12:56:03 +0100
commit28fc2893e873d44aa31a64a87cb3e2e975977a70 (patch)
treebad022650bb488492386e4fc079dde3807b89304 /tests
parent5d5d8a21cfc041ab08d30229f4ecb4cbb415cbc5 (diff)
parent179a9f479831c4941253c0517fccdec3acd8f2ff (diff)
Merge pull request #53 from typst/style-chains
Diffstat (limited to 'tests')
-rw-r--r--tests/typeset.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/typeset.rs b/tests/typeset.rs
index 452d6584..164ccc91 100644
--- a/tests/typeset.rs
+++ b/tests/typeset.rs
@@ -11,7 +11,7 @@ use usvg::FitTo;
use walkdir::WalkDir;
use typst::diag::Error;
-use typst::eval::{Smart, Styles, Value};
+use typst::eval::{Smart, StyleMap, Value};
use typst::font::Face;
use typst::frame::{Element, Frame, Geometry, Shape, Stroke, Text};
use typst::geom::{self, Color, Length, Paint, PathElement, RgbaColor, Size, Transform};
@@ -70,7 +70,7 @@ fn main() {
// Set page width to 120pt with 10pt margins, so that the inner page is
// exactly 100pt wide. Page height is unbounded and font size is 10pt so
// that it multiplies to nice round numbers.
- let mut styles = Styles::new();
+ let mut styles = StyleMap::new();
styles.set(PageNode::WIDTH, Smart::Custom(Length::pt(120.0)));
styles.set(PageNode::HEIGHT, Smart::Auto);
styles.set(PageNode::LEFT, Smart::Custom(Length::pt(10.0).into()));