Skip to content

Commit f39eb0f

Browse files
committed
TEST
1 parent 811a535 commit f39eb0f

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

test/integration/reorganize_pages_spec.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ describe("Reorganize Pages View", () => {
209209
);
210210
});
211211

212-
it("should reorder thumbnails after dropping", async () => {
212+
fit("should reorder thumbnails after dropping", async () => {
213213
await Promise.all(
214214
pages.map(async ([browserName, page]) => {
215215
await waitForThumbnailVisible(page, 1);
@@ -293,7 +293,7 @@ describe("Reorganize Pages View", () => {
293293
);
294294
});
295295

296-
it("should reorder thumbnails after dropping two non-adjacent pages", async () => {
296+
fit("should reorder thumbnails after dropping two non-adjacent pages", async () => {
297297
await Promise.all(
298298
pages.map(async ([browserName, page]) => {
299299
await waitForThumbnailVisible(page, 1);
@@ -329,7 +329,7 @@ describe("Reorganize Pages View", () => {
329329
);
330330
});
331331

332-
it("should select the dropped page (bug 2010820)", async () => {
332+
fit("should select the dropped page (bug 2010820)", async () => {
333333
await Promise.all(
334334
pages.map(async ([browserName, page]) => {
335335
await waitForThumbnailVisible(page, 1);
@@ -743,7 +743,7 @@ describe("Reorganize Pages View", () => {
743743
await closePages(pages);
744744
});
745745

746-
it("should check that a save is triggered", async () => {
746+
fit("should check that a save is triggered", async () => {
747747
await Promise.all(
748748
pages.map(async ([browserName, page]) => {
749749
await waitForThumbnailVisible(page, 1);
@@ -2401,7 +2401,7 @@ describe("Reorganize Pages View", () => {
24012401
await closePages(pages);
24022402
});
24032403

2404-
it("should restore the post-move mapping when undoing a delete", async () => {
2404+
fit("should restore the post-move mapping when undoing a delete", async () => {
24052405
await Promise.all(
24062406
pages.map(async ([browserName, page]) => {
24072407
await waitForThumbnailVisible(page, 1);
@@ -2643,7 +2643,7 @@ describe("Reorganize Pages View", () => {
26432643
await closePages(pages);
26442644
});
26452645

2646-
it("should hide the selection counter after dropping selected pages", async () => {
2646+
fit("should hide the selection counter after dropping selected pages", async () => {
26472647
await Promise.all(
26482648
pages.map(async ([browserName, page]) => {
26492649
await waitForThumbnailVisible(page, 1);

test/integration/test_utils.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ async function dragAndDrop(page, selector, translations, steps = 1) {
586586
}
587587
await page.mouse.up();
588588
await page.waitForSelector("#viewer:not(.noUserSelect)");
589+
await page.waitForSelector("#thumbnailsView:not(.isDragging)");
589590
}
590591

591592
function waitForPageChanging(page) {

web/pdf_thumbnail_viewer.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,9 @@ class PDFThumbnailViewer {
14611461
// First movement while dragging.
14621462
this.#onStartDragging(thumbnail);
14631463
const stopDragging = (_e, isDropping = false) => {
1464+
if (_e.target !== this.container) {
1465+
return;
1466+
}
14641467
this.#onStopDragging(isDropping);
14651468
pointerDownAC.abort();
14661469
};

0 commit comments

Comments
 (0)