diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Offer avatars at twice the size to dense screens
The 13 pixel icon came out blurred on the high density screens most phones and laptops have.
Diffstat (limited to 'tests')
-rw-r--r--tests/extensions/test-email-avatar.lua1
1 file changed, 1 insertion, 0 deletions
diff --git a/tests/extensions/test-email-avatar.lua b/tests/extensions/test-email-avatar.lua
index c6b92cb..3f14eac 100644
--- a/tests/extensions/test-email-avatar.lua
+++ b/tests/extensions/test-email-avatar.lua
@@ -45,6 +45,7 @@ end
local out, ret = render("<author@example.com>", "A U Thor")
h.contains("an icon is drawn for an address", out, "<img src='" .. base_url)
h.contains("the size lands in the query", out, "?s=13&amp;d=retro'")
+h.contains("a dense screen gets twice the size", out, "?s=26&amp;d=retro 2x'")
h.contains("the icon is marked decorative", out, "alt='' width=")
h.contains("width matches the size", out, "width='13'")
h.contains("height matches the size", out, "height='13'")