2008/12/13 Han-Wen Nienhuys <hanw...@gmail.com>:

> No need to test 3 values, 0.0 and != 0.0 should be enough. Be sure to
> test both stem up and stem down.
>
> Use only 1 note for each situation (or, if you need to test beams, 2).

Alright, the adapted patch #2 is attached. Obviously I put too much
focus on making a regression test more visually appealing than minimal
and functional...

Max
From 0c6dbec079e43eeceaa695b0b30b2c6dab14b01a Mon Sep 17 00:00:00 2001
From: Maximilian Albert <ci...@dike.(none)>
Date: Sat, 13 Dec 2008 00:42:22 +0100
Subject: [PATCH] Add regression test for 'toward-stem-shift property

---
 input/regression/script-shift.ly |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 input/regression/script-shift.ly

diff --git a/input/regression/script-shift.ly b/input/regression/script-shift.ly
new file mode 100644
index 0000000..c617703
--- /dev/null
+++ b/input/regression/script-shift.ly
@@ -0,0 +1,22 @@
+
+\header {
+
+  texidoc = "The @code{toward-stem-shift} property controls the precise
+horizontal location of scripts that are placed above an upstem or below
+a downstem note (@code{0.0} means centered on the note head, @code{1.0}
+means centered on the stem).
+"
+
+\version "2.11.65"
+\layout {
+  indent = 0\mm
+  ragged-right = ##t
+}
+\relative c''
+{
+  \override Script #'toward-stem-shift = #0.0
+  a4^. c_.
+
+  \override Script #'toward-stem-shift = #1.0
+  a4^. c_.
+}
-- 
1.5.4.3

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to