diff tests/test-commit-interactive-curses.t @ 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 d83ca854fa21
children 2bf62ca7072f
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