summaryrefslogtreecommitdiffstats
path: root/krita/core/tiles/tests
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-26 00:29:37 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-26 00:29:37 +0000
commit2785103a6bd4de55bd26d79e34d0fdd4b329a73a (patch)
treec2738b1095bfdb263da27bc1391403d829522a14 /krita/core/tiles/tests
parentf008adb5a77e094eaf6abf3fc0f36958e66896a5 (diff)
downloadkoffice-2785103a6bd4de55bd26d79e34d0fdd4b329a73a.tar.gz
koffice-2785103a6bd4de55bd26d79e34d0fdd4b329a73a.zip
Remove krita* in preparation for name switch from Krita to Chalk
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238361 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krita/core/tiles/tests')
-rw-r--r--krita/core/tiles/tests/Makefile.am15
-rw-r--r--krita/core/tiles/tests/kis_tiled_data_tester.cpp74
-rw-r--r--krita/core/tiles/tests/kis_tiled_data_tester.h32
3 files changed, 0 insertions, 121 deletions
diff --git a/krita/core/tiles/tests/Makefile.am b/krita/core/tiles/tests/Makefile.am
deleted file mode 100644
index bc729320..00000000
--- a/krita/core/tiles/tests/Makefile.am
+++ /dev/null
@@ -1,15 +0,0 @@
-AM_CPPFLAGS = -I$(srcdir)/../ \
- -I$(srcdir)/../.. \
- -I$(srcdir)/../../../sdk \
- $(all_includes)
-
-# The check_ target makes sure we don't install the modules,
-# $(KDE_CHECK_PLUGIN) assures a shared library is created.
-check_LTLIBRARIES = kunittest_kis_tiled_data_tester.la
-kunittest_kis_tiled_data_tester_la_SOURCES = kis_tiled_data_tester.cpp
-kunittest_kis_tiled_data_tester_la_LIBADD = -lkunittest ../../../libkritacommon.la
-kunittest_kis_tiled_data_tester_la_LDFLAGS = -module $(KDE_CHECK_PLUGIN) $(all_libraries)
-
-check-local: kunittest_kis_tiled_data_tester.la
- kunittestmodrunner
-
diff --git a/krita/core/tiles/tests/kis_tiled_data_tester.cpp b/krita/core/tiles/tests/kis_tiled_data_tester.cpp
deleted file mode 100644
index 15d3e50b..00000000
--- a/krita/core/tiles/tests/kis_tiled_data_tester.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright (c) 2005 Adrian Page <adrian@pagenet.plus.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include <kunittest/runner.h>
-#include <kunittest/module.h>
-
-#include "kis_tiled_data_tester.h"
-#include "kis_datamanager.h"
-#include "kis_global.h"
-
-using namespace KUnitTest;
-
-KUNITTEST_MODULE( kunittest_kis_tiled_data_tester, "Tiled Data Tester" );
-KUNITTEST_MODULE_REGISTER_TESTER( KisTiledDataTester );
-
-#define TEST_PIXEL_SIZE 4
-
-static TQ_UINT8 defaultPixel[TEST_PIXEL_SIZE] = {0, 0, 0, OPACITY_TRANSPARENT};
-
-void KisTiledDataTester::allTests()
-{
- KisDataManager *dm = new KisDataManager(TEST_PIXEL_SIZE, defaultPixel);
-
- TQ_INT32 extentX;
- TQ_INT32 extentY;
- TQ_INT32 extentWidth;
- TQ_INT32 extentHeight;
-
- dm->extent(extentX, extentY, extentWidth, extentHeight);
- CHECK(extentWidth, 0);
- CHECK(extentHeight, 0);
-
- const TQ_UINT8 *readOnlyPixel = dm->pixel(KisTile::WIDTH/2, KisTile::HEIGHT/2);
- dm->extent(extentX, extentY, extentWidth, extentHeight);
- CHECK(extentWidth, 0);
- CHECK(extentHeight, 0);
-
- TQ_UINT8 *writablePixel = dm->writablePixel(KisTile::WIDTH/2, KisTile::HEIGHT/2);
- dm->extent(extentX, extentY, extentWidth, extentHeight);
- CHECK(extentX, 0);
- CHECK(extentY, 0);
- CHECK(extentWidth, KisTile::WIDTH);
- CHECK(extentHeight, KisTile::HEIGHT);
-
- writablePixel = dm->writablePixel(-KisTile::WIDTH, -KisTile::HEIGHT);
- dm->extent(extentX, extentY, extentWidth, extentHeight);
- CHECK(extentX, -KisTile::WIDTH);
- CHECK(extentY, -KisTile::HEIGHT);
- CHECK(extentWidth, 2*KisTile::WIDTH);
- CHECK(extentHeight, 2*KisTile::HEIGHT);
-
- dm->clear();
- dm->extent(extentX, extentY, extentWidth, extentHeight);
- CHECK(extentWidth, 0);
- CHECK(extentHeight, 0);
-
- delete dm;
-}
-
diff --git a/krita/core/tiles/tests/kis_tiled_data_tester.h b/krita/core/tiles/tests/kis_tiled_data_tester.h
deleted file mode 100644
index 8a569d23..00000000
--- a/krita/core/tiles/tests/kis_tiled_data_tester.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2005 Adrian Page <adrian@pagenet.plus.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-
-#ifndef KIS_TILED_DATA_TESTER_H
-#define KIS_TILED_DATA_TESTER_H
-
-#include <kunittest/tester.h>
-
-class KisTiledDataTester : public KUnitTest::Tester
-{
-public:
- void allTests();
-};
-
-#endif
-