File indexing completed on 2024-12-22 04:12:52

0001 /*
0002  *  SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef __KIS_NODE_JUGGLER_COMPRESSED_TEST_H
0008 #define __KIS_NODE_JUGGLER_COMPRESSED_TEST_H
0009 
0010 #include <simpletest.h>
0011 #include <testutil.h>
0012 #include "kis_group_layer.h"
0013 
0014 class KisNodeJugglerCompressedTest : public QObject
0015 {
0016     Q_OBJECT
0017 private Q_SLOTS:
0018     void init();
0019     void cleanup();
0020 
0021     void testApplyUndo();
0022     void testEndBeforeUpdate();
0023 
0024     void testDuplicate();
0025     void testCopyLayers();
0026     void testMoveLayers();
0027 
0028 private:
0029     void testMove(int delayBeforeEnd);
0030     void testDuplicateImpl(bool externalParent, bool useMove);
0031 private:
0032     QScopedPointer<TestUtil::MaskParent> p;
0033     KisPaintLayerSP layer1;
0034     KisPaintLayerSP layer2;
0035     KisPaintLayerSP layer3;
0036     KisGroupLayerSP group4;
0037     KisPaintLayerSP layer5;
0038     KisPaintLayerSP layer6;
0039 };
0040 
0041 #endif /* __KIS_NODE_JUGGLER_COMPRESSED_TEST_H */