From 05727bfc3a9cfd45a8e2028dfd0806f7a8f88015 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 20 Feb 2021 17:53:40 +0100 Subject: =?UTF-8?q?Reorganize=20tests=20=F0=9F=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/library/typ/image.typ | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 tests/library/typ/image.typ (limited to 'tests/library/typ/image.typ') diff --git a/tests/library/typ/image.typ b/tests/library/typ/image.typ deleted file mode 100644 index 9c3cd4fe..00000000 --- a/tests/library/typ/image.typ +++ /dev/null @@ -1,35 +0,0 @@ -// Test loading different image formats. - -// Load an RGBA PNG image. -#image("res/rhino.png") -#pagebreak() - -// Load an RGB JPEG image. -#image("res/tiger.jpg") - -// Error: 8-29 failed to load image -#image("path/does/not/exist") - -// Error: 8-29 failed to load image -#image("typ/image-error.typ") - ---- -// Test configuring the size and fitting behaviour of images. - -// Fit to width of page. -#image("res/rhino.png") - -// Fit to height of page. -#page(height: 40pt, image("res/rhino.png")) - -// Set width explicitly. -#image("res/rhino.png", width: 50pt) - -// Set height explicitly. -#image("res/rhino.png", height: 50pt) - -// Set width and height explicitly and force stretching. -#image("res/rhino.png", width: 25pt, height: 50pt) - -// Make sure the bounding-box of the image is correct. -#align(bottom, right, image("res/tiger.jpg", width: 60pt)) -- cgit v1.2.3