mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #16964 from timvandermeij/fix-intermittent-annotations-move
Fix off-by-one errors in the "FreeText must move several annotations" integration test
This commit is contained in:
commit
97819891b6
1 changed files with 4 additions and 4 deletions
|
@ -2254,12 +2254,12 @@ describe("FreeText Editor", () => {
|
|||
return { x, y };
|
||||
});
|
||||
const oldPos = allPositions[i];
|
||||
expect(Math.round(pos.x))
|
||||
expect(Math.round(pos.x - oldPos.x))
|
||||
.withContext(`In ${browserName}`)
|
||||
.toEqual(Math.round(oldPos.x + 39));
|
||||
expect(Math.round(pos.y))
|
||||
.toEqual(39);
|
||||
expect(Math.round(pos.y - oldPos.y))
|
||||
.withContext(`In ${browserName}`)
|
||||
.toEqual(Math.round(oldPos.y + 74));
|
||||
.toEqual(74);
|
||||
}
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue