diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-31 15:05:42 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-31 15:05:42 +0100 |
| commit | ec05ed7e0646d1e8ff76677d0332ddf93ed57b69 (patch) | |
| tree | 75f57cbc2380591ef6c4f30d71e018e3cd001e19 /tests/typ/compiler | |
| parent | 9a99beec94a5b02aa91a363b299d4795ef52c0fa (diff) | |
Move assets
Diffstat (limited to 'tests/typ/compiler')
| -rw-r--r-- | tests/typ/compiler/import.typ | 4 | ||||
| -rw-r--r-- | tests/typ/compiler/include.typ | 2 | ||||
| -rw-r--r-- | tests/typ/compiler/set.typ | 2 | ||||
| -rw-r--r-- | tests/typ/compiler/show-text.typ | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/typ/compiler/import.typ b/tests/typ/compiler/import.typ index f97b1ae0..0d40e351 100644 --- a/tests/typ/compiler/import.typ +++ b/tests/typ/compiler/import.typ @@ -69,8 +69,8 @@ --- // Some non-text stuff. -// Error: 9-30 file is not valid utf-8 -#import "../../res/rhino.png" +// Error: 9-21 file is not valid utf-8 +#import "/rhino.png" --- // Unresolved import. diff --git a/tests/typ/compiler/include.typ b/tests/typ/compiler/include.typ index a655e9f2..fa2e84c0 100644 --- a/tests/typ/compiler/include.typ +++ b/tests/typ/compiler/include.typ @@ -6,7 +6,7 @@ = Document // Include a file -#include "/typ/compiler/modules/chap1.typ" +#include "modules/chap1.typ" // Expression as a file name. #let chap2 = include "modu" + "les/chap" + "2.typ" diff --git a/tests/typ/compiler/set.typ b/tests/typ/compiler/set.typ index 39c3e613..36a42745 100644 --- a/tests/typ/compiler/set.typ +++ b/tests/typ/compiler/set.typ @@ -40,7 +40,7 @@ Hello *#x* // Test relative path resolving in layout phase. #let choice = ("monkey.svg", "rhino.png", "tiger.jpg") #set enum(numbering: n => { - let path = "../../res/" + choice.at(n - 1) + let path = "/" + choice.at(n - 1) move(dy: -0.15em, image(path, width: 1em, height: 1em)) }) diff --git a/tests/typ/compiler/show-text.typ b/tests/typ/compiler/show-text.typ index 124d2ed2..c867ff9f 100644 --- a/tests/typ/compiler/show-text.typ +++ b/tests/typ/compiler/show-text.typ @@ -54,6 +54,6 @@ World --- // Test absolute path in layout phase. -#show "GRAPH": image("/res/graph.png") +#show "GRAPH": image("/graph.png") The GRAPH has nodes. |
