fix: restore native playback speed range

This commit is contained in:
joshpatra committed 2026-07-26 11:14:55 -04:00
1 parent 9b6d1ccd3c
commit a02b7b57f7
6 files changed
+15 -12

No files matched your search

+1 -1
View File
@@ -257,7 +257,7 @@ describe("canonical settings storage", () => {
expect(rule.forceLastSavedSpeed).toBe(true);
expect(rule.controllerOpacity).toBe(1);
expect(rule.subtitleNudgeInterval).toBe(250);
expect(rule.preferredSpeed).toBe(100);
expect(rule.preferredSpeed).toBe(16);
});
it("falls back for null and blank numeric settings instead of coercing zero", () => {
+7 -4
View File
@@ -158,10 +158,13 @@ describe("shared helpers", () => {
"NumpadAdd"
);
expect(keyBindingUtils.getLegacyKeyCode({ key: 65 })).toBe(65);
expect(keyBindingUtils.getActionValueError("fast", 0.01)).toBeNull();
expect(keyBindingUtils.getActionValueError("fast", 100)).toBeNull();
expect(keyBindingUtils.getActionValueError("fast", 0.009)).toContain(
"between 0.01 and 100"
expect(keyBindingUtils.getActionValueError("fast", 0.1)).toBeNull();
expect(keyBindingUtils.getActionValueError("fast", 16)).toBeNull();
expect(keyBindingUtils.getActionValueError("fast", 0.099)).toContain(
"between 0.1 and 16"
);
expect(keyBindingUtils.getActionValueError("fast", 16.001)).toContain(
"between 0.1 and 16"
);
});