X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=automated-tests%2Fsrc%2Fdali-internal%2Futc-Dali-Internal-PipelineCache.cpp;h=352bce9504b31524e347d414edb9a4e44768e5af;hb=c229ea2cf3c34602878301003bd78e679774a725;hp=978361857168bf250c316d9c20055b2d0db516c5;hpb=100744f9f2b356c09ea16ea91e19ff3502d4b192;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/automated-tests/src/dali-internal/utc-Dali-Internal-PipelineCache.cpp b/automated-tests/src/dali-internal/utc-Dali-Internal-PipelineCache.cpp index 9783618..352bce9 100644 --- a/automated-tests/src/dali-internal/utc-Dali-Internal-PipelineCache.cpp +++ b/automated-tests/src/dali-internal/utc-Dali-Internal-PipelineCache.cpp @@ -159,7 +159,22 @@ int UtcDaliCorePipelineCacheTest(void) } } } + + DALI_TEST_EQUALS(gPipelineCache->level0nodes.size(), 3, TEST_LOCATION); DALI_TEST_EQUALS(noBlendFoundCount, 1u, TEST_LOCATION); + // Remove renderer to test whether old pipeline is removed + application.GetScene().Remove(actor1); + actor1.RemoveRenderer(renderer1); + renderer1.Reset(); + + // Make the frame count of the pipeline cache large to clean cache + gPipelineCache->mFrameCount = 1000; + + application.SendNotification(); + application.Render(); + + DALI_TEST_EQUALS(gPipelineCache->level0nodes.size(), 2, TEST_LOCATION); + END_TEST; -} \ No newline at end of file +}