[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Testing that no grob is created
From: |
Han-Wen Nienhuys |
Subject: |
Re: Testing that no grob is created |
Date: |
Fri, 17 Jun 2022 14:14:32 +0200 |
On Fri, Jun 17, 2022 at 2:11 PM Dan Eble <dan@lyric.works> wrote:
>
> I have a regression test that should fail if a BarLine grob is created. It
> is sufficient to override BarLine.glyph-name to make it obvious in the visual
> diff.
>
> Is there a simpler, more direct, or more robust way to test this?
You could add a callback in the System grob (or in a similar grouping
Grob at staff level) that counts the number of bar lines included in
the 'elements property.
--
Han-Wen Nienhuys - hanwenn@gmail.com - http://www.xs4all.nl/~hanwen