fakevim: auto tests for 'o'/'O' at beginning and end of file

Merge-request: 96
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Martin Aumüller
2010-01-05 18:42:24 +01:00
committed by hjk
parent 869782df18
commit 22c700a4f6

View File

@@ -59,6 +59,7 @@ private slots:
void indentation();
// command mode
void command_oO();
void command_Cxx_down_dot();
void command_Gyyp();
void command_J();
@@ -620,6 +621,19 @@ return; // FIXME: not in sync with Gui behaviour?
}
void tst_FakeVim::command_oO()
{
setup();
check("gg", "@" + lmid(0));
check("Ol1" + escape, "l@1\n" + lmid(0));
check("gg", "@l1\n" + lmid(0));
check("ol2" + escape, "l1\n" "l@2\n" + lmid(0));
check("G$", "l1\n" "l2\n" + lmid(0)+"@");
check("ol-1" + escape, "l1\n" "l2\n" + lmid(0)+"\n" + "l-@1");
check("G", "l1\n" "l2\n" + lmid(0)+"\n" + "@l-1");
check("Ol-2" + escape, "l1\n" "l2\n" + lmid(0)+"\n" + "l-@2\n" + "l-1");
}
/*
#include <QtCore>