MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / testTypeEditClickAwayNoChange

Method testTypeEditClickAwayNoChange

tests/test_editor.cpp:616–630  ·  view source on GitHub ↗

── Test: type edit click-away commits original (no change) ──

Source from the content-addressed store, hash-verified

614
615 // ── Test: type edit click-away commits original (no change) ──
616 void testTypeEditClickAwayNoChange() {
617 m_editor->applyDocument(m_result);
618
619 QSignalSpy spy(m_editor, &RcxEditor::typePickerRequested);
620
621 // Type edit emits typePickerRequested (popup handles click-away)
622 bool ok = m_editor->beginInlineEdit(EditTarget::Type, kFirstDataLine);
623 QVERIFY(ok);
624 QCOMPARE(spy.count(), 1);
625
626 // No inline edit state — popup handles click-away behavior
627 QVERIFY(!m_editor->isEditing());
628
629 m_editor->applyDocument(m_result);
630 }
631
632 // ── Test: column span hit-testing for cursor shape ──
633 void testColumnSpanHitTest() {

Callers

nothing calls this directly

Calls 3

applyDocumentMethod · 0.80
beginInlineEditMethod · 0.80
isEditingMethod · 0.80

Tested by

no test coverage detected