| 403 | } |
| 404 | |
| 405 | void EditorTest::multipleSubtrees() |
| 406 | { |
| 407 | QString file_xml = readFile(":/test_subtrees_issue_8.xml"); |
| 408 | main_win->on_actionClear_triggered(); |
| 409 | main_win->loadFromXML( file_xml ); |
| 410 | |
| 411 | auto abs_tree = getAbstractTree("MainTree"); |
| 412 | |
| 413 | auto sequence_node = abs_tree.findFirstNode("main_sequence"); |
| 414 | QVERIFY( sequence_node != nullptr ); |
| 415 | QCOMPARE( sequence_node->children_index.size(), size_t(2) ); |
| 416 | |
| 417 | int index_1 = sequence_node->children_index[0]; |
| 418 | int index_2 = sequence_node->children_index[1]; |
| 419 | |
| 420 | auto first_child = abs_tree.node(index_1); |
| 421 | auto second_child = abs_tree.node(index_2); |
| 422 | |
| 423 | QCOMPARE( first_child->instance_name, tr("MoveToPredefinedPoint") ); |
| 424 | QCOMPARE( second_child->instance_name, tr("SubtreeOne") ); |
| 425 | |
| 426 | sleepAndRefresh( 500 ); |
| 427 | } |
| 428 | |
| 429 | void EditorTest::editText() |
| 430 | { |
nothing calls this directly
no test coverage detected