From 5937be99ecf9872f5dad2bc689099179400b70ff Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Mon, 8 Sep 2014 15:32:47 +0200 Subject: [PATCH] Add regtest for issue 4096, \addlyrics using existing contexts --- .../regression/addlyrics-existing-context.ly | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 input/regression/addlyrics-existing-context.ly diff --git a/input/regression/addlyrics-existing-context.ly b/input/regression/addlyrics-existing-context.ly new file mode 100644 index 0000000000..94e9ab80d3 --- /dev/null +++ b/input/regression/addlyrics-existing-context.ly @@ -0,0 +1,25 @@ +\version "2.19.14" + +\header { + texidoc = " +@code{\\addlyrics} should be able to attach itself to named and unnamed @code{Voice} +constructs. For all tests where this succeeds, the noteheads will be red." +} + +\layout { ragged-right = ##t } + +\new Staff \new Voice \with { \override NoteHead.color = #red } +{ \tempo \markup \typewriter "\\new Staff \\new Voice" c'1 } +\addlyrics { Oh! } + +\new Voice \with { \override NoteHead.color = #red } +{ \tempo \markup \typewriter "\\new Voice" c'1 } +\addlyrics { Oh! } + +\new Staff \new Voice = "named" \with { \override NoteHead.color = #red } +{ \tempo \markup \typewriter "\\new Staff \\new Voice = \"named\"" c'1 } +\addlyrics { Oh! } + +\new Voice = "named" \with { \override NoteHead.color = #red } +{ \tempo \markup \typewriter "\\new Voice = \"named\"" c'1 } +\addlyrics { Oh! } -- 2.39.2