aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-08-20 12:30:05 +0200
committercon <qtc-committer@nokia.com>2009-08-21 10:27:16 +0200
commitddb02060c6e01355c52f21bc1194630ca3ae213c (patch)
tree7d516548e0ed9b863c22782f4a937262be065a86
parentcfdbdc7e2c4d452490c1e8da6ca3540c35dcd68e (diff)
fakevim: add two (currently partially failing) tests for cw and dw
(cherry picked from commit c75aa74362d4e03aabb02194c75fc733fc9b66fc)
-rw-r--r--tests/auto/fakevim/main.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/auto/fakevim/main.cpp b/tests/auto/fakevim/main.cpp
index ef4a2f6e3c..cf674adcbe 100644
--- a/tests/auto/fakevim/main.cpp
+++ b/tests/auto/fakevim/main.cpp
@@ -57,6 +57,8 @@ public slots:
private slots:
// command mode
void command_cc();
+ void command_cw();
+ void command_dw();
void command_dd();
void command_dd_2();
void command_dollar();
@@ -272,6 +274,32 @@ void tst_FakeVim::command_cc()
check("3ccxyz" + escape, l[0] + "\nabc\nxy@z\n" + lmid(5));
}
+void tst_FakeVim::command_cw()
+{
+ setup();
+ move("j", "@" + l[1]);
+ qWarning("FIXME");
+return; // FIXME
+ check("cwx" + escape, l[0] + "\n@xinclude <QtCore>\n" + lmid(2));
+}
+
+void tst_FakeVim::command_dw()
+{
+ setup();
+ check("dw", "@#include <QtCore>\n" + lmid(2));
+ check("dw", "@include <QtCore>\n" + lmid(2));
+ check("dw", "@<QtCore>\n" + lmid(2));
+ check("dw", "@QtCore>\n" + lmid(2));
+ check("dw", "@>\n" + lmid(2));
+ qWarning("FIXME");
+ //check("dw", "@\n" + lmid(2)); // FIXME: Real vim has this intermediate step
+ check("dw", "@#include <QtGui>\n" + lmid(3));
+ check("dw", "@include <QtGui>\n" + lmid(3));
+ check("dw", "@<QtGui>\n" + lmid(3));
+ check("dw", "@QtGui>\n" + lmid(3));
+ check("dw", "@>\n" + lmid(3));
+}
+
void tst_FakeVim::command_dd()
{
setup();