changeset 32073:04629b2da72c stable

tests: test that abbreviated command alias is also paged Explicit test coverage is good.
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 24 Apr 2017 23:11:44 -0700
parents 05cdd5678c6b
children 769c831708c7
files tests/test-pager.t
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-pager.t	Mon Apr 24 23:10:43 2017 -0700
+++ b/tests/test-pager.t	Mon Apr 24 23:11:44 2017 -0700
@@ -84,6 +84,16 @@
   paged! 'summary:     modify a 9\n'
   paged! '\n'
 
+Abbreviated command alias should also be paged
+
+  $ hg hist -l 1
+  paged! 'changeset:   10:46106edeeb38\n'
+  paged! 'tag:         tip\n'
+  paged! 'user:        test\n'
+  paged! 'date:        Thu Jan 01 00:00:00 1970 +0000\n'
+  paged! 'summary:     modify a 10\n'
+  paged! '\n'
+
 Pager should not start if stdout is not a tty.
 
   $ hg log -l1 -q --config ui.formatted=False