[MU4] Add units for change enharmonic spelling commands etc.

This commit is contained in:
wizofaus@hotmail.com 2021-08-03 08:37:29 +10:00 committed by Igor Korsukov
parent c437f39761
commit 64aad5ab32
3 changed files with 3 additions and 2 deletions

View file

@ -25,7 +25,7 @@ set(MODULE_TEST_SRC
${CMAKE_CURRENT_LIST_DIR}/testbase.cpp
${CMAKE_CURRENT_LIST_DIR}/testbase.h
${CMAKE_CURRENT_LIST_DIR}/tst_all_elements_layout_elements.cpp
# ${CMAKE_CURRENT_LIST_DIR}/tst_all_elements_tree_model.cpp # fail
${CMAKE_CURRENT_LIST_DIR}/tst_all_elements_tree_model.cpp
${CMAKE_CURRENT_LIST_DIR}/tst_barline.cpp
${CMAKE_CURRENT_LIST_DIR}/tst_beam.cpp
${CMAKE_CURRENT_LIST_DIR}/tst_box.cpp

View file

@ -245,5 +245,6 @@ void MTest::initMTest()
root = rootPath();
loadInstrumentTemplates(":/data/instruments.xml");
score = readScore("test.mscx");
MScore::_error = Ms::MsError::MS_NO_ERROR;
}
}

View file

@ -91,7 +91,7 @@ public:
}
int ret = 0;
for (QObject* test : testList()) {
if (argc > 0 && test->objectName() == argv[1]) {
if (argc > 0 && std::find(argv + 1, argv + argc, test->objectName()) != argv + argc) {
ret += QTest::qExec(test, 1, argv);
} else if (shouldExecute(test, argc, argv)) {
ret += QTest::qExec(test, argc, argv);