X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit-internal%2Futc-Dali-DebugRendering.cpp;h=8184dd7583541d98d8ed6f9c0cdc93c9e18fc4ad;hb=ab1e2b431029b837c429c6089d31612cc4b74a79;hp=12276e8d05593e626673837f8151011fb59b2697;hpb=1fe6286be11679b2f5c14a60636ae9cb486570e4;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit-internal/utc-Dali-DebugRendering.cpp b/automated-tests/src/dali-toolkit-internal/utc-Dali-DebugRendering.cpp index 12276e8..8184dd7 100755 --- a/automated-tests/src/dali-toolkit-internal/utc-Dali-DebugRendering.cpp +++ b/automated-tests/src/dali-toolkit-internal/utc-Dali-DebugRendering.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ #include // for setting environment variable: DALI_DEBUG_RENDERING +#if defined(ELDBUS_ENABLED) #include +#endif #include "dummy-control.h" @@ -78,7 +80,9 @@ void TestDebugVisual( Integration::Scene scene, Visual::Base& visual, Visual::T void dali_debug_rendering_startup(void) { test_return_value = TET_UNDEF; +#if defined(ELDBUS_ENABLED) DBusWrapper::Install(std::unique_ptr(new TestDBusWrapper)); +#endif } void dali_debug_rendering_cleanup(void) @@ -194,7 +198,7 @@ int UtcDaliDebugRenderingGetVisual1(void) DALI_TEST_EQUALS( naturalSize, Vector2( 82.f, 20.f ), Math::MACHINE_EPSILON_1000, TEST_LOCATION ); const float height = textVisual.GetHeightForWidth( 40.f ); - DALI_TEST_EQUALS( height, 57.f, Math::MACHINE_EPSILON_1000, TEST_LOCATION ); + DALI_TEST_EQUALS( height, 60.f, Math::MACHINE_EPSILON_1000, TEST_LOCATION ); // Test that NPatchVisual is replaced with debug visual // TEST_NPATCH_FILE_NAME: image_01.9.jpg