]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add regtest for issue 4096, \addlyrics using existing contexts
authorDavid Kastrup <dak@gnu.org>
Mon, 8 Sep 2014 13:32:47 +0000 (15:32 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 14 Sep 2014 05:44:55 +0000 (07:44 +0200)
input/regression/addlyrics-existing-context.ly [new file with mode: 0644]

diff --git a/input/regression/addlyrics-existing-context.ly b/input/regression/addlyrics-existing-context.ly
new file mode 100644 (file)
index 0000000..94e9ab8
--- /dev/null
@@ -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! }