Commit a7425cc7 authored by Laurent Montel's avatar Laurent Montel 😁

Continue to add autotests

parent 1fdb1478
require "foreverypart";
#SCRIPTNAME: Script part 0
#Script name: break
if true
{
break :name "optional name";
break;
}
\ No newline at end of file
require "foreverypart";
#Script name: break
if true {
break :name "optional name";
break ;
}
require "convert";
require "enotify";
#SCRIPTNAME: Script part 0
#Script name: notify
if convert "image/jpeg" "image/jpeg" ["pix-x=300","pix-y=200"]
{
notify :importance "2" :message "message !!!" "";
}
\ No newline at end of file
require "convert";
#Script name: notify
if convert "image/jpeg" "image/jpeg" ["pix-x=300","pix-y=200"]
{
notify :importance "2" :message "message !!!";
}
require "ihave";
require "imap4flags";
#SCRIPTNAME: Script part 0
#Script name: remove flags
if ihave "reject"
{
removeflag [ "\\Answered", "\\Flagged", "\\Seen" ];
removeflag [ "\\Draft" ];
}
\ No newline at end of file
require "ihave";
require "imapflags";
#Script name: remove flags
if ihave "reject"
{
removeflag [ "\\Answered", "\\Flagged", "\\Seen" ];
removeflag [ "\\Draft" ];
}
require "environment";
require "imap4flags";
#SCRIPTNAME: Script part 0
#Script name: test environnement
if environment "PATH" "local folder"
{
keep;
}
\ No newline at end of file
require "environment";
#Script name: test environnement
if environment "PATH" "local folder"
{
keep;
}
require "imap4flags";
require "variables";
#SCRIPTNAME: Script part 0
#Script name: has flags
if allof (hasflag :is "test"
, not hasflag :is "variable" "test2"
, hasflag :contains "variable" "test3"
)
{
keep;
}
\ No newline at end of file
require "imap4flags";
#Script name: has flags
if allof (hasflag :is "test"
, not hasflag :is "variable" "test2"
, hasflag :contains "variable" "test3"
)
{
keep;
}
require "spamtest";
require "relational";
require "comparator-i;ascii-numeric";
require "spamtestplus";
#SCRIPTNAME: Script part 0
#Script name: test spam-plus
if allof (spamtest :percent :value "ne" :comparator "i;ascii-numeric" "4"
, spamtest :count "ge" :comparator "i;ascii-numeric" "3"
, spamtest :percent :value "ne" :comparator "i;ascii-numeric" "3"
)
{
stop;
}
\ No newline at end of file
require "spamtestplus";
require "relational";
require "comparator-i;ascii-numeric";
#Script name: test spam-plus
if allof (spamtest :percent :value "ne" :comparator "i;ascii-numeric" "4"
, spamtest :count "ge" :comparator "i;ascii-numeric" "3"
, spamtest :percent :value "ne" :comparator "i;ascii-numeric" "3"
)
{
stop;
}
require "variables";
#SCRIPTNAME: Script part 0
#Script name: variables
if size :under 5
{
set "testvariable" "25";
}
\ No newline at end of file
require "variables";
#Script name: variables
if size :under 5
{
set "testvariable" "25";
}
......@@ -130,6 +130,13 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
//Need to fix : "set" variable
QTest::newRow("include") << QStringLiteral("include") << false << true;
QTest::newRow("variable-lower") << QStringLiteral("variable-lower") << false << true;
QTest::newRow("test-environnement") << QStringLiteral("test-environnement") << false << true;
QTest::newRow("test-has-flags") << QStringLiteral("test-has-flags") << false << true;
QTest::newRow("test-spam-plus") << QStringLiteral("test-spam-plus") << false << true;
QTest::newRow("remove-flags") << QStringLiteral("remove-flags") << false << true;
QTest::newRow("variable") << QStringLiteral("variable") << false << true;
QTest::newRow("break") << QStringLiteral("break") << false << true;
QTest::newRow("notify") << QStringLiteral("notify") << false << true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment