Commit graph

349 commits

Author SHA1 Message Date
Igor Korsukov ee7506f7a8 updated tests and templates mscx files 2021-12-16 11:46:22 +03:00
Casper Jeukendrup 28863c6178 Temporarily disabled flaky VTest tremolo-1 2021-12-07 23:02:14 +03:00
Casper Jeukendrup 8ab72ad863 Refactor VTests to build reference and current in parallel 2021-12-07 23:02:14 +03:00
Casper Jeukendrup 1505ebc781 Make VTests fail when mscore crashes during PNG generation 2021-12-07 10:43:15 +03:00
Joachim Schmitz b387d28537 Run vtests on (previously?) failing scores too 2021-10-28 09:31:45 -07:00
AntonioBL 1c8739732d fix vtest script 2021-10-28 09:31:45 -07:00
Igor Korsukov bf6b333081 updated version to 4.00 2021-07-21 20:34:08 +02:00
vpereverzev d37697625b Got rid of Zerberus from MU4 2021-07-03 01:27:36 +03:00
Igor Korsukov 091ab85c6a fixed run vtests on CI 2021-07-02 13:18:58 +03:00
Igor Korsukov 90f8c512a9 test run vtests on CI 2021-07-02 13:18:58 +03:00
vpereverzev 5eced6c748 Updated license headers in .sh files 2021-04-19 17:10:01 +02:00
Matt McClinch cceefb01e7 Fix #316754: Empty rehearsal mark not deleted after entering a line break
Resolves: https://musescore.org/en/node/316754.

When #4359 attempted to fix https://musescore.org/en/node/278068 (and was shortly followed up by #4364), the end result was that when a newline is inserted into a text block (causing it to split into two text blocks), the second text block would always end with a newline, even if the original text block did not. This is fixed here by setting the second text block's EOL flag to that of the original text block.

This is what is attempted by the function that joins two text blocks when a newline is deleted, but that function wasn't getting it right either. So that has been corrected here as well.

Taken together, these two errors meant that there would be a blank line at the end of any text element that had ever contained a newline. This blank line would be small, but it would always be present, even if you tried to delete it.

Because this blank was always present in multiline text elements, and because it was small enough to not attract much attention, #5881 only added an empty text fragment before a newline, and not after. But now that we do not have to have unwanted newline characters, in order to preserve the font size on a blank line, an empty text fragment may be needed after a newline also.
2021-02-15 10:13:32 -05:00
Igor Korsukov 8dd374f195 ported #7141 : inconsistent stem directions on middle-line beamed notes 2021-02-05 15:40:22 +03:00
Igor Korsukov 4c3be5fd0c ported #6956: acc padding 2021-02-01 14:01:09 +02:00
Igor Korsukov fa1ae3c2db rework vtest 2020-12-29 17:10:40 +03:00
Igor Korsukov 7d467d7545 turn on vtest 2020-12-29 17:10:40 +03:00
Igor Korsukov b7c25b8fc6 move source code to src dir 2020-12-03 15:12:23 +02:00
IsaacWeiss 129daede16 Add/update tests for MMRests and MeasureRepeats
MMRests:
- Add vtests for old-style (all fonts), h-bar thickness and margin (Bravura)

MeasureRepeats:
- Add script tests for adding, cutting/copying with partial group selected, pasting into group, repeating selection from before group, executing split/join/insert/delete measure commands, adding repeat barlines, and adding time signature
- Add mtests for parts, MIDI, and MusicXML import/export
- Add vtests
- Update ref files
2020-11-20 11:54:26 -05:00
Igor Korsukov bfd8228344 sync CI build scripts with 3.x 2020-11-17 10:10:22 +00:00
Joachim Schmitz e7d3df7027 Updating vtest ref files affected by this PR and #6705
and fix a typo
2020-11-10 15:33:20 +02:00
Joachim Schmitz 313edc51ed Update to SMuFL version 1.3
and fix compatibility problems with 3.x scores prior to this PR
using the no longer existing `ornamentMordentInverted` by turning it
into the new `ornamentMordent`. and changing the old `ornamentMordent`
into `ornamentShortTrill` for pre-MuseScore 3.6 scores.
Fix the vtest and mtests too

