Add graph viewport controls
This commit is contained in:
parent
195a57210a
commit
5a17830b9a
13 changed files with 204 additions and 20 deletions
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue