Warning, file /graphics/krita/plugins/impex/jp2/tests/KisJP2Test.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: 2019 Agata Cacko <cacko.azh@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #include <KisJP2Test.h>
0008 
0009 #include <simpletest.h>
0010 #include <QCoreApplication>
0011 
0012 #include "filestest.h"
0013 
0014 #ifndef FILES_DATA_DIR
0015 #error "FILES_DATA_DIR not set. A directory with the data used for testing the importing of files in krita"
0016 #endif
0017 
0018 
0019 const QString JP2Mimetype = "image/jp2";
0020 
0021 
0022 
0023 void KisJP2Test::testImportFromWriteonly()
0024 {
0025     TestUtil::testImportFromWriteonly(JP2Mimetype);
0026 }
0027 
0028 
0029 void KisJP2Test::testExportToReadonly()
0030 {
0031     TestUtil::testExportToReadonly(JP2Mimetype);
0032 }
0033 
0034 
0035 void KisJP2Test::testImportIncorrectFormat()
0036 {
0037     TestUtil::testImportIncorrectFormat(JP2Mimetype);
0038 }
0039 
0040 
0041 
0042 KISTEST_MAIN(KisJP2Test)
0043 
0044