Skip to content
Snippets Groups Projects
Commit 22c700a4 authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

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


Merge-request: 96
Reviewed-by: default avatarhjk <qtc-committer@nokia.com>
parent 869782df
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,7 @@ private slots: ...@@ -59,6 +59,7 @@ private slots:
void indentation(); void indentation();
// command mode // command mode
void command_oO();
void command_Cxx_down_dot(); void command_Cxx_down_dot();
void command_Gyyp(); void command_Gyyp();
void command_J(); void command_J();
...@@ -620,6 +621,19 @@ return; // FIXME: not in sync with Gui behaviour? ...@@ -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> #include <QtCore>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment