14.6 round 1: canonical matching, a chosen second row, every mode from its sibling

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 05:06:11 -04:00
1 parent e126762d5b
commit 49d82284f0
4 files changed
+37 -19

No files matched your search

+4 -2
View File
@@ -97,9 +97,11 @@ void CommandPaletteWindowTests::typingRanksAndReturnRunsTheChosenRow()
// It runs once the event loop is next free.
QCOMPARE(shown.session().viewport.zoom(), 1.0);
QTRY_COMPARE(shown.session().viewport.zoom(), 1.25);
// A tool's mode by its name.
// A mode by its name; Enter runs the chosen row.
shown.open();
QTest::keyClicks(&shown.view().field(), "polygonal");
QTest::keyClicks(&shown.view().field(), "lasso");
QCOMPARE(shown.view().model().results()[1].id, QString("Tool › Polygonal Lasso"));
QTest::keyClick(&shown.view().field(), Qt::Key_Down);
QTest::keyClick(&shown.view().field(), Qt::Key_Enter);
QTRY_VERIFY(shown.session().tool() == NavigationTool::lasso && shown.session().lassoKind() == LassoKind::polygonal);
}