Index: input/regression/context-find-parent.ly |
diff --git a/input/regression/context-find-parent.ly b/input/regression/context-find-parent.ly |
new file mode 100644 |
index 0000000000000000000000000000000000000000..efbec5ab2f4d1b00d9c688c73663e8c2779332a8 |
--- /dev/null |
+++ b/input/regression/context-find-parent.ly |
@@ -0,0 +1,22 @@ |
+\version "2.19.80" |
+ |
+\header { |
+ texidoc = "@code{\\context} can find the parent context by type and ID. |
+@verbatim |
+ StaffGroup A |
+ \ |
+ StaffGroup B (from here, find StaffGroup A) |
+@end verbatim |
+CHILD and RESULT should appear in the left margin." |
+} |
+ |
+\new StaffGroup = "A" \with { instrumentName = "SOUGHT" } << |
+ \new StaffGroup = "B" \with { instrumentName = "CHILD" } << |
+ s1 |
+ \context StaffGroup = "A" << |
+ %% This name is expected to replace SOUGHT. |
+ \set StaffGroup.instrumentName = "RESULT" |
+ s1 |
+ >> |
+ >> |
+>> |