mirror of
https://github.com/SoPat712/Speeder.git
synced 2026-10-08 19:05:02 -04:00
fix: restore native playback speed range
This commit is contained in:
6 files changed
+15
-12
No files matched your search
@@ -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", () => {
|
||||
|
||||
@@ -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"
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user