File indexing completed on 2024-12-22 04:10:21
0001 /* 0002 * SPDX-FileCopyrightText: 2010 Cyrille Berger <cberger@cberger.net> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef _KIS_NODE_QUERY_PATH_TEST_H_ 0008 #define _KIS_NODE_QUERY_PATH_TEST_H_ 0009 0010 #include <simpletest.h> 0011 0012 #include "kis_types.h" 0013 #include "kis_image.h" 0014 0015 class KisNodeQueryPathTest : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 KisNodeQueryPathTest(); 0020 private Q_SLOTS: 0021 0022 void testCurrentLayerFromRelativeString(); 0023 void testCurrentLayerFromAbsoluteString(); 0024 void testCurrentLayerFromAbsolutePath(); 0025 void testChild1LayerFromRelativeString(); 0026 void testChild1LayerFromAbsoluteString(); 0027 void testChild1LayerFromAbsolutePath(); 0028 void testChild2LayerFromRelativeString(); 0029 void testChild2LayerFromAbsoluteString(); 0030 void testChild2LayerFromAbsolutePath(); 0031 void testBrother1LayerFromRelativeString(); 0032 void testBrother1LayerFromAbsoluteString(); 0033 void testBrother1LayerFromAbsolutePath(); 0034 void testBrother2LayerFromRelativeString(); 0035 void testBrother2LayerFromAbsoluteString(); 0036 void testBrother2LayerFromAbsolutePath(); 0037 void testParentLayerFromRelativeString(); 0038 void testParentLayerFromAbsoluteString(); 0039 void testParentLayerFromAbsolutePath(); 0040 void testRootLayerFromRelativeString(); 0041 void testRootLayerFromAbsoluteString(); 0042 void testRootLayerFromAbsolutePath(); 0043 void testPathCompression(); 0044 private: 0045 KisImageSP image; 0046 KisNodeSP current; 0047 KisNodeSP parent; 0048 KisNodeSP child1, child2; 0049 KisNodeSP brother1, brother2; 0050 }; 0051 0052 0053 #endif