Skip to content

Commit

Permalink
[DO-NOT-MERGE] Debug freetext scroll intermittent
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandermeij committed Jul 9, 2024
1 parent 1bdd692 commit 7bfb16b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/integration-boot.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,7 @@ async function runTests(results) {
random: false,
spec_dir: "integration",
spec_files: [

Check failure on line 26 in test/integration-boot.mjs

View workflow job for this annotation

GitHub Actions / Lint (lts/*)

Replace `⏎······"freetext_editor_spec.mjs",⏎····` with `"freetext_editor_spec.mjs"`
"accessibility_spec.mjs",
"annotation_spec.mjs",
"caret_browsing_spec.mjs",
"copy_paste_spec.mjs",
"find_spec.mjs",
"freetext_editor_spec.mjs",
"highlight_editor_spec.mjs",
"ink_editor_spec.mjs",
"scripting_spec.mjs",
"stamp_editor_spec.mjs",
"text_field_spec.mjs",
"text_layer_spec.mjs",
"viewer_spec.mjs",
],
});

Expand Down
16 changes: 16 additions & 0 deletions test/integration/freetext_editor_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3646,6 +3646,22 @@ describe("FreeText Editor", () => {

await awaitPromise(handlePromise);

const editorBase64 = await page.screenshot({
clip: editorRect,
type: "png",
encoding: "base64",
});

const { x, y, width, height } = editorRect;
const editorBase64Larger = await page.screenshot({
clip: { x: x - 100, y: y - 100, width: width + 200, height: height + 200 },

Check failure on line 3657 in test/integration/freetext_editor_spec.mjs

View workflow job for this annotation

GitHub Actions / Lint (lts/*)

Replace `·x:·x·-·100,·y:·y·-·100,·width:·width·+·200,·height:·height·+·200` with `⏎··············x:·x·-·100,⏎··············y:·y·-·100,⏎··············width:·width·+·200,⏎··············height:·height·+·200,⏎···········`
type: "png",
encoding: "base64",
});

console.log("Image: ", editorBase64);
console.log("Larger image: ", editorBase64Larger);

editorPng = await page.screenshot({
clip: editorRect,
type: "png",
Expand Down

0 comments on commit 7bfb16b

Please sign in to comment.