changeset 30831:9f264adbe75b

tests: test experimental.spacemovesdown config for commit -i The feature is still very experimental, but at least its behavior is captured in the test.
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 17 Jan 2017 13:44:53 +0800
parents 08fa3a76a080
children da5fa0f13a41
files tests/test-commit-interactive-curses.t
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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