── Test: CommandRow root class edits on line 0 ──
| 1002 | |
| 1003 | // ── Test: CommandRow root class edits on line 0 ── |
| 1004 | void testCommandRowRootClassEdits() { |
| 1005 | m_editor->applyDocument(m_result); |
| 1006 | |
| 1007 | // Set CommandRow text with root class (simulates controller.updateCommandRow) |
| 1008 | m_editor->setCommandRowText( |
| 1009 | QStringLiteral("source\u25BE \u00B7 0xD87B5E5000 \u00B7 struct\u25BE _PEB64 {")); |
| 1010 | |
| 1011 | // RootClassName should be allowed on CommandRow (line 0) |
| 1012 | bool ok = m_editor->beginInlineEdit(EditTarget::RootClassName, 0); |
| 1013 | QVERIFY2(ok, "RootClassName edit should be allowed on CommandRow"); |
| 1014 | QVERIFY(m_editor->isEditing()); |
| 1015 | m_editor->cancelInlineEdit(); |
| 1016 | |
| 1017 | // RootClassType should be allowed on CommandRow (line 0) |
| 1018 | ok = m_editor->beginInlineEdit(EditTarget::RootClassType, 0); |
| 1019 | QVERIFY2(ok, "RootClassType edit should be allowed on CommandRow"); |
| 1020 | QVERIFY(m_editor->isEditing()); |
| 1021 | m_editor->cancelInlineEdit(); |
| 1022 | } |
| 1023 | |
| 1024 | // ── Test: CommandRow root class name editable ── |
| 1025 | void testCommandRowRootClassName() { |
nothing calls this directly
no test coverage detected