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 UtcDaliWindowSetMaximumSizeN(void)
237 Dali::Window instance;
238 Dali::Window::WindowSize size(100, 100);
239 DevelWindow::SetMaximumSize(instance, size);
240 DALI_TEST_CHECK(false); // Should not reach here!
244 DALI_TEST_CHECK(true);
250 int UtcDaliWindowMinimizeN(void)
254 Dali::Window instance;
255 DevelWindow::Minimize(instance, true);
256 DALI_TEST_CHECK(false); // Should not reach here!
260 DALI_TEST_CHECK(true);
266 int UtcDaliWindowIsMinimizedN(void)
270 Dali::Window instance;
271 DevelWindow::IsMinimized(instance);
272 DALI_TEST_CHECK(false); // Should not reach here!
276 DALI_TEST_CHECK(true);
282 int UtcDaliWindowSetMimimumSizeN(void)
286 Dali::Window instance;
287 Dali::Window::WindowSize size(100, 100);
288 DevelWindow::SetMimimumSize(instance, size);
289 DALI_TEST_CHECK(false); // Should not reach here!
293 DALI_TEST_CHECK(true);
299 int UtcDaliWindowAddAvailableOrientationN(void)
304 window.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
305 DALI_TEST_CHECK(false); // Should not reach here!
309 DALI_TEST_CHECK(true);
315 int UtcDaliWindowRemoveAvailableOrientationN(void)
320 window.RemoveAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
321 DALI_TEST_CHECK(false); // Should not reach here!
325 DALI_TEST_CHECK(true);
331 int UtcDaliWindowSetPreferredOrientationN(void)
336 window.SetPreferredOrientation(Dali::WindowOrientation::PORTRAIT);
337 DALI_TEST_CHECK(false); // Should not reach here!
341 DALI_TEST_CHECK(true);
347 int UtcDaliWindowGetPreferredOrientationN(void)
352 Dali::WindowOrientation orientation = window.GetPreferredOrientation();
353 DALI_TEST_CHECK(orientation == Dali::WindowOrientation::PORTRAIT); // Should not reach here!
357 DALI_TEST_CHECK(true);
363 int UtcDaliWindowSetPositionSizeWithOrientationN(void)
368 DevelWindow::SetPositionSizeWithOrientation(window, PositionSize(0, 0, 200, 100), Dali::WindowOrientation::PORTRAIT);
369 DALI_TEST_CHECK(false); // Should not reach here!
373 DALI_TEST_CHECK(true);
379 int UtcDaliWindowGetNativeHandleN(void)
384 Dali::Any handle = window.GetNativeHandle();
385 DALI_TEST_CHECK(false); // Should not reach here!
389 DALI_TEST_CHECK(true);
395 int UtcDaliWindowSetAcceptFocusN(void)
400 window.SetAcceptFocus(true);
401 DALI_TEST_CHECK(false); // Should not reach here!
405 DALI_TEST_CHECK(true);
411 int UtcDaliWindowIsFocusAcceptableN(void)
416 window.IsFocusAcceptable();
417 DALI_TEST_CHECK(false); // Should not reach here!
421 DALI_TEST_CHECK(true);
427 int UtcDaliWindowFocusChangeSignalN(void)
432 window.FocusChangeSignal();
433 DALI_TEST_CHECK(false); // Should not reach here!
437 DALI_TEST_CHECK(true);
443 int UtcDaliWindowSetPositionNegative(void)
445 Dali::Window instance;
448 Dali::Window::WindowPosition arg1;
449 instance.SetPosition(arg1);
450 DALI_TEST_CHECK(false); // Should not get here
454 DALI_TEST_CHECK(true); // We expect an assert
459 int UtcDaliWindowResizeSignalNegative(void)
461 Dali::Window instance;
464 instance.ResizeSignal();
465 DALI_TEST_CHECK(false); // Should not get here
469 DALI_TEST_CHECK(true); // We expect an assert
474 int UtcDaliWindowSetBrightnessNegative(void)
476 Dali::Window instance;
480 instance.SetBrightness(arg1);
481 DALI_TEST_CHECK(false); // Should not get here
485 DALI_TEST_CHECK(true); // We expect an assert
490 int UtcDaliWindowTouchedSignalNegative(void)
492 Dali::Window instance;
495 instance.TouchedSignal();
496 DALI_TEST_CHECK(false); // Should not get here
500 DALI_TEST_CHECK(true); // We expect an assert
505 int UtcDaliWindowKeyEventSignalNegative(void)
507 Dali::Window instance;
510 instance.KeyEventSignal();
511 DALI_TEST_CHECK(false); // Should not get here
515 DALI_TEST_CHECK(true); // We expect an assert
520 int UtcDaliWindowSetAcceptFocusNegative(void)
522 Dali::Window instance;
526 instance.SetAcceptFocus(arg1);
527 DALI_TEST_CHECK(false); // Should not get here
531 DALI_TEST_CHECK(true); // We expect an assert
536 int UtcDaliWindowSetInputRegionNegative(void)
538 Dali::Window instance;
541 Dali::Rect<int> arg1;
542 instance.SetInputRegion(arg1);
543 DALI_TEST_CHECK(false); // Should not get here
547 DALI_TEST_CHECK(true); // We expect an assert
552 int UtcDaliWindowSetOpaqueStateNegative(void)
554 Dali::Window instance;
558 instance.SetOpaqueState(arg1);
559 DALI_TEST_CHECK(false); // Should not get here
563 DALI_TEST_CHECK(true); // We expect an assert
568 int UtcDaliWindowSetTransparencyNegative(void)
570 Dali::Window instance;
574 instance.SetTransparency(arg1);
575 DALI_TEST_CHECK(false); // Should not get here
579 DALI_TEST_CHECK(true); // We expect an assert
584 int UtcDaliWindowAddAuxiliaryHintNegative(void)
586 Dali::Window instance;
591 instance.AddAuxiliaryHint(arg1, arg2);
592 DALI_TEST_CHECK(false); // Should not get here
596 DALI_TEST_CHECK(true); // We expect an assert
601 int UtcDaliWindowSetScreenOffModeNegative(void)
603 Dali::Window instance;
606 Dali::WindowScreenOffMode arg1(Dali::WindowScreenOffMode::NEVER);
607 instance.SetScreenOffMode(arg1);
608 DALI_TEST_CHECK(false); // Should not get here
612 DALI_TEST_CHECK(true); // We expect an assert
617 int UtcDaliWindowFocusChangeSignalNegative(void)
619 Dali::Window instance;
622 instance.FocusChangeSignal();
623 DALI_TEST_CHECK(false); // Should not get here
627 DALI_TEST_CHECK(true); // We expect an assert
632 int UtcDaliWindowGetRenderTaskListNegative(void)
634 Dali::Window instance;
637 instance.GetRenderTaskList();
638 DALI_TEST_CHECK(false); // Should not get here
642 DALI_TEST_CHECK(true); // We expect an assert
647 int UtcDaliWindowSetBackgroundColorNegative(void)
649 Dali::Window instance;
653 instance.SetBackgroundColor(arg1);
654 DALI_TEST_CHECK(false); // Should not get here
658 DALI_TEST_CHECK(true); // We expect an assert
663 int UtcDaliWindowRemoveAuxiliaryHintNegative(void)
665 Dali::Window instance;
668 unsigned int arg1(0u);
669 instance.RemoveAuxiliaryHint(arg1);
670 DALI_TEST_CHECK(false); // Should not get here
674 DALI_TEST_CHECK(true); // We expect an assert
679 int UtcDaliWindowSetNotificationLevelNegative(void)
681 Dali::Window instance;
684 Dali::WindowNotificationLevel arg1(Dali::WindowNotificationLevel::NONE);
685 instance.SetNotificationLevel(arg1);
686 DALI_TEST_CHECK(false); // Should not get here
690 DALI_TEST_CHECK(true); // We expect an assert
695 int UtcDaliWindowSetAuxiliaryHintValueNegative(void)
697 Dali::Window instance;
700 unsigned int arg1(0u);
702 instance.SetAuxiliaryHintValue(arg1, arg2);
703 DALI_TEST_CHECK(false); // Should not get here
707 DALI_TEST_CHECK(true); // We expect an assert
712 int UtcDaliWindowAddAvailableOrientationNegative(void)
714 Dali::Window instance;
717 Dali::WindowOrientation arg1(Dali::WindowOrientation::PORTRAIT);
718 instance.AddAvailableOrientation(arg1);
719 DALI_TEST_CHECK(false); // Should not get here
723 DALI_TEST_CHECK(true); // We expect an assert
728 int UtcDaliWindowGetPreferredOrientationNegative(void)
730 Dali::Window instance;
733 instance.GetPreferredOrientation();
734 DALI_TEST_CHECK(false); // Should not get here
738 DALI_TEST_CHECK(true); // We expect an assert
743 int UtcDaliWindowSetPreferredOrientationNegative(void)
745 Dali::Window instance;
748 Dali::WindowOrientation arg1(Dali::WindowOrientation::PORTRAIT);
749 instance.SetPreferredOrientation(arg1);
750 DALI_TEST_CHECK(false); // Should not get here
754 DALI_TEST_CHECK(true); // We expect an assert
759 int UtcDaliWindowRemoveAvailableOrientationNegative(void)
761 Dali::Window instance;
764 Dali::WindowOrientation arg1(Dali::WindowOrientation::PORTRAIT);
765 instance.RemoveAvailableOrientation(arg1);
766 DALI_TEST_CHECK(false); // Should not get here
770 DALI_TEST_CHECK(true); // We expect an assert
775 int UtcDaliWindowAddNegative(void)
777 Dali::Window instance;
782 DALI_TEST_CHECK(false); // Should not get here
786 DALI_TEST_CHECK(true); // We expect an assert
791 int UtcDaliWindowHideNegative(void)
793 Dali::Window instance;
797 DALI_TEST_CHECK(false); // Should not get here
801 DALI_TEST_CHECK(true); // We expect an assert
806 int UtcDaliWindowShowNegative(void)
808 Dali::Window instance;
812 DALI_TEST_CHECK(false); // Should not get here
816 DALI_TEST_CHECK(true); // We expect an assert
821 int UtcDaliWindowLowerNegative(void)
823 Dali::Window instance;
827 DALI_TEST_CHECK(false); // Should not get here
831 DALI_TEST_CHECK(true); // We expect an assert
836 int UtcDaliWindowRaiseNegative(void)
838 Dali::Window instance;
842 DALI_TEST_CHECK(false); // Should not get here
846 DALI_TEST_CHECK(true); // We expect an assert
851 int UtcDaliWindowRemoveNegative(void)
853 Dali::Window instance;
857 instance.Remove(arg1);
858 DALI_TEST_CHECK(false); // Should not get here
862 DALI_TEST_CHECK(true); // We expect an assert
867 int UtcDaliWindowSetSizeNegative(void)
869 Dali::Window instance;
872 Dali::Uint16Pair arg1;
873 instance.SetSize(arg1);
874 DALI_TEST_CHECK(false); // Should not get here
878 DALI_TEST_CHECK(true); // We expect an assert
883 int UtcDaliWindowSetTypeNegative(void)
885 Dali::Window instance;
888 Dali::WindowType arg1(Dali::WindowType::NORMAL);
889 instance.SetType(arg1);
890 DALI_TEST_CHECK(false); // Should not get here
894 DALI_TEST_CHECK(true); // We expect an assert
899 int UtcDaliWindowActivateNegative(void)
901 Dali::Window instance;
905 DALI_TEST_CHECK(false); // Should not get here
909 DALI_TEST_CHECK(true); // We expect an assert
914 int UtcDaliWindowSetClassNegative(void)
916 Dali::Window instance;
921 instance.SetClass(arg1, arg2);
922 DALI_TEST_CHECK(false); // Should not get here
926 DALI_TEST_CHECK(true); // We expect an assert
931 int UtcDaliWindowGetPositionNegative(void)
933 Dali::Window instance;
936 instance.GetPosition();
937 DALI_TEST_CHECK(false); // Should not get here
941 DALI_TEST_CHECK(true); // We expect an assert
946 int UtcDaliWindowSetLayoutNegative(void)
948 Dali::Window instance;
951 unsigned int arg1(0);
952 instance.SetLayout(arg1, arg1, arg1, arg1, arg1, arg1);
953 DALI_TEST_CHECK(false); // Should not get here
957 DALI_TEST_CHECK(true); // We expect an assert
962 int UtcDaliWindowGetRootLayerNegative(void)
964 Dali::Window instance;
967 instance.GetRootLayer();
968 DALI_TEST_CHECK(false); // Should not get here
972 DALI_TEST_CHECK(true); // We expect an assert
977 int UtcDaliWindowGetBrightnessNegative(void)
979 Dali::Window instance;
982 instance.GetBrightness();
983 DALI_TEST_CHECK(false); // Should not get here
987 DALI_TEST_CHECK(true); // We expect an assert
992 int UtcDaliWindowGetLayerCountNegative(void)
994 Dali::Window instance;
997 instance.GetLayerCount();
998 DALI_TEST_CHECK(false); // Should not get here
1002 DALI_TEST_CHECK(true); // We expect an assert
1007 int UtcDaliWindowIsOpaqueStateNegative(void)
1009 Dali::Window instance;
1012 instance.IsOpaqueState();
1013 DALI_TEST_CHECK(false); // Should not get here
1017 DALI_TEST_CHECK(true); // We expect an assert
1022 int UtcDaliWindowGetNativeHandleNegative(void)
1024 Dali::Window instance;
1027 instance.GetNativeHandle();
1028 DALI_TEST_CHECK(false); // Should not get here
1032 DALI_TEST_CHECK(true); // We expect an assert
1037 int UtcDaliWindowGetScreenOffModeNegative(void)
1039 Dali::Window instance;
1042 instance.GetScreenOffMode();
1043 DALI_TEST_CHECK(false); // Should not get here
1047 DALI_TEST_CHECK(true); // We expect an assert
1052 int UtcDaliWindowIsFocusAcceptableNegative(void)
1054 Dali::Window instance;
1057 instance.IsFocusAcceptable();
1058 DALI_TEST_CHECK(false); // Should not get here
1062 DALI_TEST_CHECK(true); // We expect an assert
1067 int UtcDaliWindowGetAuxiliaryHintIdNegative(void)
1069 Dali::Window instance;
1073 instance.GetAuxiliaryHintId(arg1);
1074 DALI_TEST_CHECK(false); // Should not get here
1078 DALI_TEST_CHECK(true); // We expect an assert
1083 int UtcDaliWindowGetBackgroundColorNegative(void)
1085 Dali::Window instance;
1088 instance.GetBackgroundColor();
1089 DALI_TEST_CHECK(false); // Should not get here
1093 DALI_TEST_CHECK(true); // We expect an assert
1098 int UtcDaliWindowGetNotificationLevelNegative(void)
1100 Dali::Window instance;
1103 instance.GetNotificationLevel();
1104 DALI_TEST_CHECK(false); // Should not get here
1108 DALI_TEST_CHECK(true); // We expect an assert
1113 int UtcDaliWindowGetAuxiliaryHintValueNegative(void)
1115 Dali::Window instance;
1118 unsigned int arg1(0u);
1119 instance.GetAuxiliaryHintValue(arg1);
1120 DALI_TEST_CHECK(false); // Should not get here
1124 DALI_TEST_CHECK(true); // We expect an assert
1129 int UtcDaliWindowGetSupportedAuxiliaryHintNegative(void)
1131 Dali::Window instance;
1134 unsigned int arg1(0u);
1135 instance.GetSupportedAuxiliaryHint(arg1);
1136 DALI_TEST_CHECK(false); // Should not get here
1140 DALI_TEST_CHECK(true); // We expect an assert
1145 int UtcDaliWindowGetSupportedAuxiliaryHintCountNegative(void)
1147 Dali::Window instance;
1150 instance.GetSupportedAuxiliaryHintCount();
1151 DALI_TEST_CHECK(false); // Should not get here
1155 DALI_TEST_CHECK(true); // We expect an assert
1160 int UtcDaliWindowGetDpiNegative(void)
1162 Dali::Window instance;
1166 DALI_TEST_CHECK(false); // Should not get here
1170 DALI_TEST_CHECK(true); // We expect an assert
1175 int UtcDaliWindowGetSizeNegative(void)
1177 Dali::Window instance;
1181 DALI_TEST_CHECK(false); // Should not get here
1185 DALI_TEST_CHECK(true); // We expect an assert
1190 int UtcDaliWindowGetTypeNegative(void)
1192 Dali::Window instance;
1196 DALI_TEST_CHECK(false); // Should not get here
1200 DALI_TEST_CHECK(true); // We expect an assert
1205 int UtcDaliWindowGetLayerNegative(void)
1207 Dali::Window instance;
1210 unsigned int arg1(0u);
1211 instance.GetLayer(arg1);
1212 DALI_TEST_CHECK(false); // Should not get here
1216 DALI_TEST_CHECK(true); // We expect an assert
1221 int UtcDaliWindowIsVisibleNegative(void)
1223 Dali::Window instance;
1226 instance.IsVisible();
1227 DALI_TEST_CHECK(false); // Should not get here
1231 DALI_TEST_CHECK(true); // We expect an assert
1236 int UtcDaliWindowGetNativeIdNegative(void)
1241 DevelWindow::GetNativeId(arg1);
1242 DALI_TEST_CHECK(false); // Should not get here
1246 DALI_TEST_CHECK(true); // We expect an assert
1251 int UtcDaliWindowSetPositionSizeNegative(void)
1256 Dali::Rect<int> arg2;
1257 DevelWindow::SetPositionSize(arg1, arg2);
1258 DALI_TEST_CHECK(false); // Should not get here
1262 DALI_TEST_CHECK(true); // We expect an assert
1267 int UtcDaliWindowWheelEventSignalNegative(void)
1272 DevelWindow::WheelEventSignal(arg1);
1273 DALI_TEST_CHECK(false); // Should not get here
1277 DALI_TEST_CHECK(true); // We expect an assert
1282 int UtcDaliWindowGetCurrentOrientationNegative(void)
1287 DevelWindow::GetCurrentOrientation(arg1);
1288 DALI_TEST_CHECK(false); // Should not get here
1292 DALI_TEST_CHECK(true); // We expect an assert
1297 int UtcDaliWindowGetPhysicalOrientationNegative(void)
1302 DevelWindow::GetPhysicalOrientation(arg1);
1303 DALI_TEST_CHECK(false); // Should not get here
1307 DALI_TEST_CHECK(true); // We expect an assert
1312 int UtcDaliWindowVisibilityChangedSignalNegative(void)
1317 DevelWindow::VisibilityChangedSignal(arg1);
1318 DALI_TEST_CHECK(false); // Should not get here
1322 DALI_TEST_CHECK(true); // We expect an assert
1327 int UtcDaliWindowAddFrameRenderedCallbackNegative(void)
1332 std::unique_ptr<Dali::CallbackBase> arg2;
1334 DevelWindow::AddFrameRenderedCallback(arg1, std::move(arg2), arg3);
1335 DALI_TEST_CHECK(false); // Should not get here
1339 DALI_TEST_CHECK(true); // We expect an assert
1344 int UtcDaliWindowSetAvailableOrientationsNegative(void)
1349 Dali::Vector<Dali::WindowOrientation> arg2;
1350 DevelWindow::SetAvailableOrientations(arg1, arg2);
1351 DALI_TEST_CHECK(false); // Should not get here
1355 DALI_TEST_CHECK(true); // We expect an assert
1360 int UtcDaliWindowAddFramePresentedCallbackNegative(void)
1365 std::unique_ptr<Dali::CallbackBase> arg2;
1367 DevelWindow::AddFramePresentedCallback(arg1, std::move(arg2), arg3);
1368 DALI_TEST_CHECK(false); // Should not get here
1372 DALI_TEST_CHECK(true); // We expect an assert
1377 int UtcDaliWindowTransitionEffectEventSignalNegative(void)
1382 DevelWindow::TransitionEffectEventSignal(arg1);
1383 DALI_TEST_CHECK(false); // Should not get here
1387 DALI_TEST_CHECK(true); // We expect an assert
1392 int UtcDaliWindowEventProcessingFinishedSignalNegative(void)
1397 DevelWindow::EventProcessingFinishedSignal(arg1);
1398 DALI_TEST_CHECK(false); // Should not get here
1402 DALI_TEST_CHECK(true); // We expect an assert
1407 int UtcDaliWindowKeyboardRepeatSettingsChangedSignalNegative(void)
1412 DevelWindow::KeyboardRepeatSettingsChangedSignal(arg1);
1413 DALI_TEST_CHECK(false); // Should not get here
1417 DALI_TEST_CHECK(true); // We expect an assert
1422 int UtcDaliWindowUnparentNegative(void)
1427 DevelWindow::Unparent(arg1);
1428 DALI_TEST_CHECK(false); // Should not get here
1432 DALI_TEST_CHECK(true); // We expect an assert
1437 int UtcDaliWindowGetParentNegative(void)
1442 DevelWindow::GetParent(arg1);
1443 DALI_TEST_CHECK(false); // Should not get here
1447 DALI_TEST_CHECK(true); // We expect an assert
1452 int UtcDaliWindowSetParentNegative(void)
1458 DevelWindow::SetParent(arg1, arg2);
1459 DALI_TEST_CHECK(false); // Should not get here
1463 DALI_TEST_CHECK(true); // We expect an assert
1468 int UtcDaliWindowSetParentWithBelowParentNegative(void)
1474 DevelWindow::SetParent(arg1, arg2, true);
1475 DALI_TEST_CHECK(false); // Should not get here
1479 DALI_TEST_CHECK(true); // We expect an assert
1484 int UtcDaliWindowAddInputRegion(void)
1486 Dali::Window instance;
1489 Rect<int> includedInputRegion(0, 0, 720, 640);
1490 DevelWindow::IncludeInputRegion(instance, includedInputRegion);
1491 DALI_TEST_CHECK(false); // Should not get here
1495 DALI_TEST_CHECK(true); // We expect an assert
1500 int UtcDaliWindowSubtractInputRegion(void)
1502 Dali::Window instance;
1505 Rect<int> includedInputRegion(0, 0, 720, 1280);
1506 DevelWindow::IncludeInputRegion(instance, includedInputRegion);
1508 Rect<int> excludedInputRegion(0, 641, 720, 640);
1509 DevelWindow::ExcludeInputRegion(instance, excludedInputRegion);
1511 DALI_TEST_CHECK(false); // Should not get here
1515 DALI_TEST_CHECK(true); // We expect an assert
1520 int UtcDaliWindowSetNeedsRotationCompletedAcknowledgementNegative(void)
1525 DevelWindow::SetNeedsRotationCompletedAcknowledgement(arg1, true);
1526 DALI_TEST_CHECK(false); // Should not get here
1530 DALI_TEST_CHECK(true); // We expect an assert
1535 int UtcDaliWindowUnsetNeedsRotationCompletedAcknowledgementNegative(void)
1540 DevelWindow::SetNeedsRotationCompletedAcknowledgement(arg1, false);
1541 DALI_TEST_CHECK(false); // Should not get here
1545 DALI_TEST_CHECK(true); // We expect an assert
1550 int UtcDaliWindowSendRotationCompletedAcknowledgementNegative(void)
1555 DevelWindow::SendRotationCompletedAcknowledgement(arg1);
1557 DALI_TEST_CHECK(false); // Should not get here
1561 DALI_TEST_CHECK(true); // We expect an assert
1566 int UtcDaliWindowMovedSignalNegative(void)
1568 Dali::Window instance;
1571 DevelWindow::MovedSignal(instance);
1572 DALI_TEST_CHECK(false); // Should not get here
1576 DALI_TEST_CHECK(true); // We expect an assert
1581 int UtcDaliWindowOrientationChangedSignalNegative(void)
1583 Dali::Window instance;
1586 DevelWindow::OrientationChangedSignal(instance);
1587 DALI_TEST_CHECK(false); // Should not get here
1591 DALI_TEST_CHECK(true); // We expect an assert