| 489 | } |
| 490 | |
| 491 | void EditorTest::longNames() |
| 492 | { |
| 493 | QString file_xml = readFile(":/issue_24.xml"); |
| 494 | main_win->on_actionClear_triggered(); |
| 495 | main_win->loadFromXML( file_xml ); |
| 496 | |
| 497 | auto abs_tree = getAbstractTree(); |
| 498 | QCOMPARE( abs_tree.nodesCount(), size_t(4) ); |
| 499 | auto sequence = abs_tree.node(1); |
| 500 | QCOMPARE( sequence->model.registration_ID, QString("Sequence")); |
| 501 | |
| 502 | // second child on the right side. |
| 503 | int short_index = sequence->children_index[1]; |
| 504 | auto short_node = abs_tree.node(short_index); |
| 505 | QCOMPARE( short_node->model.registration_ID, QString("short") ); |
| 506 | } |
| 507 | |
| 508 | void EditorTest::clearModels() |
| 509 | { |
nothing calls this directly
no test coverage detected