]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4561/2: Add regtest for \inherit-acceptability
authorDavid Kastrup <dak@gnu.org>
Fri, 14 Aug 2015 13:01:13 +0000 (15:01 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 24 Aug 2015 08:33:04 +0000 (10:33 +0200)
input/regression/inherit-acceptability.ly [new file with mode: 0644]

diff --git a/input/regression/inherit-acceptability.ly b/input/regression/inherit-acceptability.ly
new file mode 100644 (file)
index 0000000..caa31ed
--- /dev/null
@@ -0,0 +1,22 @@
+\version "2.19.26"
+
+\header {
+  texidoc = "@code{\\inherit-acceptability} allows for one context def to be accepted
+wherever an existing one is."
+}
+
+\new StaffGroup
+<<
+  \new Staff { \time 3/4 c'2. }
+  \new TimeLess { \time 3/4 c'2. }
+>>
+
+\layout {
+  ragged-right = ##t
+  \context {
+    \Staff
+    \name "TimeLess"
+    \remove "Time_signature_engraver"
+  }
+  \inherit-acceptability "TimeLess" "Staff"
+}