From: David Kastrup Date: Mon, 8 Sep 2014 13:32:47 +0000 (+0200) Subject: Add regtest for issue 4096, \addlyrics using existing contexts X-Git-Tag: release/2.19.14-1~6^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5937be99ecf9872f5dad2bc689099179400b70ff;p=lilypond.git Add regtest for issue 4096, \addlyrics using existing contexts --- 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! }