mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-27 19:52:49 +00:00
Update project licensing (#3944)
This commit is contained in:
@@ -22,6 +22,24 @@ describe("native diff body-coordinate hit testing", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("keeps a later expanded file interactive after an earlier body grows", () => {
|
||||
const model = build("unified");
|
||||
const target = model.rows.find(
|
||||
(row) => row.kind === "line" && row.fileIndex === 1 && row.cells[0]?.type === "add",
|
||||
)!;
|
||||
const file = model.files[1]!;
|
||||
|
||||
const hit = hitTestDiffBodyPoint({
|
||||
model,
|
||||
file,
|
||||
locationX: file.gutterWidth + 18,
|
||||
locationY: target.top - file.bodyTop + 2,
|
||||
horizontalOffset: 0,
|
||||
});
|
||||
|
||||
expect(hit?.kind === "cell" ? hit.position.fileIndex : null).toBe(1);
|
||||
});
|
||||
|
||||
it("applies the touched file's retained horizontal offset", () => {
|
||||
const model = build("unified");
|
||||
const row = model.rows.find(
|
||||
|
||||
Reference in New Issue
Block a user