From 2d53e14ba497847fb94b854e170e85cb00dcbb17 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 24 Aug 2023 22:44:34 +0000 Subject: [PATCH] Additional tests to account for the Twig HTML extension. --- tests/test-global.twig | 8 ++++++++ tests/test-loaded-render.html | 5 +++++ tests/test-loaded-string.html | 5 +++++ tests/test-rendered.html | 5 +++++ 4 files changed, 23 insertions(+) diff --git a/tests/test-global.twig b/tests/test-global.twig index ff326cb..54baba8 100644 --- a/tests/test-global.twig +++ b/tests/test-global.twig @@ -11,3 +11,11 @@ global_var = {{ global_var }} {{ 'meow'|test_filter }} {{ test_function('the') }} {{ 'test' is test_test ? 'test works' : 'test does not work' }} + +{{ 'Mewow'|data_uri(mime="text/plain") }} +{{ 'Mewow'|data_uri(mime="application/octet-stream") }} + +
yay
diff --git a/tests/test-loaded-render.html b/tests/test-loaded-render.html index e997be0..76451e7 100644 --- a/tests/test-loaded-render.html +++ b/tests/test-loaded-render.html @@ -11,6 +11,11 @@ filter:meow func:the test works +data:text/plain,Mewow +data:application/octet-stream;base64,TWV3b3c= + +
yay
+ this var is context simple set call applied with fuckery diff --git a/tests/test-loaded-string.html b/tests/test-loaded-string.html index 71cb5d6..c7a0434 100644 --- a/tests/test-loaded-string.html +++ b/tests/test-loaded-string.html @@ -11,6 +11,11 @@ filter:meow func:the test works +data:text/plain,Mewow +data:application/octet-stream;base64,TWV3b3c= + +
yay
+ this var is context simple set call applied with fuckery diff --git a/tests/test-rendered.html b/tests/test-rendered.html index d75f623..2ac3baa 100644 --- a/tests/test-rendered.html +++ b/tests/test-rendered.html @@ -11,4 +11,9 @@ filter:meow func:the test works +data:text/plain,Mewow +data:application/octet-stream;base64,TWV3b3c= + +
yay
+ this var is local