Warning, file /graphics/krita/plugins/impex/csv/tests/kis_csv_test.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *  SPDX-FileCopyrightText: 2016 Laszlo Fazekas <mneko@freemail.hu>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #include "kis_csv_test.h"
0008 
0009 
0010 #include <simpletest.h>
0011 #include <QCoreApplication>
0012 
0013 #include "filestest.h"
0014 
0015 #ifndef FILES_DATA_DIR
0016 #error "FILES_DATA_DIR not set. A directory with the data used for testing the importing of files in krita"
0017 #endif
0018 
0019 const QString CsvMimetype = "text/csv";
0020 
0021 
0022 void KisCsvTest::testFiles()
0023 {
0024     TestUtil::testFiles(QString(FILES_DATA_DIR) + "/sources", QStringList());
0025 }
0026 
0027 
0028 void KisCsvTest::testImportFromWriteonly()
0029 {
0030     TestUtil::testImportFromWriteonly(CsvMimetype);
0031 }
0032 
0033 
0034 void KisCsvTest::testExportToReadonly()
0035 {
0036     TestUtil::testExportToReadonly(CsvMimetype);
0037 }
0038 
0039 
0040 void KisCsvTest::testImportIncorrectFormat()
0041 {
0042     TestUtil::testImportIncorrectFormat(CsvMimetype);
0043 }
0044 
0045 SIMPLE_TEST_MAIN(KisCsvTest)
0046