aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/test_generate.py
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-13 17:17:31 -0500
committerCraig Jennings <c@cjennings.net>2026-06-13 17:17:31 -0500
commitd93560446f954a44890b8472f90d57c3080993df (patch)
treeda5f94a93fb296709f1c1272a2c118ffee47dac5 /scripts/theme-studio/test_generate.py
parentc18d914c138d04157afe64a64b7cd47aaa3171b0 (diff)
downloaddotemacs-d93560446f954a44890b8472f90d57c3080993df.tar.gz
dotemacs-d93560446f954a44890b8472f90d57c3080993df.zip
Refactor theme studio palette tests
Diffstat (limited to 'scripts/theme-studio/test_generate.py')
-rw-r--r--scripts/theme-studio/test_generate.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/theme-studio/test_generate.py b/scripts/theme-studio/test_generate.py
index 3b6ad741..e845085e 100644
--- a/scripts/theme-studio/test_generate.py
+++ b/scripts/theme-studio/test_generate.py
@@ -73,6 +73,7 @@ class ColormathInlining(unittest.TestCase):
class AssembledPage(unittest.TestCase):
PLACEHOLDERS = [
"STYLES_CSS", "APP_JS", "APP_CORE_J", "APP_UTIL_J",
+ "PALETTE_ACTIONS_J", "BROWSER_GATES_J",
"COLORMATH_J", "SAMPLES_J", "PALETTE_J", "CATS_J",
"UIFACES_J", "UIMAP_J", "APPS_J", "BOLD_J", "MAP_J",
]
@@ -95,6 +96,12 @@ class AssembledPage(unittest.TestCase):
# app-util.js inlines verbatim after its import line is stripped.
self.assertIn(generate.APP_UTIL_BODY, generate.HTML)
+ def test_page_carries_palette_actions_verbatim(self):
+ self.assertIn(generate.PALETTE_ACTIONS_BODY, generate.HTML)
+
+ def test_page_carries_browser_gates_verbatim(self):
+ self.assertIn(generate.BROWSER_GATES_BODY, generate.HTML)
+
def test_app_util_inlined_body_has_no_import_line(self):
# The `import rl` line must be gone, or the page <script> is invalid.
for line in generate.APP_UTIL_BODY.splitlines():