]> git.scottworley.com Git - paperdoorknob/blobdiff - paperdoorknob_test.py
Learning TeX: Keep icon image size in TeX
[paperdoorknob] / paperdoorknob_test.py
index 8527dd3144f91d91a42b88995c65e5b78837e1e2..286d6a9fc3aa65ca4cae3c4934470f27e775e468 100644 (file)
@@ -15,7 +15,7 @@ import paperdoorknob
 
 from testing.fakeserver import FakeGlowficServer
 from fetch import DirectFetcher, FakeFetcher, Fetcher
-from glowfic import ContentOnlyLayout, BelowIconLayout
+from glowfic import ContentOnlyLayout, BesideIconLayout
 from images import FakeImageStore
 from spec import Spec
 from texify import DirectTexifier, PandocTexifier, VerifyingTexifier
@@ -42,6 +42,7 @@ class BaseTestProcess(ABC):
             lambda x: x,
             lambda x: None,
             lambda x: x,
+            20,
             ContentOnlyLayout(PandocTexifier('pandoc')),
             'margin=20mm',
             buf,
@@ -50,7 +51,8 @@ class BaseTestProcess(ABC):
         assert re.match(br'''\\documentclass{article}
 (\\usepackage{[a-z]+}\n)+\\usepackage\[margin=20mm\]{geometry}
 \\begin{document}
-This is glowfic
+(.|\n)*
+This is \\href{https://glowfic.com}{glowfic}
 
 You \\emph{sure}\?
 
@@ -70,6 +72,7 @@ Pretty sure.
             lambda x: x,
             lambda x: None,
             lambda x: x,
+            20,
             ContentOnlyLayout(texifier),
             None,
             buf,
@@ -85,7 +88,8 @@ Pretty sure.
                 lambda x: x,
                 lambda x: None,
                 lambda x: x,
-                BelowIconLayout(PandocTexifier('pandoc'), 20),
+                20,
+                BesideIconLayout(PandocTexifier('pandoc')),
                 None,
                 out,
                 lambda _: None)