diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-12-17 00:20:27 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-12-17 00:20:27 +0100 |
| commit | 81e80ecfba80f5bffab45719c1f2aba4f9b91b4f (patch) | |
| tree | 03452a7ef0361f24159a60c93fb543263afb91e3 /tests/typ/page-error.typ | |
| parent | 2336aeb4c32864f53a4d4e0f72e54a174df47a60 (diff) | |
Test [page] function 📕
- Make page break behaviour more consistent
- Allow skipping reference image testing for single tests with `// compare-ref: false` (useful for tests which only check error messages)
Diffstat (limited to 'tests/typ/page-error.typ')
| -rw-r--r-- | tests/typ/page-error.typ | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/typ/page-error.typ b/tests/typ/page-error.typ new file mode 100644 index 00000000..dee5c449 --- /dev/null +++ b/tests/typ/page-error.typ @@ -0,0 +1,11 @@ +// Test error cases of the `page` function. + +// compare-ref: false +// error: 8:8-8:19 invalid paper +// error: 11:17-11:20 aligned axis + +// Invalid paper. +[page: nonexistant] + +// Aligned axes. +[page: main-dir=ltr] |
