X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-adaptor%2Futc-Dali-Window.cpp;h=b02764a07c9c22b38910307b24124b53db0db883;hb=1d0d7873858fd2010b71e5db8f03654fb307370f;hp=c917d7ba7948240db613a5d88a6ed9bb3b0284a1;hpb=9f941d6edb91ff07303f340705a203cf417d7ebf;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/automated-tests/src/dali-adaptor/utc-Dali-Window.cpp b/automated-tests/src/dali-adaptor/utc-Dali-Window.cpp index c917d7b..b02764a 100644 --- a/automated-tests/src/dali-adaptor/utc-Dali-Window.cpp +++ b/automated-tests/src/dali-adaptor/utc-Dali-Window.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -16,10 +16,11 @@ */ #include -#include -#include +#include +#include #include + using namespace Dali; void utc_dali_window_startup(void) @@ -137,54 +138,6 @@ int UtcDaliWindowNewN(void) END_TEST; } -int UtcDaliWindowShowIndicatorN(void) -{ - Dali::Window window; - try - { - window.ShowIndicator(Dali::Window::VISIBLE); - DALI_TEST_CHECK( false ); // Should not reach here! - } - catch( ... ) - { - DALI_TEST_CHECK( true ); - } - - END_TEST; -} - -int UtcDaliWindowSetIndicatorBgOpacityN(void) -{ - Dali::Window window; - try - { - window.SetIndicatorBgOpacity(Dali::Window::OPAQUE); - DALI_TEST_CHECK( false ); // Should not reach here! - } - catch( ... ) - { - DALI_TEST_CHECK( true ); - } - - END_TEST; -} - -int UtcDaliWindowRotateIndicatorN(void) -{ - Dali::Window window; - try - { - window.RotateIndicator(Dali::Window::PORTRAIT); - DALI_TEST_CHECK( false ); // Should not reach here! - } - catch( ... ) - { - DALI_TEST_CHECK( true ); - } - - END_TEST; -} - int UtcDaliWindowSetClassN(void) { Dali::Window window; @@ -313,13 +266,13 @@ int UtcDaliWindowGetPreferredOrientationN(void) END_TEST; } -int UtcDaliWindowGetDragAndDropDetectorN(void) +int UtcDaliWindowGetNativeHandleN(void) { Dali::Window window; try { - DragAndDropDetector detector = window.GetDragAndDropDetector(); - DALI_TEST_CHECK( !detector ); // Should not reach here! + Dali::Any handle = window.GetNativeHandle(); + DALI_TEST_CHECK( false ); // Should not reach here! } catch( ... ) { @@ -329,12 +282,12 @@ int UtcDaliWindowGetDragAndDropDetectorN(void) END_TEST; } -int UtcDaliWindowGetNativeHandleN(void) +int UtcDaliWindowSetAcceptFocusN(void) { Dali::Window window; try { - Dali::Any handle = window.GetNativeHandle(); + window.SetAcceptFocus( true ); DALI_TEST_CHECK( false ); // Should not reach here! } catch( ... ) @@ -345,12 +298,12 @@ int UtcDaliWindowGetNativeHandleN(void) END_TEST; } -int UtcDaliWindowIndicatorVisibilityChangedSignalN(void) +int UtcDaliWindowIsFocusAcceptableN(void) { Dali::Window window; try { - window.IndicatorVisibilityChangedSignal(); + window.IsFocusAcceptable(); DALI_TEST_CHECK( false ); // Should not reach here! } catch( ... ) @@ -361,6 +314,18 @@ int UtcDaliWindowIndicatorVisibilityChangedSignalN(void) END_TEST; } +int UtcDaliWindowFocusChangeSignalN(void) +{ + Dali::Window window; + try + { + window.FocusChangeSignal(); + DALI_TEST_CHECK( false ); // Should not reach here! + } + catch( ... ) + { + DALI_TEST_CHECK( true ); + } - - + END_TEST; +}