~sirver/ultisnips/trunk

« back to all changes in this revision

Viewing changes to test.py

  • Committer: Holger Rapp
  • Date: 2012-02-12 07:55:24 UTC
  • Revision ID: holgerrapp@gmx.net-20120212075524-x0l3q8ssz84fidaq
Fixed bug triggered by deleting the last few lines of a snippet in normal mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
2554
2554
    snippets = ("test", r"$1${1/(.*)/(?0::.)/}")
2555
2555
    keys = "test" + EX + ESC + "u" + "i" + JF + "\t"
2556
2556
    wanted = "\t"
2557
 
 
2558
2557
# End: Undo of Snippet insertion  #}}}
2559
2558
# Tab Completion of Words  {{{#
2560
2559
class Completion_SimpleExample_ECR(_VimTest):
2795
2794
        // code
2796
2795
}"""
2797
2796
# End: Exclusive Selection  #}}}
 
2797
# Normal mode editing  {{{#
 
2798
# Test for bug #927844
 
2799
class DeleteLastTwoLinesInSnippet(_VimTest):
 
2800
    snippets = ("test", "$1hello\nnice\nworld")
 
2801
    keys = "test" + EX + ESC + "j2dd"
 
2802
    wanted = "hello"
 
2803
 
 
2804
# End: Normal mode editing  #}}}
2798
2805
###########################################################################
2799
2806
#                               END OF TEST                               #
2800
2807
###########################################################################