File indexing completed on 2024-06-23 04:27:34
0001 /* 0002 * SPDX-FileCopyrightText: 2007 Cyrille Berger <cberger@cberger.net> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "kis_xcf_test.h" 0008 0009 0010 #include <simpletest.h> 0011 #include <QCoreApplication> 0012 0013 #include <testui.h> 0014 0015 #include "filestest.h" 0016 0017 #ifndef FILES_DATA_DIR 0018 #error "FILES_DATA_DIR not set. A directory with the data used for testing the importing of files in krita" 0019 #endif 0020 0021 const QString XcfMimetype = "image/x-xcf"; 0022 0023 0024 void KisXCFTest::testFiles() 0025 { 0026 TestUtil::testFiles(QString(FILES_DATA_DIR) + "/sources", QStringList(), QString(), 1); 0027 } 0028 0029 0030 void KisXCFTest::testImportFromWriteonly() 0031 { 0032 TestUtil::testImportFromWriteonly(XcfMimetype); 0033 } 0034 0035 /* 0036 void KisXCFTest::testExportToReadonly() 0037 { 0038 TestUtil::testExportToReadonly(XcfMimetype); 0039 } 0040 */ 0041 0042 0043 void KisXCFTest::testImportIncorrectFormat() 0044 { 0045 TestUtil::testImportIncorrectFormat(XcfMimetype); 0046 } 0047 0048 0049 KISTEST_MAIN(KisXCFTest) 0050