1
0
Fork 0
Code Issues Pull requests Projects Releases 2 Packages Wiki Activity Actions Pages

Add graph viewport controls

This commit is contained in:
Andraxion 2026-07-24 16:09:56 -04:00
parent 195a57210a
commit 5a17830b9a
13 changed files with 204 additions and 20 deletions

View file

@ -81,6 +81,12 @@ class VisualizationTests(unittest.TestCase):
html = response.read().decode("utf-8")
headers = response.headers
self.assertIn("DocForge graph", html)
self.assertIn('id="zoom-in"', html)
self.assertIn('id="zoom-out"', html)
self.assertIn('id="reset-view"', html)
self.assertIn('addEventListener("wheel"', html)
self.assertIn('addEventListener("pointermove"', html)
self.assertIn("left-drag to pan", html)
self.assertIn("default-src 'none'", headers["Content-Security-Policy"])
self.assertEqual("no-store", headers["Cache-Control"])
self.assertEqual("DENY", headers["X-Frame-Options"])