Skip to content

Commit

Permalink
New unit test for ExcludeFromPart property
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Aug 29, 2023
1 parent 1b0c647 commit 31e2a74
Show file tree
Hide file tree
Showing 4 changed files with 791 additions and 0 deletions.
255 changes: 255 additions & 0 deletions src/engraving/tests/parts_data/partExclusion-part-0.mscx
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.20">
<Score>
<Division>480</Division>
<Style>
<Spatium>1.74978</Spatium>
</Style>
<showInvisible>1</showInvisible>
<showUnprintable>1</showUnprintable>
<showFrames>1</showFrames>
<showMargins>0</showMargins>
<metaTag name="partName">Flute</metaTag>
<Part id="1">
<Staff id="1">
<linkedTo>1</linkedTo>
<StaffType group="pitched">
<name>stdNormal</name>
</StaffType>
</Staff>
<trackName>Flute</trackName>
<Instrument id="flute">
<longName>Flute</longName>
<shortName>Fl.</shortName>
<trackName>Flute</trackName>
<minPitchP>59</minPitchP>
<maxPitchP>98</maxPitchP>
<minPitchA>60</minPitchA>
<maxPitchA>93</maxPitchA>
<instrumentId>wind.flutes.flute</instrumentId>
<Channel>
<program value="73"/>
</Channel>
</Instrument>
</Part>
<Staff id="1">
<VBox>
<height>10</height>
<excludeFromParts>0</excludeFromParts>
<Text>
<style>instrument_excerpt</style>
<text>Flute</text>
</Text>
</VBox>
<Measure>
<voice>
<KeySig>
<linked>
</linked>
<concertKey>0</concertKey>
</KeySig>
<TimeSig>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<sigN>4</sigN>
<sigD>4</sigD>
</TimeSig>
<StaffText>
<linked>
<indexDiff>-2</indexDiff>
</linked>
<text>Staff text</text>
</StaffText>
<Chord>
<linked>
<indexDiff>-3</indexDiff>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-4</indexDiff>
</linked>
<pitch>60</pitch>
<tpc>14</tpc>
</Note>
</Chord>
<Chord>
<linked>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<pitch>60</pitch>
<tpc>14</tpc>
</Note>
</Chord>
<SystemText>
<linked>
</linked>
<text>System text</text>
</SystemText>
<Chord>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-2</indexDiff>
</linked>
<pitch>60</pitch>
<tpc>14</tpc>
</Note>
</Chord>
<Chord>
<linked>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<pitch>60</pitch>
<tpc>14</tpc>
</Note>
</Chord>
</voice>
</Measure>
<Measure>
<voice>
<Chord>
<linked>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<pitch>60</pitch>
<tpc>14</tpc>
</Note>
</Chord>
<Chord>
<linked>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<pitch>60</pitch>
<tpc>14</tpc>
</Note>
</Chord>
<Clef>
<concertClefType>F</concertClefType>
<transposingClefType>F</transposingClefType>
<linked>
</linked>
</Clef>
<Chord>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-2</indexDiff>
</linked>
<pitch>60</pitch>
<tpc>14</tpc>
</Note>
</Chord>
<Chord>
<linked>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<pitch>60</pitch>
<tpc>14</tpc>
</Note>
</Chord>
</voice>
</Measure>
<Measure>
<voice>
<Spanner type="Ottava">
<Ottava>
<subtype>8va</subtype>
<linked>
</linked>
</Ottava>
<next>
<location>
<fractions>1/1</fractions>
</location>
</next>
</Spanner>
<Chord>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-2</indexDiff>
</linked>
<pitch>48</pitch>
<tpc>14</tpc>
</Note>
</Chord>
<Chord>
<linked>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<pitch>48</pitch>
<tpc>14</tpc>
</Note>
</Chord>
<Chord>
<linked>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<pitch>48</pitch>
<tpc>14</tpc>
</Note>
</Chord>
<Chord>
<linked>
</linked>
<durationType>quarter</durationType>
<Note>
<linked>
<indexDiff>-1</indexDiff>
</linked>
<pitch>48</pitch>
<tpc>14</tpc>
</Note>
</Chord>
<Spanner type="Ottava">
<prev>
<location>
<fractions>-1/1</fractions>
</location>
</prev>
</Spanner>
</voice>
</Measure>
</Staff>
<name>Flute</name>
</Score>
</museScore>
Loading

0 comments on commit 31e2a74

Please sign in to comment.