Actually update to include some post-1.3 fixes too
2020-11-10 15:10:40 +02:00
Joachim Schmitz 11d5b5c0c2 Fix MSVC compiler warnings
and correct a small error in a bat file
2020-10-23 13:15:59 +02:00
Joachim Schmitz 7b0b090a50 allow ledgerlines exactly as wide as the noteheads
and fix the vtest bat files to use MuseScore4
2020-10-22 22:17:21 +02:00
anatoly-os d126f5f247 Manually merged #6219 and #6236 to master 2020-08-11 18:52:46 +03:00
anatoly-os cafa288eb5 Manually merged #6060 to master 2020-08-11 18:27:15 +03:00
anatoly-os 46228e714b Manually merged #6081 to master 2020-08-07 11:43:15 +03:00
pereverzev_v 25a7b5f457 Update reference images 2020-06-02 19:22:29 +02:00
pereverzev_v 8723178782 Updated references 2020-06-02 18:43:18 +02:00
anatoly-os 92ebd60545 Merge pull request #6092 from AntonioBL/vtests3
fix vtest artifact when failing to generate images and add the possib…
2020-05-20 14:16:23 +02:00
James Thistlewood 3e86e5f9b6 update vtest ref file generation script 2020-04-29 16:19:42 +01:00
James Thistlewood 1e40d48606 fix #299644: add support for fret diagram rotation 2020-04-29 16:19:23 +01:00
Niek van den Berg ba2e26a1db Two vtest supporting PR #5722 and PR #5792. 2020-04-23 14:58:24 +02:00
Howard-C 0769d8932b Update vtests
+ fix one bug regarding `_spatium` not considerated
2020-04-14 18:11:17 +08:00
AntonioBL bda740ff66 fix #294298 : Diagonal line: End hook can disappear or elongate when Begin hook is set to None 2020-04-09 16:59:54 +02:00
Dmitri Ovodok 42da9ca6d2
Merge pull request #5523 from MarcSabatella/298273-divider-spacer
fix #298273: divider not displayed in some cases
2020-03-12 15:25:47 +02:00
Dmitri Ovodok b03960e386
Merge pull request #5787 from MarcSabatella/300693-fb-cont
fix #300693: fb continuation not drawn when ending in voice 2
2020-03-10 11:58:11 +02:00
MarcSabatella 8f6934f1e6 fix #300693: fb continuation not drawn when ending in voice 2
Resolves: https://musescore.org/en/node/300693

Continuation lines are drawn to the right edge of the last note
that starts before the end of the figure's duration.
The code that finds this note was only looking in voice 1.
That resulted in continuation lines ending short, or disappearing,
if the last note was in another voice.

Fix is to be sure to check all voices when searchiing for the end CR.
2020-03-06 15:11:56 -07:00
AntonioBL b63eb79610 Run vtests on PRs and commits to master branch and compare to parent commit vtest results; output a comment and upload a report when differences are found 2020-02-27 09:34:13 +01:00
AntonioBL 314f8ac625 Fix generation of vtests 2020-02-21 12:11:41 +01:00
Dmitri Ovodok 4fa60a12be Fix vtest uploading 2019-12-26 11:22:26 +02:00
MarcSabatella 1c15bb0e49 fix #298273: divider not displayed in some cases
Resolves: https://musescore.org/en/node/298273

