From 2785103a6bd4de55bd26d79e34d0fdd4b329a73a Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 26 Jun 2011 00:29:37 +0000 Subject: 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 --- krita/core/tiles/tests/Makefile.am | 15 ----- krita/core/tiles/tests/kis_tiled_data_tester.cpp | 74 ------------------------ krita/core/tiles/tests/kis_tiled_data_tester.h | 32 ---------- 3 files changed, 121 deletions(-) delete mode 100644 krita/core/tiles/tests/Makefile.am delete mode 100644 krita/core/tiles/tests/kis_tiled_data_tester.cpp delete mode 100644 krita/core/tiles/tests/kis_tiled_data_tester.h (limited to 'krita/core/tiles/tests') 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 - * - * 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 -#include - -#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 - * - * 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 - -class KisTiledDataTester : public KUnitTest::Tester -{ -public: - void allTests(); -}; - -#endif - -- cgit v1.2.1