Review fixes in progress, unverified: stopped by the user before the tests ran

This commit is contained in:
ZacharyZhang-NY committed 2026-10-01 23:01:53 -04:00
1 parent 81894f744a
commit 2190a1b67e
4 files changed
+87 -4

No files matched your search

+3
View File
@@ -346,6 +346,9 @@ void SelectionCanvasTests::shiftKeepsMovedPixelsOnALine()
// Lengths, not signs: left beats a shorter down.
shown.move(QPointF(0, 50), Qt::ControlModifier | Qt::ShiftModifier);
QCOMPARE(box(), QRectF(-20, 20, 40, 40));
// And up beats a shorter right.
shown.move(QPointF(45, 0), Qt::ControlModifier | Qt::ShiftModifier);
QCOMPARE(box(), QRectF(20, -20, 40, 40));
// Without Shift both ways.
shown.move(QPointF(60, 55), Qt::ControlModifier);
QCOMPARE(box(), QRectF(40, 35, 40, 40));