s
This commit is contained in:
@@ -14,7 +14,6 @@ class NekoConfigTests(unittest.TestCase):
|
||||
self.assertIn("arch=\"$(uname -m", script)
|
||||
self.assertIn("--disable-software-rasterizer", script)
|
||||
self.assertIn("--use-gl=swiftshader", script)
|
||||
self.assertIn("--bwsi", script)
|
||||
self.assertIn("NEKO_BROWSER_RENDER_MODE", script)
|
||||
self.assertIn('prune_path "$profile_dir/BrowserMetrics"', script)
|
||||
self.assertIn('prune_path "$profile_dir/Crash Reports"', script)
|
||||
@@ -27,12 +26,14 @@ class NekoConfigTests(unittest.TestCase):
|
||||
self.assertEqual(policies["DefaultGeolocationSetting"], 1)
|
||||
self.assertTrue(policies["VideoCaptureAllowed"])
|
||||
self.assertTrue(policies["AudioCaptureAllowed"])
|
||||
self.assertEqual(policies["DeveloperToolsAvailability"], 1)
|
||||
|
||||
def test_google_chrome_supervisor_uses_direct_stable_command(self) -> None:
|
||||
conf = (ROOT / "services" / "neko" / "google-chrome.conf").read_text(encoding="utf-8")
|
||||
self.assertIn("command=/usr/bin/google-chrome", conf)
|
||||
self.assertNotIn("browser-launch.sh", conf)
|
||||
self.assertIn("--user-data-dir=/home/neko/.config/google-chrome", conf)
|
||||
self.assertNotIn("--bwsi", conf)
|
||||
self.assertIn("--disable-software-rasterizer", conf)
|
||||
self.assertIn("autorestart=true", conf)
|
||||
self.assertIn("[program:openbox]", conf)
|
||||
@@ -43,6 +44,7 @@ class NekoConfigTests(unittest.TestCase):
|
||||
self.assertIn("command=/usr/bin/chromium", conf)
|
||||
self.assertNotIn("browser-launch.sh", conf)
|
||||
self.assertIn("--user-data-dir=/home/neko/.config/chromium", conf)
|
||||
self.assertNotIn("--bwsi", conf)
|
||||
self.assertIn("--disable-software-rasterizer", conf)
|
||||
self.assertIn("autorestart=true", conf)
|
||||
self.assertIn("[program:openbox]", conf)
|
||||
|
||||
Reference in New Issue
Block a user