summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-24 06:46:27 +0200
committerMontel Laurent <[email protected]>2017-05-24 06:46:27 +0200
commitcec6ef30bc3891fc1a15dd81bce93bd2c9a394fb (patch)
tree29881b74a2a0a9413a40d69ca03bf76fc83703c3
parent3158553a6a258b84d9f1a984e535dcbf3aa10ea5 (diff)
Continue to implement comment support
-rw-r--r--src/ksieveui/autocreatescripts/autotests/data/test-comment4-ref.siv19
-rw-r--r--src/ksieveui/autocreatescripts/autotests/data/test-comment4.siv19
-rw-r--r--src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp1
3 files changed, 39 insertions, 0 deletions
diff --git a/src/ksieveui/autocreatescripts/autotests/data/test-comment4-ref.siv b/src/ksieveui/autocreatescripts/autotests/data/test-comment4-ref.siv
new file mode 100644
index 0000000..dd53857
--- /dev/null
+++ b/src/ksieveui/autocreatescripts/autotests/data/test-comment4-ref.siv
@@ -0,0 +1,19 @@
+require "imapflags";
+require "fileinto";
+
+#SCRIPTNAME: test1
+
+
+
+
+if header :is "" #test header
+{
+ keep :flags [ "\\Answered", "\\Flagged" ];
+} else {
+ #FileInto comment
+
+
+
+ #comment2
+ fileinto "";
+}
diff --git a/src/ksieveui/autocreatescripts/autotests/data/test-comment4.siv b/src/ksieveui/autocreatescripts/autotests/data/test-comment4.siv
new file mode 100644
index 0000000..dd53857
--- /dev/null
+++ b/src/ksieveui/autocreatescripts/autotests/data/test-comment4.siv
@@ -0,0 +1,19 @@
+require "imapflags";
+require "fileinto";
+
+#SCRIPTNAME: test1
+
+
+
+
+if header :is "" #test header
+{
+ keep :flags [ "\\Answered", "\\Flagged" ];
+} else {
+ #FileInto comment
+
+
+
+ #comment2
+ fileinto "";
+}
diff --git a/src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp b/src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
index 1ac7515..24b995b 100644
--- a/src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
+++ b/src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
@@ -188,6 +188,7 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
QTest::newRow("test-comment2") << QStringLiteral("test-comment2") << false << true;
QTest::newRow("test-comment3") << QStringLiteral("test-comment3") << false << true;
+ QTest::newRow("test-comment4") << QStringLiteral("test-comment4") << false << true;
}
QTEST_MAIN(SieveEditorGraphicalModeWidgetTest)