mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Enable the ESLint operator-assignment
rule
This patch was generated automatically, using the `gulp lint --fix` command. Please find additional details about the ESLint rule at https://eslint.org/docs/rules/operator-assignment
This commit is contained in:
parent
de80590157
commit
901b24e8af
13 changed files with 35 additions and 36 deletions
|
@ -54,10 +54,10 @@ describe("find bar", () => {
|
|||
const firstA = await highlights[0].boundingBox();
|
||||
const secondA = await highlights[1].boundingBox();
|
||||
// Subtract the page offset from the text bounding boxes;
|
||||
firstA.x = firstA.x - pageBox.x;
|
||||
firstA.y = firstA.y - pageBox.y;
|
||||
secondA.x = secondA.x - pageBox.x;
|
||||
secondA.y = secondA.y - pageBox.y;
|
||||
firstA.x -= pageBox.x;
|
||||
firstA.y -= pageBox.y;
|
||||
secondA.x -= pageBox.x;
|
||||
secondA.y -= pageBox.y;
|
||||
// They should be on the same line.
|
||||
expect(firstA.y).withContext(`In ${browserName}`).toEqual(secondA.y);
|
||||
const fontSize = 26.66; // From the PDF.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue