mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
test: fix accidental resizing in grouping test
This commit is contained in:
parent
d1be72ffc2
commit
aa289a63fb
2 changed files with 10 additions and 9 deletions
|
@ -15288,7 +15288,10 @@ Object {
|
||||||
"penMode": false,
|
"penMode": false,
|
||||||
"pendingImageElementId": null,
|
"pendingImageElementId": null,
|
||||||
"previousSelectedElementIds": Object {
|
"previousSelectedElementIds": Object {
|
||||||
|
"id0": true,
|
||||||
|
"id1": true,
|
||||||
"id2": true,
|
"id2": true,
|
||||||
|
"id3": true,
|
||||||
},
|
},
|
||||||
"resizingElement": null,
|
"resizingElement": null,
|
||||||
"scrollX": 0,
|
"scrollX": 0,
|
||||||
|
@ -15298,7 +15301,6 @@ Object {
|
||||||
"id0": true,
|
"id0": true,
|
||||||
"id1": true,
|
"id1": true,
|
||||||
"id2": true,
|
"id2": true,
|
||||||
"id3": true,
|
|
||||||
"id5": true,
|
"id5": true,
|
||||||
},
|
},
|
||||||
"selectedGroupIds": Object {},
|
"selectedGroupIds": Object {},
|
||||||
|
@ -15346,7 +15348,7 @@ Object {
|
||||||
"type": "rectangle",
|
"type": "rectangle",
|
||||||
"updated": 1,
|
"updated": 1,
|
||||||
"version": 4,
|
"version": 4,
|
||||||
"versionNonce": 1505387817,
|
"versionNonce": 23633383,
|
||||||
"width": 10,
|
"width": 10,
|
||||||
"x": 10,
|
"x": 10,
|
||||||
"y": 10,
|
"y": 10,
|
||||||
|
@ -15377,7 +15379,7 @@ Object {
|
||||||
"type": "rectangle",
|
"type": "rectangle",
|
||||||
"updated": 1,
|
"updated": 1,
|
||||||
"version": 4,
|
"version": 4,
|
||||||
"versionNonce": 23633383,
|
"versionNonce": 493213705,
|
||||||
"width": 10,
|
"width": 10,
|
||||||
"x": 30,
|
"x": 30,
|
||||||
"y": 10,
|
"y": 10,
|
||||||
|
@ -15408,7 +15410,7 @@ Object {
|
||||||
"type": "rectangle",
|
"type": "rectangle",
|
||||||
"updated": 1,
|
"updated": 1,
|
||||||
"version": 4,
|
"version": 4,
|
||||||
"versionNonce": 493213705,
|
"versionNonce": 915032327,
|
||||||
"width": 10,
|
"width": 10,
|
||||||
"x": 50,
|
"x": 50,
|
||||||
"y": 10,
|
"y": 10,
|
||||||
|
@ -15759,7 +15761,6 @@ Object {
|
||||||
"id0": true,
|
"id0": true,
|
||||||
"id1": true,
|
"id1": true,
|
||||||
"id2": true,
|
"id2": true,
|
||||||
"id3": true,
|
|
||||||
"id5": true,
|
"id5": true,
|
||||||
},
|
},
|
||||||
"selectedGroupIds": Object {},
|
"selectedGroupIds": Object {},
|
||||||
|
@ -15789,7 +15790,7 @@ Object {
|
||||||
"type": "rectangle",
|
"type": "rectangle",
|
||||||
"updated": 1,
|
"updated": 1,
|
||||||
"version": 4,
|
"version": 4,
|
||||||
"versionNonce": 1505387817,
|
"versionNonce": 23633383,
|
||||||
"width": 10,
|
"width": 10,
|
||||||
"x": 10,
|
"x": 10,
|
||||||
"y": 10,
|
"y": 10,
|
||||||
|
@ -15817,7 +15818,7 @@ Object {
|
||||||
"type": "rectangle",
|
"type": "rectangle",
|
||||||
"updated": 1,
|
"updated": 1,
|
||||||
"version": 4,
|
"version": 4,
|
||||||
"versionNonce": 23633383,
|
"versionNonce": 493213705,
|
||||||
"width": 10,
|
"width": 10,
|
||||||
"x": 30,
|
"x": 30,
|
||||||
"y": 10,
|
"y": 10,
|
||||||
|
@ -15845,7 +15846,7 @@ Object {
|
||||||
"type": "rectangle",
|
"type": "rectangle",
|
||||||
"updated": 1,
|
"updated": 1,
|
||||||
"version": 4,
|
"version": 4,
|
||||||
"versionNonce": 493213705,
|
"versionNonce": 915032327,
|
||||||
"width": 10,
|
"width": 10,
|
||||||
"x": 50,
|
"x": 50,
|
||||||
"y": 10,
|
"y": 10,
|
||||||
|
|
|
@ -542,7 +542,7 @@ describe("regression tests", () => {
|
||||||
expect(element.groupIds.length).toBe(1);
|
expect(element.groupIds.length).toBe(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
mouse.reset();
|
mouse.moveTo(-10, -10); // the NW resizing handle is at [0, 0], so moving further
|
||||||
mouse.down();
|
mouse.down();
|
||||||
mouse.restorePosition(...end);
|
mouse.restorePosition(...end);
|
||||||
mouse.up();
|
mouse.up();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue