X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-CubeTransitionEffect.cpp;h=185940d7dd92fe58a60a2087426f40408c5b375c;hp=671e19d3ee560c7ef464414e42f6a5298c16cd76;hb=c8ffcb9f46ded14981915479af62d85970798db5;hpb=e6bf46a6c76b0000dd5174ae406cc62ca8f5d9c2 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-CubeTransitionEffect.cpp b/automated-tests/src/dali-toolkit/utc-Dali-CubeTransitionEffect.cpp index 671e19d..185940d 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-CubeTransitionEffect.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-CubeTransitionEffect.cpp @@ -53,7 +53,7 @@ static void TestCallback(BaseHandle handle) void Wait(ToolkitTestApplication& application, float durationToPass) { int duration = static_cast(durationToPass*1000.f); - // wait 2 more frames to compensate the two frames used by the bitmapImage waiting for the loading succeeded signal + // wait 2 more frames to compensate the two frames used by the image waiting for the loading succeeded signal for(int i = 0; i <= duration/RENDER_FRAME_INTERVAL+2 ; i++) { application.SendNotification(); @@ -326,9 +326,8 @@ int UtcDaliCubeTransitionEffectSetCurrentImage(void) //check the size of the off screen rendered image Wait( application, OFFSCREEN_RENDER_DURATION ); - ImageAttributes attributes( tile.GetImage().GetAttributes() ); - DALI_TEST_EQUALS( static_cast(attributes.GetWidth()), VIEW_AREA_SIZE.x, TEST_LOCATION ); - DALI_TEST_EQUALS( static_cast(attributes.GetHeight()), VIEW_AREA_SIZE.y, TEST_LOCATION ); + DALI_TEST_EQUALS( tile.GetImage().GetWidth(), VIEW_AREA_SIZE.x, TEST_LOCATION ); + DALI_TEST_EQUALS( tile.GetImage().GetHeight(), VIEW_AREA_SIZE.y, TEST_LOCATION ); END_TEST; } @@ -358,9 +357,8 @@ int UtcDaliCubeTransitionEffectSetTargetImage(void) //check the size of the off screen rendered image Wait( application, OFFSCREEN_RENDER_DURATION ); - ImageAttributes attributes( tile.GetImage().GetAttributes() ); - DALI_TEST_EQUALS( static_cast(attributes.GetWidth()), VIEW_AREA_SIZE.x, TEST_LOCATION ); - DALI_TEST_EQUALS( static_cast(attributes.GetHeight()), VIEW_AREA_SIZE.y, TEST_LOCATION ); + DALI_TEST_EQUALS( tile.GetImage().GetWidth(), VIEW_AREA_SIZE.x, TEST_LOCATION ); + DALI_TEST_EQUALS( tile.GetImage().GetHeight(), VIEW_AREA_SIZE.y, TEST_LOCATION ); END_TEST; } @@ -370,7 +368,7 @@ int UtcDaliCubeTransitionWaveEffectStartTransition(void) tet_infoline(" UtcDaliCubeTransitionWaveEffectStartTransition "); application.GetGlAbstraction().SetCheckFramebufferStatusResult(GL_FRAMEBUFFER_COMPLETE ); - ImageActor imageActor = CreateSolidColorImageActor(application, Color::BLUE,30,30); + ImageActor imageActor = ImageActor::New(ResourceImage::New("Image.jpg")); CubeTransitionEffect waveEffect = CubeTransitionWaveEffect::New( NUM_ROWS, NUM_COLUMNS, VIEW_AREA_SIZE ); waveEffect.SetTransitionDuration( TRANSITION_DURATION ); @@ -421,7 +419,7 @@ int UtcDaliCubeTransitionCrossEffectStartTransition(void) tet_infoline(" UtcDaliCubeTransitionCrossEffectStartTransition "); application.GetGlAbstraction().SetCheckFramebufferStatusResult(GL_FRAMEBUFFER_COMPLETE ); - ImageActor imageActor = CreateSolidColorImageActor(application, Color::BLUE,30,30); + ImageActor imageActor = ImageActor::New(ResourceImage::New("Image.jpg")); CubeTransitionEffect crossEffect = CubeTransitionCrossEffect::New( NUM_ROWS, NUM_COLUMNS, VIEW_AREA_SIZE ); crossEffect.SetTransitionDuration( TRANSITION_DURATION );