Commit Graph
1 Commits
Author SHA1 Message Date
av 97783d43b8 Execute prefs.js in a test
prefs.js had never run. It lives in its own process rather than in the
compositor, so enabling the extension in a nested shell does not reach it,
and every other check in this repo was blind to it -- it would first have
executed when someone opened the preferences and found it broken.

It builds under real Adw, and the hook-status line correctly reports all
nine registered events. The shell's ExtensionPreferences base class and its
gettext are stubbed rather than loaded: both resolve an extension by
walking the caller's URL up to a registered UUID, which needs the whole
extension manager for no gain here. The stub keeps the test on this
extension's own code.

The switch count is asserted against the schema's key count, so a setting
added without a row to change it fails the test.
2026-08-09 19:32:32 +03:00