Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
964 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2017 Victor Wåhlström <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#include "kis_heightmap_test.h"

#include <simpletest.h>
#include <QCoreApplication>

#include <testui.h>

#include "filestest.h"

#ifndef FILES_DATA_DIR
#error "FILES_DATA_DIR not set. A directory with the data used for testing the importing of files in krita"
#endif


const QString HeightmapMimetype = "image/x-r8";


void KisHeightmapTest::testFiles()
{
    TestUtil::testFiles(QString(FILES_DATA_DIR) + "/sources", QStringList(), QString(), 1);
}



void KisHeightmapTest::testImportFromWriteonly()
{
    TestUtil::testImportFromWriteonly(HeightmapMimetype);
}


void KisHeightmapTest::testExportToReadonly()
{
    TestUtil::testExportToReadonly(HeightmapMimetype);
}


void KisHeightmapTest::testImportIncorrectFormat()
{
    TestUtil::testImportIncorrectFormat(HeightmapMimetype);
}


KISTEST_MAIN(KisHeightmapTest)