tests: test experimental.spacemovesdown config for commit -i
authorAnton Shestakov <av6@dwimlabs.net>
Tue, 17 Jan 2017 13:44:53 +0800
changeset 30831 9f264adbe75b
parent 30830 08fa3a76a080
child 30832 da5fa0f13a41
tests: test experimental.spacemovesdown config for commit -i The feature is still very experimental, but at least its behavior is captured in the test.
tests/test-commit-interactive-curses.t
--- a/tests/test-commit-interactive-curses.t	Tue Jan 17 10:17:13 2017 -0800
+++ b/tests/test-commit-interactive-curses.t	Tue Jan 17 13:44:53 2017 +0800
@@ -318,6 +318,25 @@
   foo
   hello world
   lower
+
+Check spacemovesdown
+
+  $ cat <<EOF >> $HGRCPATH
+  > [experimental]
+  > spacemovesdown = true
+  > EOF
+  $ cat <<EOF >testModeCommands
+  > TOGGLE
+  > TOGGLE
+  > X
+  > EOF
+  $ hg status -q
+  M b
+  M x
+  $ hg commit -i -m "nothing to commit?" -d "0 0"
+  no changes to record
+  [1]
+
 Check ui.interface logic for the chunkselector
 
 The default interface is text