File indexing completed on 2025-01-26 04:10:51
0001 /* 0002 * SPDX-FileCopyrightText: 2019 Agata Cacko <cacko.azh@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "KisBrushTest.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 0020 const QString BrushMimetype = "image/x-gimp-brush"; 0021 0022 0023 0024 void KisBrushTest::testImportFromWriteonly() 0025 { 0026 TestUtil::testImportFromWriteonly(BrushMimetype); 0027 } 0028 0029 0030 void KisBrushTest::testExportToReadonly() 0031 { 0032 TestUtil::testExportToReadonly(BrushMimetype); 0033 } 0034 0035 0036 void KisBrushTest::testImportIncorrectFormat() 0037 { 0038 TestUtil::testImportIncorrectFormat(BrushMimetype); 0039 } 0040 0041 0042 0043 KISTEST_MAIN(KisBrushTest) 0044 0045