-
-
Notifications
You must be signed in to change notification settings - Fork 919
feat(platform): 优化Windows平台路径处理和SSH配置文件支持 #3220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
0574a6a
42ac2f2
a71f4de
b099994
2df61d4
239e177
ec8cf0e
1204e0c
28bc7c6
14b8a12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import { describe, expect, it } from "vitest"; | ||
|
|
||
| import { getWheelLineDelta } from "./termutil"; | ||
|
|
||
| describe("getWheelLineDelta", () => { | ||
| it("converts pixel deltas using cell height", () => { | ||
| expect(getWheelLineDelta(32, 0, 16, 40)).toBe(2); | ||
| expect(getWheelLineDelta(-24, 0, 12, 40)).toBe(-2); | ||
| }); | ||
|
|
||
| it("keeps line deltas unchanged", () => { | ||
| expect(getWheelLineDelta(3, 1, 16, 40)).toBe(3); | ||
| expect(getWheelLineDelta(-2, 1, 16, 40)).toBe(-2); | ||
| }); | ||
|
|
||
| it("converts page deltas using row count", () => { | ||
| expect(getWheelLineDelta(1, 2, 16, 30)).toBe(30); | ||
| expect(getWheelLineDelta(-1, 2, 16, 18)).toBe(-18); | ||
| }); | ||
|
|
||
| it("falls back to sane defaults for invalid dimensions", () => { | ||
| expect(getWheelLineDelta(16, 0, 0, 0)).toBe(1); | ||
| }); | ||
| }); |
Uh oh!
There was an error while loading. Please reload this page.