More windows test case fixing action

This commit is contained in:
Holger Rapp 2011-03-25 07:36:55 +01:00
parent 52c50db0e9
commit 62231439f0

View File

@ -96,6 +96,7 @@ WIN_REPLACES = [
# ` as `+_+BS. Awkward, but the only way I found to get this working. # ` as `+_+BS. Awkward, but the only way I found to get this working.
("`", "`_{BS}"), ("`", "`_{BS}"),
("´", "´_{BS}"), ("´", "´_{BS}"),
("{^}", "{^}_{BS}"),
] ]
def convert_keys(keys): def convert_keys(keys):
keys = BRACES.sub(r"{\1}", keys) keys = BRACES.sub(r"{\1}", keys)
@ -944,6 +945,8 @@ class RecTabStopsWithExpandtab_SpecialIndentProblem_ECR(_ExpandTabs):
("m1", "Something"), ("m1", "Something"),
("m", "\t$0"), ("m", "\t$0"),
) )
# TODO: Windows indents the Something line after pressing return,
# though it shouldn't because it contains a manual indent.
keys = "m" + EX + "m1" + EX + '\nHallo' keys = "m" + EX + "m1" + EX + '\nHallo'
wanted = " Something\n Hallo" wanted = " Something\n Hallo"
def _options_on(self): def _options_on(self):
@ -1576,8 +1579,8 @@ class SnippetOptions_ExpandInwordSnippetsWithOtherChars_Expand2(_VimTest):
wanted = "-Expand me!" wanted = "-Expand me!"
class SnippetOptions_ExpandInwordSnippetsWithOtherChars_Expand3(_VimTest): class SnippetOptions_ExpandInwordSnippetsWithOtherChars_Expand3(_VimTest):
snippets = (("test", "Expand me!", "", "i"), ) snippets = (("test", "Expand me!", "", "i"), )
keys = "ätest" + EX keys = "öätest" + EX
wanted = "äExpand me!" wanted = "öäExpand me!"
class _SnippetOptions_ExpandWordSnippets(_VimTest): class _SnippetOptions_ExpandWordSnippets(_VimTest):
snippets = (("test", "Expand me!", "", "w"), ) snippets = (("test", "Expand me!", "", "w"), )