System dividers were not being displayed in certain cases:
if a fixed spacer is used, or in single page view.
In addition, dividers were displaying that shouldn't be
if layout changes and a system that was formerly not last on page
suddenly becomes last on page,
This is due to a series of errors in layoutPage()
where the dividers are managed.
This fix involves a number of aspects:
1) checkDivider now takes an extra boolean parameter to force deletion
2) we always call checkDivider with that parameter set to true
for the last system of a page
3) in the case where we don't stretch system distance
(the clause checking sList, noVerticalStretch, or System layout mode),
don't just remove dividers, but do the normal checkDivider call,
which adds or removes dividers as appropriate
4) in the calls to checkDivider at the end of the function
(which handle the normal case of non-final systems on the page),
dion't skip the checkDivider calls if a system hasFixedDownDistance.
I believe that check was added because it is appropriate in other places
that also check vBox, so it may have looked like this code should match.
But it shouldn't, there is no reason to skip dividers in this case.
Only the stretch calculations should be skipped.
2019-12-09 21:23:13 -07:00
Dmitri Ovodok d243bcea83
Merge pull request #5477 from MarcSabatella/281253-spacer-down-system
fix #281253: staff spacer down ignored on bottom of page
2019-12-05 14:15:22 +02:00
MarcSabatella 1d56d5564b fix #281253: staff spacer down ignored on bottom of page
Resolves: https://musescore.org/en/node/281253

A staff spacer on the bottom system of a page does not work correctly:
we are looking foir a spacer on the *first* staff rather than the *last*.
So a spacer on the last staff is ignored, and one on the first is used
when it shouldn't be.

The code to calculate the amount of spacer required below the last
system of a page relies on System::lastVisibleSysStaff(),
which is return the correct SysStaff, but we are then attempting
to access the idx member, which has never been set up and is always 0.
Fix is to initialize idx when setting up the list of staves.
2019-11-20 12:37:41 -07:00
Marc Sabatella eb6de76dbc fix #295892: barline not displayed before horizontal frame followed by start repeat
Resolves: https://musescore.org/en/node/295892

If a measure is followed by a horizontal frame and then a measure with a start repeat,
the end barline of the first measure is not displayed.
This is because we are optiizing that away thinking it won't be needed
because we will simply use the start repeat of the next measure.
This would be true if not for the frame.
So I simply added a check to make sure the next measure is the same as the next measurebase,
and clarified the comments.
2019-11-05 09:58:30 -07:00
Marc Sabatella 8f5c957184 fix #279964: bend font not connected to style
The bend symbol displays in the palette using
a "random" (first in alphabetical order) font.
This is simply because the bendStyle fails to set up
the association between Sid::bendFontFace and Pid::FONT_FACE.
It seems this line was inadvertently removed
when we made  the change to merge italic/bold/underline into style.
2019-10-08 13:45:29 -06:00
Dmitri Ovodok e2df93c1e0 Upload latest vtest metadata to vtest.musescore.org
That would allow http://vtest.musescore.org/compare.html to always
use actual data regarding existing tests and MuseScore versions
2019-10-03 13:43:19 +02:00
Peter Hieu Vu ec100e5805 add vtest for dashed lines 2019-08-30 23:40:24 -07:00
anatoly-os ca3eb206cc
Merge pull request #5246 from MarcSabatella/chord-symbol-format
expansion of chord symbol formatting
2019-08-30 20:26:59 +02:00
Marc Sabatella 4eadb70636 fix #287245: allow symbols and images on barlines
It sometimes comes up that the best way to solve some particular problem
would be to attach a symbol to a barline
(eg, think about the commonly-requested multimeasure repeat symbol).
But we don't support symbols on barlines, so you end up settling for
attaching to the first note or rest in the bar then moving manually,
and this adjustment does not necessarily survicve layout changes.

This commit adds direct support for symbols on barlines.
Also images, since the code involved is so similar, they are handled here as well.
Symbols and images are recorded as child elements,
which were already being laid out so no special handling was needed
beyond adding & removing, reading nd writing.
Although I did need to make sure the track & score were managed correctly.
2019-08-29 09:59:58 -06:00
Marc Sabatella e1e51ac955 add vtest for RNA & Nashville + collect_artifacts 2019-08-27 08:53:39 -06:00