Changeset View
Changeset View
Standalone View
Standalone View
libs/image/tests/kis_clone_layer_test.cpp
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Line(s) | 283 | { | |||
---|---|---|---|---|---|
311 | QVERIFY(copyPaintLayer4 != KisNodeSP(paintLayer4)); | 311 | QVERIFY(copyPaintLayer4 != KisNodeSP(paintLayer4)); | ||
312 | QVERIFY(copyGroupLayer4 != KisNodeSP(groupLayer4)); | 312 | QVERIFY(copyGroupLayer4 != KisNodeSP(groupLayer4)); | ||
313 | QVERIFY(copyCloneLayer4 != KisNodeSP(cloneLayer4)); | 313 | QVERIFY(copyCloneLayer4 != KisNodeSP(cloneLayer4)); | ||
314 | 314 | | |||
315 | KisCloneLayerSP newClone = dynamic_cast<KisCloneLayer*>(copyCloneLayer4.data()); | 315 | KisCloneLayerSP newClone = dynamic_cast<KisCloneLayer*>(copyCloneLayer4.data()); | ||
316 | 316 | | |||
317 | /** | 317 | /** | ||
318 | * The newly created clone should now point to the *newly created* | 318 | * The newly created clone should now point to the *newly created* | ||
319 | * paint layer, not to the previos one. | 319 | * paint layer, not to the previous one. | ||
320 | */ | 320 | */ | ||
321 | QCOMPARE(KisNodeSP(newClone->copyFrom()), copyPaintLayer4); | 321 | QCOMPARE(KisNodeSP(newClone->copyFrom()), copyPaintLayer4); | ||
322 | } | 322 | } | ||
323 | 323 | | |||
324 | struct CyclingTester { | 324 | struct CyclingTester { | ||
325 | CyclingTester() { | 325 | CyclingTester() { | ||
326 | const KoColorSpace *colorSpace = KoColorSpaceRegistry::instance()->rgb8(); | 326 | const KoColorSpace *colorSpace = KoColorSpaceRegistry::instance()->rgb8(); | ||
327 | image = new KisImage(0, 128, 128, colorSpace, "clones test"); | 327 | image = new KisImage(0, 128, 128, colorSpace, "clones test"); | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |