Application specific preferences saving now enabled.
This commit is contained in:
1 parent
f88e5b81a2
commit
60abcc37d9
23 files changed
+1004
-248
No files matched your search
@@ -121,9 +121,13 @@ def main():
|
||||
action("Return", "Master unmuted")
|
||||
original = (root / "settings.toml").read_bytes()
|
||||
action("Insert+Up", "20")
|
||||
action("Insert+ctrl+s", "Save unavailable")
|
||||
assert remote("SETTING SAVE") == "Save unavailable."
|
||||
assert remote("SETTING SAVEAS " + str(root / "other.toml")) == "Save unavailable."
|
||||
action("Insert+ctrl+s", "Ninjam application settings saved")
|
||||
profile = root / "applications" / "ninjam.toml"
|
||||
assert tomllib.loads(profile.read_text())["presentation"]["speech"]["rate"] == 20
|
||||
assert remote("SETTING SAVE") == ""
|
||||
assert remote("SETTING SAVEAS " + str(root / "other.toml")) == "SAVEAS is unavailable in application settings"
|
||||
action("Insert+f", "Ninjam application settings")
|
||||
action("Escape", "Ninjam application settings closed")
|
||||
assert not (root / "other.toml").exists()
|
||||
assert (root / "settings.toml").read_bytes() == original
|
||||
# Start detached review, then deliver actual XTest application
|
||||
@@ -143,7 +147,8 @@ def main():
|
||||
action("Insert+a", "Application Default")
|
||||
action("Down", "NetworkManager")
|
||||
action("Down", "Ninjam")
|
||||
action("Return", "Ninjam application override selected")
|
||||
action("Return", "Master Volume and pan")
|
||||
action("Insert+space", "20")
|
||||
action("q", "Default settings restored")
|
||||
action("Insert+ctrl+s", "Settings saved")
|
||||
saved = tomllib.loads((root / "settings.toml").read_text())
|
||||
@@ -154,7 +159,7 @@ def main():
|
||||
finished = json.loads((root / "finished").read_text())
|
||||
assert finished == {"status": 0, "restored": True, "flagsRestored": True}, finished
|
||||
assert not server.errors, server.errors
|
||||
print(f"PASS: {layout} application menu, cancellation, semantic navigation/chat, region reads, save guards and restoration")
|
||||
print(f"PASS: {layout} application menu, cancellation, semantic navigation/chat, region reads, application saves/reloads and default restoration")
|
||||
except BaseException:
|
||||
print("SSIP events:", server.events[-25:], file=sys.stderr)
|
||||
for name in ("reader-errors", "timing.log"):
|
||||
|
||||
Reference in new issue
Block a user