imageviewer

This commit is contained in:
kodi
2026-03-13 11:57:49 +01:00
parent 018c3dcd94
commit 4ba4020c2a
3 changed files with 36 additions and 4 deletions
@@ -200,7 +200,12 @@ class UiSmokeGoldenTest(unittest.TestCase):
self.assertIn('function imageElements()', app_js)
self.assertIn('function isImageSelection(item)', app_js)
self.assertIn('async function openImageViewer()', app_js)
self.assertIn('if (isImageSelection(item)) {', app_js)
self.assertIn('openImageViewer();', app_js)
self.assertIn('function isImageOpen()', app_js)
self.assertIn('requestAnimationFrame(() => {', app_js)
self.assertIn('if (!fitImageToViewport()) {', app_js)
self.assertIn('if (!viewport.clientWidth || !viewport.clientHeight) {', app_js)
self.assertIn("`/api/files/image?", app_js)
self.assertIn('if (isImageSelection(selected)) {', app_js)
self.assertIn('document.getElementById("info-modal")', app_js)