Skip to content

Commit

Permalink
mtests for hidden measure musicxml import
Browse files Browse the repository at this point in the history
Backport of musescore#18556), part 3, resp. musescore#17035, part 2

Also testExcessHiddenStaves_ref.mscx again.
  • Loading branch information
asattely authored and Jojo-Schmitz committed Nov 7, 2023
1 parent 45c2518 commit bea938c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mtest/musicxml/io/testExcessHiddenStaves_ref.mscx
Expand Up @@ -16,6 +16,8 @@
<chordSymbolAFontSize>10</chordSymbolAFontSize>
<chordSymbolBFontSize>10</chordSymbolBFontSize>
<nashvilleNumberFontSize>10</nashvilleNumberFontSize>
<hideEmptyStaves>1</hideEmptyStaves>
<dontHidStavesInFirstSystm>0</dontHidStavesInFirstSystm>
<tupletFontSize>10</tupletFontSize>
<fingeringFontSize>10</fingeringFontSize>
<lhGuitarFingeringFontSize>10</lhGuitarFingeringFontSize>
Expand Down Expand Up @@ -55,9 +57,7 @@
<Staff id="1">
<StaffType group="pitched">
<name>stdNormal</name>
<invisible>1</invisible>
</StaffType>
<invisible>1</invisible>
<hideWhenEmpty>3</hideWhenEmpty>
<bracket type="1" span="2" col="1"/>
<barLineSpan>2</barLineSpan>
Expand Down
8 changes: 7 additions & 1 deletion mtest/musicxml/io/tst_mxml_io.cpp
Expand Up @@ -147,7 +147,6 @@ private slots:
void hello() { mxmlIoTest("testHello"); }
void helloReadCompr() { mxmlReadTestCompr("testHello"); }
void helloReadWriteCompr() { mxmlReadWriteTestCompr("testHello"); }
void hiddenStaves() { mxmlIoTest("testHiddenStaves"); }
void implicitMeasure1() { mxmlIoTest("testImplicitMeasure1"); }
void incompleteTuplet() { mxmlIoTestRef("testIncompleteTuplet"); }
void incorrectStaffNumber1() { mxmlIoTestRef("testIncorrectStaffNumber1"); }
Expand Down Expand Up @@ -297,6 +296,13 @@ private slots:
void wedge3() { mxmlIoTest("testWedge3"); }
void words1() { mxmlIoTest("testWords1"); }
// void words2() { mxmlIoTest("testWords2"); }
void hiddenStaves()
{
QString filename = QString::fromUtf8("testHiddenStaves");
MasterScore* score = readScore(DIR + filename);

QVERIFY(score->style().value(Sid::hideEmptyStaves).toBool());
}
};

//---------------------------------------------------------
Expand Down

0 comments on commit bea938c

Please sign in to comment.