2 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include <dali-test-suite-utils.h>
19 #include <dali/dali.h>
20 #include <dali/devel-api/adaptor-framework/window-devel.h>
21 #include <dali/internal/system/linux/dali-ecore-x.h>
25 void utc_dali_window_startup(void)
27 test_return_value = TET_UNDEF;
30 void utc_dali_window_cleanup(void)
32 test_return_value = TET_PASS;
37 intptr_t screenId = 0; // intptr_t has the same size as a pointer and is platform independent so this can be returned as a pointer in ecore_x_default_screen_get below without compilation warnings
39 } // unnamed namespace
43 Ecore_X_Screen* ecore_x_default_screen_get(void)
46 return (Ecore_X_Screen*)screenId;
49 void ecore_x_screen_size_get(const Ecore_X_Screen* screen, int* w, int* h)
55 Ecore_X_Window ecore_x_window_argb_new(Ecore_X_Window parent, int x, int y, int w, int h)
61 int UtcDaliWindowConstructorP(void)
64 DALI_TEST_CHECK(!window);
68 int UtcDaliWindowCopyConstructorP(void)
71 Dali::Window copy(window);
72 DALI_TEST_CHECK(copy == window);
77 int UtcDaliWindowConstructorFromInternalPointerN(void)
79 Internal::Adaptor::Window* internalWindow = NULL;
80 Dali::Window window(internalWindow);
81 DALI_TEST_CHECK(!window); // Should not reach here!
86 int UtcDaliWindowAssignmentOperatorP(void)
88 const Dali::Window window;
90 DALI_TEST_CHECK(!copy);
92 DALI_TEST_CHECK(copy == window);
97 int UtcDaliWindowDestructorP(void)
99 Dali::Window* window = new Dali::Window();
102 DALI_TEST_CHECK(true);
106 int UtcDaliWindowNewN(void)
108 // Attempt to create a new window
111 PositionSize windowPosition(0, 0, 0, 0);
112 Dali::Window window = Dali::Window::New(windowPosition, "test-window", true);
114 tet_result(TET_FAIL);
116 catch(DaliException& e)
118 DALI_TEST_ASSERT(e, "Failed to create X window", TEST_LOCATION);
121 // Attempt to create a new window
124 PositionSize windowPosition(0, 0, 0, 0);
125 Dali::Window window = Dali::Window::New(windowPosition, "test-window", "test-window-class", true);
127 tet_result(TET_FAIL);
129 catch(DaliException& e)
131 DALI_TEST_ASSERT(e, "Failed to create X window", TEST_LOCATION);
137 int UtcDaliWindowSetClassN(void)
142 window.SetClass("window-name", "window-class");
143 DALI_TEST_CHECK(false); // Should not reach here!
147 DALI_TEST_CHECK(true);
153 int UtcDaliWindowRaiseN(void)
159 DALI_TEST_CHECK(false); // Should not reach here!
163 DALI_TEST_CHECK(true);
169 int UtcDaliWindowLowerN(void)
175 DALI_TEST_CHECK(false); // Should not reach here!
179 DALI_TEST_CHECK(true);
185 int UtcDaliWindowActivateN(void)
191 DALI_TEST_CHECK(false); // Should not reach here!
195 DALI_TEST_CHECK(true);
201 int UtcDaliWindowMaximizeN(void)
205 Dali::Window instance;
206 DevelWindow::Maximize(instance, true);
207 DALI_TEST_CHECK(false); // Should not reach here!
211 DALI_TEST_CHECK(true);
217 int UtcDaliWindowIsMaximizedN(void)
221 Dali::Window instance;
222 DevelWindow::IsMaximized(instance);
223 DALI_TEST_CHECK(false); // Should not reach here!
227 DALI_TEST_CHECK(true);
233 int UtcDaliWindowMinimizeN(void)
237 Dali::Window instance;
238 DevelWindow::Minimize(instance, true);
239 DALI_TEST_CHECK(false); // Should not reach here!
243 DALI_TEST_CHECK(true);
249 int UtcDaliWindowIsMinimizedN(void)
253 Dali::Window instance;
254 DevelWindow::IsMinimized(instance);
255 DALI_TEST_CHECK(false); // Should not reach here!
259 DALI_TEST_CHECK(true);
265 int UtcDaliWindowAddAvailableOrientationN(void)
270 window.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
271 DALI_TEST_CHECK(false); // Should not reach here!
275 DALI_TEST_CHECK(true);
281 int UtcDaliWindowRemoveAvailableOrientationN(void)
286 window.RemoveAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
287 DALI_TEST_CHECK(false); // Should not reach here!
291 DALI_TEST_CHECK(true);
297 int UtcDaliWindowSetPreferredOrientationN(void)
302 window.SetPreferredOrientation(Dali::WindowOrientation::PORTRAIT);
303 DALI_TEST_CHECK(false); // Should not reach here!
307 DALI_TEST_CHECK(true);
313 int UtcDaliWindowGetPreferredOrientationN(void)
318 Dali::WindowOrientation orientation = window.GetPreferredOrientation();
319 DALI_TEST_CHECK(orientation == Dali::WindowOrientation::PORTRAIT); // Should not reach here!
323 DALI_TEST_CHECK(true);
329 int UtcDaliWindowSetPositionSizeWithOrientationN(void)
334 DevelWindow::SetPositionSizeWithOrientation(window, PositionSize(0, 0, 200, 100), Dali::WindowOrientation::PORTRAIT);
335 DALI_TEST_CHECK(false); // Should not reach here!
339 DALI_TEST_CHECK(true);
345 int UtcDaliWindowGetNativeHandleN(void)
350 Dali::Any handle = window.GetNativeHandle();
351 DALI_TEST_CHECK(false); // Should not reach here!
355 DALI_TEST_CHECK(true);
361 int UtcDaliWindowSetAcceptFocusN(void)
366 window.SetAcceptFocus(true);
367 DALI_TEST_CHECK(false); // Should not reach here!
371 DALI_TEST_CHECK(true);
377 int UtcDaliWindowIsFocusAcceptableN(void)
382 window.IsFocusAcceptable();
383 DALI_TEST_CHECK(false); // Should not reach here!
387 DALI_TEST_CHECK(true);
393 int UtcDaliWindowFocusChangeSignalN(void)
398 window.FocusChangeSignal();
399 DALI_TEST_CHECK(false); // Should not reach here!
403 DALI_TEST_CHECK(true);
409 int UtcDaliWindowSetPositionNegative(void)
411 Dali::Window instance;
414 Dali::Uint16Pair arg1;
415 instance.SetPosition(arg1);
416 DALI_TEST_CHECK(false); // Should not get here
420 DALI_TEST_CHECK(true); // We expect an assert
425 int UtcDaliWindowResizeSignalNegative(void)
427 Dali::Window instance;
430 instance.ResizeSignal();
431 DALI_TEST_CHECK(false); // Should not get here
435 DALI_TEST_CHECK(true); // We expect an assert
440 int UtcDaliWindowSetBrightnessNegative(void)
442 Dali::Window instance;
446 instance.SetBrightness(arg1);
447 DALI_TEST_CHECK(false); // Should not get here
451 DALI_TEST_CHECK(true); // We expect an assert
456 int UtcDaliWindowTouchedSignalNegative(void)
458 Dali::Window instance;
461 instance.TouchedSignal();
462 DALI_TEST_CHECK(false); // Should not get here
466 DALI_TEST_CHECK(true); // We expect an assert
471 int UtcDaliWindowKeyEventSignalNegative(void)
473 Dali::Window instance;
476 instance.KeyEventSignal();
477 DALI_TEST_CHECK(false); // Should not get here
481 DALI_TEST_CHECK(true); // We expect an assert
486 int UtcDaliWindowSetAcceptFocusNegative(void)
488 Dali::Window instance;
492 instance.SetAcceptFocus(arg1);
493 DALI_TEST_CHECK(false); // Should not get here
497 DALI_TEST_CHECK(true); // We expect an assert
502 int UtcDaliWindowSetInputRegionNegative(void)
504 Dali::Window instance;
507 Dali::Rect<int> arg1;
508 instance.SetInputRegion(arg1);
509 DALI_TEST_CHECK(false); // Should not get here
513 DALI_TEST_CHECK(true); // We expect an assert
518 int UtcDaliWindowSetOpaqueStateNegative(void)
520 Dali::Window instance;
524 instance.SetOpaqueState(arg1);
525 DALI_TEST_CHECK(false); // Should not get here
529 DALI_TEST_CHECK(true); // We expect an assert
534 int UtcDaliWindowSetTransparencyNegative(void)
536 Dali::Window instance;
540 instance.SetTransparency(arg1);
541 DALI_TEST_CHECK(false); // Should not get here
545 DALI_TEST_CHECK(true); // We expect an assert
550 int UtcDaliWindowAddAuxiliaryHintNegative(void)
552 Dali::Window instance;
557 instance.AddAuxiliaryHint(arg1, arg2);
558 DALI_TEST_CHECK(false); // Should not get here
562 DALI_TEST_CHECK(true); // We expect an assert
567 int UtcDaliWindowSetScreenOffModeNegative(void)
569 Dali::Window instance;
572 Dali::WindowScreenOffMode arg1(Dali::WindowScreenOffMode::NEVER);
573 instance.SetScreenOffMode(arg1);
574 DALI_TEST_CHECK(false); // Should not get here
578 DALI_TEST_CHECK(true); // We expect an assert
583 int UtcDaliWindowFocusChangeSignalNegative(void)
585 Dali::Window instance;
588 instance.FocusChangeSignal();
589 DALI_TEST_CHECK(false); // Should not get here
593 DALI_TEST_CHECK(true); // We expect an assert
598 int UtcDaliWindowGetRenderTaskListNegative(void)
600 Dali::Window instance;
603 instance.GetRenderTaskList();
604 DALI_TEST_CHECK(false); // Should not get here
608 DALI_TEST_CHECK(true); // We expect an assert
613 int UtcDaliWindowSetBackgroundColorNegative(void)
615 Dali::Window instance;
619 instance.SetBackgroundColor(arg1);
620 DALI_TEST_CHECK(false); // Should not get here
624 DALI_TEST_CHECK(true); // We expect an assert
629 int UtcDaliWindowRemoveAuxiliaryHintNegative(void)
631 Dali::Window instance;
634 unsigned int arg1(0u);
635 instance.RemoveAuxiliaryHint(arg1);
636 DALI_TEST_CHECK(false); // Should not get here
640 DALI_TEST_CHECK(true); // We expect an assert
645 int UtcDaliWindowSetNotificationLevelNegative(void)
647 Dali::Window instance;
650 Dali::WindowNotificationLevel arg1(Dali::WindowNotificationLevel::NONE);
651 instance.SetNotificationLevel(arg1);
652 DALI_TEST_CHECK(false); // Should not get here
656 DALI_TEST_CHECK(true); // We expect an assert
661 int UtcDaliWindowSetAuxiliaryHintValueNegative(void)
663 Dali::Window instance;
666 unsigned int arg1(0u);
668 instance.SetAuxiliaryHintValue(arg1, arg2);
669 DALI_TEST_CHECK(false); // Should not get here
673 DALI_TEST_CHECK(true); // We expect an assert
678 int UtcDaliWindowAddAvailableOrientationNegative(void)
680 Dali::Window instance;
683 Dali::WindowOrientation arg1(Dali::WindowOrientation::PORTRAIT);
684 instance.AddAvailableOrientation(arg1);
685 DALI_TEST_CHECK(false); // Should not get here
689 DALI_TEST_CHECK(true); // We expect an assert
694 int UtcDaliWindowGetPreferredOrientationNegative(void)
696 Dali::Window instance;
699 instance.GetPreferredOrientation();
700 DALI_TEST_CHECK(false); // Should not get here
704 DALI_TEST_CHECK(true); // We expect an assert
709 int UtcDaliWindowSetPreferredOrientationNegative(void)
711 Dali::Window instance;
714 Dali::WindowOrientation arg1(Dali::WindowOrientation::PORTRAIT);
715 instance.SetPreferredOrientation(arg1);
716 DALI_TEST_CHECK(false); // Should not get here
720 DALI_TEST_CHECK(true); // We expect an assert
725 int UtcDaliWindowRemoveAvailableOrientationNegative(void)
727 Dali::Window instance;
730 Dali::WindowOrientation arg1(Dali::WindowOrientation::PORTRAIT);
731 instance.RemoveAvailableOrientation(arg1);
732 DALI_TEST_CHECK(false); // Should not get here
736 DALI_TEST_CHECK(true); // We expect an assert
741 int UtcDaliWindowAddNegative(void)
743 Dali::Window instance;
748 DALI_TEST_CHECK(false); // Should not get here
752 DALI_TEST_CHECK(true); // We expect an assert
757 int UtcDaliWindowHideNegative(void)
759 Dali::Window instance;
763 DALI_TEST_CHECK(false); // Should not get here
767 DALI_TEST_CHECK(true); // We expect an assert
772 int UtcDaliWindowShowNegative(void)
774 Dali::Window instance;
778 DALI_TEST_CHECK(false); // Should not get here
782 DALI_TEST_CHECK(true); // We expect an assert
787 int UtcDaliWindowLowerNegative(void)
789 Dali::Window instance;
793 DALI_TEST_CHECK(false); // Should not get here
797 DALI_TEST_CHECK(true); // We expect an assert
802 int UtcDaliWindowRaiseNegative(void)
804 Dali::Window instance;
808 DALI_TEST_CHECK(false); // Should not get here
812 DALI_TEST_CHECK(true); // We expect an assert
817 int UtcDaliWindowRemoveNegative(void)
819 Dali::Window instance;
823 instance.Remove(arg1);
824 DALI_TEST_CHECK(false); // Should not get here
828 DALI_TEST_CHECK(true); // We expect an assert
833 int UtcDaliWindowSetSizeNegative(void)
835 Dali::Window instance;
838 Dali::Uint16Pair arg1;
839 instance.SetSize(arg1);
840 DALI_TEST_CHECK(false); // Should not get here
844 DALI_TEST_CHECK(true); // We expect an assert
849 int UtcDaliWindowSetTypeNegative(void)
851 Dali::Window instance;
854 Dali::WindowType arg1(Dali::WindowType::NORMAL);
855 instance.SetType(arg1);
856 DALI_TEST_CHECK(false); // Should not get here
860 DALI_TEST_CHECK(true); // We expect an assert
865 int UtcDaliWindowActivateNegative(void)
867 Dali::Window instance;
871 DALI_TEST_CHECK(false); // Should not get here
875 DALI_TEST_CHECK(true); // We expect an assert
880 int UtcDaliWindowSetClassNegative(void)
882 Dali::Window instance;
887 instance.SetClass(arg1, arg2);
888 DALI_TEST_CHECK(false); // Should not get here
892 DALI_TEST_CHECK(true); // We expect an assert
897 int UtcDaliWindowGetPositionNegative(void)
899 Dali::Window instance;
902 instance.GetPosition();
903 DALI_TEST_CHECK(false); // Should not get here
907 DALI_TEST_CHECK(true); // We expect an assert
912 int UtcDaliWindowGetRootLayerNegative(void)
914 Dali::Window instance;
917 instance.GetRootLayer();
918 DALI_TEST_CHECK(false); // Should not get here
922 DALI_TEST_CHECK(true); // We expect an assert
927 int UtcDaliWindowGetBrightnessNegative(void)
929 Dali::Window instance;
932 instance.GetBrightness();
933 DALI_TEST_CHECK(false); // Should not get here
937 DALI_TEST_CHECK(true); // We expect an assert
942 int UtcDaliWindowGetLayerCountNegative(void)
944 Dali::Window instance;
947 instance.GetLayerCount();
948 DALI_TEST_CHECK(false); // Should not get here
952 DALI_TEST_CHECK(true); // We expect an assert
957 int UtcDaliWindowIsOpaqueStateNegative(void)
959 Dali::Window instance;
962 instance.IsOpaqueState();
963 DALI_TEST_CHECK(false); // Should not get here
967 DALI_TEST_CHECK(true); // We expect an assert
972 int UtcDaliWindowGetNativeHandleNegative(void)
974 Dali::Window instance;
977 instance.GetNativeHandle();
978 DALI_TEST_CHECK(false); // Should not get here
982 DALI_TEST_CHECK(true); // We expect an assert
987 int UtcDaliWindowGetScreenOffModeNegative(void)
989 Dali::Window instance;
992 instance.GetScreenOffMode();
993 DALI_TEST_CHECK(false); // Should not get here
997 DALI_TEST_CHECK(true); // We expect an assert
1002 int UtcDaliWindowIsFocusAcceptableNegative(void)
1004 Dali::Window instance;
1007 instance.IsFocusAcceptable();
1008 DALI_TEST_CHECK(false); // Should not get here
1012 DALI_TEST_CHECK(true); // We expect an assert
1017 int UtcDaliWindowGetAuxiliaryHintIdNegative(void)
1019 Dali::Window instance;
1023 instance.GetAuxiliaryHintId(arg1);
1024 DALI_TEST_CHECK(false); // Should not get here
1028 DALI_TEST_CHECK(true); // We expect an assert
1033 int UtcDaliWindowGetBackgroundColorNegative(void)
1035 Dali::Window instance;
1038 instance.GetBackgroundColor();
1039 DALI_TEST_CHECK(false); // Should not get here
1043 DALI_TEST_CHECK(true); // We expect an assert
1048 int UtcDaliWindowGetNotificationLevelNegative(void)
1050 Dali::Window instance;
1053 instance.GetNotificationLevel();
1054 DALI_TEST_CHECK(false); // Should not get here
1058 DALI_TEST_CHECK(true); // We expect an assert
1063 int UtcDaliWindowGetAuxiliaryHintValueNegative(void)
1065 Dali::Window instance;
1068 unsigned int arg1(0u);
1069 instance.GetAuxiliaryHintValue(arg1);
1070 DALI_TEST_CHECK(false); // Should not get here
1074 DALI_TEST_CHECK(true); // We expect an assert
1079 int UtcDaliWindowGetSupportedAuxiliaryHintNegative(void)
1081 Dali::Window instance;
1084 unsigned int arg1(0u);
1085 instance.GetSupportedAuxiliaryHint(arg1);
1086 DALI_TEST_CHECK(false); // Should not get here
1090 DALI_TEST_CHECK(true); // We expect an assert
1095 int UtcDaliWindowGetSupportedAuxiliaryHintCountNegative(void)
1097 Dali::Window instance;
1100 instance.GetSupportedAuxiliaryHintCount();
1101 DALI_TEST_CHECK(false); // Should not get here
1105 DALI_TEST_CHECK(true); // We expect an assert
1110 int UtcDaliWindowGetDpiNegative(void)
1112 Dali::Window instance;
1116 DALI_TEST_CHECK(false); // Should not get here
1120 DALI_TEST_CHECK(true); // We expect an assert
1125 int UtcDaliWindowGetSizeNegative(void)
1127 Dali::Window instance;
1131 DALI_TEST_CHECK(false); // Should not get here
1135 DALI_TEST_CHECK(true); // We expect an assert
1140 int UtcDaliWindowGetTypeNegative(void)
1142 Dali::Window instance;
1146 DALI_TEST_CHECK(false); // Should not get here
1150 DALI_TEST_CHECK(true); // We expect an assert
1155 int UtcDaliWindowGetLayerNegative(void)
1157 Dali::Window instance;
1160 unsigned int arg1(0u);
1161 instance.GetLayer(arg1);
1162 DALI_TEST_CHECK(false); // Should not get here
1166 DALI_TEST_CHECK(true); // We expect an assert
1171 int UtcDaliWindowIsVisibleNegative(void)
1173 Dali::Window instance;
1176 instance.IsVisible();
1177 DALI_TEST_CHECK(false); // Should not get here
1181 DALI_TEST_CHECK(true); // We expect an assert
1186 int UtcDaliWindowGetNativeIdNegative(void)
1191 DevelWindow::GetNativeId(arg1);
1192 DALI_TEST_CHECK(false); // Should not get here
1196 DALI_TEST_CHECK(true); // We expect an assert
1201 int UtcDaliWindowSetPositionSizeNegative(void)
1206 Dali::Rect<int> arg2;
1207 DevelWindow::SetPositionSize(arg1, arg2);
1208 DALI_TEST_CHECK(false); // Should not get here
1212 DALI_TEST_CHECK(true); // We expect an assert
1217 int UtcDaliWindowWheelEventSignalNegative(void)
1222 DevelWindow::WheelEventSignal(arg1);
1223 DALI_TEST_CHECK(false); // Should not get here
1227 DALI_TEST_CHECK(true); // We expect an assert
1232 int UtcDaliWindowGetCurrentOrientationNegative(void)
1237 DevelWindow::GetCurrentOrientation(arg1);
1238 DALI_TEST_CHECK(false); // Should not get here
1242 DALI_TEST_CHECK(true); // We expect an assert
1247 int UtcDaliWindowGetPhysicalOrientationNegative(void)
1252 DevelWindow::GetPhysicalOrientation(arg1);
1253 DALI_TEST_CHECK(false); // Should not get here
1257 DALI_TEST_CHECK(true); // We expect an assert
1262 int UtcDaliWindowVisibilityChangedSignalNegative(void)
1267 DevelWindow::VisibilityChangedSignal(arg1);
1268 DALI_TEST_CHECK(false); // Should not get here
1272 DALI_TEST_CHECK(true); // We expect an assert
1277 int UtcDaliWindowAddFrameRenderedCallbackNegative(void)
1282 std::unique_ptr<Dali::CallbackBase> arg2;
1284 DevelWindow::AddFrameRenderedCallback(arg1, std::move(arg2), arg3);
1285 DALI_TEST_CHECK(false); // Should not get here
1289 DALI_TEST_CHECK(true); // We expect an assert
1294 int UtcDaliWindowSetAvailableOrientationsNegative(void)
1299 Dali::Vector<Dali::WindowOrientation> arg2;
1300 DevelWindow::SetAvailableOrientations(arg1, arg2);
1301 DALI_TEST_CHECK(false); // Should not get here
1305 DALI_TEST_CHECK(true); // We expect an assert
1310 int UtcDaliWindowAddFramePresentedCallbackNegative(void)
1315 std::unique_ptr<Dali::CallbackBase> arg2;
1317 DevelWindow::AddFramePresentedCallback(arg1, std::move(arg2), arg3);
1318 DALI_TEST_CHECK(false); // Should not get here
1322 DALI_TEST_CHECK(true); // We expect an assert
1327 int UtcDaliWindowTransitionEffectEventSignalNegative(void)
1332 DevelWindow::TransitionEffectEventSignal(arg1);
1333 DALI_TEST_CHECK(false); // Should not get here
1337 DALI_TEST_CHECK(true); // We expect an assert
1342 int UtcDaliWindowEventProcessingFinishedSignalNegative(void)
1347 DevelWindow::EventProcessingFinishedSignal(arg1);
1348 DALI_TEST_CHECK(false); // Should not get here
1352 DALI_TEST_CHECK(true); // We expect an assert
1357 int UtcDaliWindowKeyboardRepeatSettingsChangedSignalNegative(void)
1362 DevelWindow::KeyboardRepeatSettingsChangedSignal(arg1);
1363 DALI_TEST_CHECK(false); // Should not get here
1367 DALI_TEST_CHECK(true); // We expect an assert
1372 int UtcDaliWindowUnparentNegative(void)
1377 DevelWindow::Unparent(arg1);
1378 DALI_TEST_CHECK(false); // Should not get here
1382 DALI_TEST_CHECK(true); // We expect an assert
1387 int UtcDaliWindowGetParentNegative(void)
1392 DevelWindow::GetParent(arg1);
1393 DALI_TEST_CHECK(false); // Should not get here
1397 DALI_TEST_CHECK(true); // We expect an assert
1402 int UtcDaliWindowSetParentNegative(void)
1408 DevelWindow::SetParent(arg1, arg2);
1409 DALI_TEST_CHECK(false); // Should not get here
1413 DALI_TEST_CHECK(true); // We expect an assert
1418 int UtcDaliWindowSetParentWithBelowParentNegative(void)
1424 DevelWindow::SetParent(arg1, arg2, true);
1425 DALI_TEST_CHECK(false); // Should not get here
1429 DALI_TEST_CHECK(true); // We expect an assert
1434 int UtcDaliWindowAddInputRegion(void)
1436 Dali::Window instance;
1439 Rect<int> includedInputRegion(0,0,720,640);
1440 DevelWindow::IncludeInputRegion(instance, includedInputRegion);
1441 DALI_TEST_CHECK(false); // Should not get here
1445 DALI_TEST_CHECK(true); // We expect an assert
1450 int UtcDaliWindowSubtractInputRegion(void)
1452 Dali::Window instance;
1455 Rect<int> includedInputRegion(0,0,720,1280);
1456 DevelWindow::IncludeInputRegion(instance, includedInputRegion);
1458 Rect<int> excludedInputRegion(0,641,720,640);
1459 DevelWindow::ExcludeInputRegion(instance, excludedInputRegion);
1461 DALI_TEST_CHECK(false); // Should not get here
1465 DALI_TEST_CHECK(true); // We expect an assert
1471 int UtcDaliWindowSetNeedsRotationCompletedAcknowledgementNegative(void)
1476 DevelWindow::SetNeedsRotationCompletedAcknowledgement(arg1, true);
1477 DALI_TEST_CHECK(false); // Should not get here
1481 DALI_TEST_CHECK(true); // We expect an assert
1486 int UtcDaliWindowUnsetNeedsRotationCompletedAcknowledgementNegative(void)
1491 DevelWindow::SetNeedsRotationCompletedAcknowledgement(arg1, false);
1492 DALI_TEST_CHECK(false); // Should not get here
1496 DALI_TEST_CHECK(true); // We expect an assert
1501 int UtcDaliWindowSendRotationCompletedAcknowledgementNegative(void)
1506 DevelWindow::SendRotationCompletedAcknowledgement(arg1);
1508 DALI_TEST_CHECK(false); // Should not get here
1512 DALI_TEST_CHECK(true); // We expect an assert