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::Uint16Pair 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 UtcDaliWindowGetRootLayerNegative(void)
948 Dali::Window instance;
951 instance.GetRootLayer();
952 DALI_TEST_CHECK(false); // Should not get here
956 DALI_TEST_CHECK(true); // We expect an assert
961 int UtcDaliWindowGetBrightnessNegative(void)
963 Dali::Window instance;
966 instance.GetBrightness();
967 DALI_TEST_CHECK(false); // Should not get here
971 DALI_TEST_CHECK(true); // We expect an assert
976 int UtcDaliWindowGetLayerCountNegative(void)
978 Dali::Window instance;
981 instance.GetLayerCount();
982 DALI_TEST_CHECK(false); // Should not get here
986 DALI_TEST_CHECK(true); // We expect an assert
991 int UtcDaliWindowIsOpaqueStateNegative(void)
993 Dali::Window instance;
996 instance.IsOpaqueState();
997 DALI_TEST_CHECK(false); // Should not get here
1001 DALI_TEST_CHECK(true); // We expect an assert
1006 int UtcDaliWindowGetNativeHandleNegative(void)
1008 Dali::Window instance;
1011 instance.GetNativeHandle();
1012 DALI_TEST_CHECK(false); // Should not get here
1016 DALI_TEST_CHECK(true); // We expect an assert
1021 int UtcDaliWindowGetScreenOffModeNegative(void)
1023 Dali::Window instance;
1026 instance.GetScreenOffMode();
1027 DALI_TEST_CHECK(false); // Should not get here
1031 DALI_TEST_CHECK(true); // We expect an assert
1036 int UtcDaliWindowIsFocusAcceptableNegative(void)
1038 Dali::Window instance;
1041 instance.IsFocusAcceptable();
1042 DALI_TEST_CHECK(false); // Should not get here
1046 DALI_TEST_CHECK(true); // We expect an assert
1051 int UtcDaliWindowGetAuxiliaryHintIdNegative(void)
1053 Dali::Window instance;
1057 instance.GetAuxiliaryHintId(arg1);
1058 DALI_TEST_CHECK(false); // Should not get here
1062 DALI_TEST_CHECK(true); // We expect an assert
1067 int UtcDaliWindowGetBackgroundColorNegative(void)
1069 Dali::Window instance;
1072 instance.GetBackgroundColor();
1073 DALI_TEST_CHECK(false); // Should not get here
1077 DALI_TEST_CHECK(true); // We expect an assert
1082 int UtcDaliWindowGetNotificationLevelNegative(void)
1084 Dali::Window instance;
1087 instance.GetNotificationLevel();
1088 DALI_TEST_CHECK(false); // Should not get here
1092 DALI_TEST_CHECK(true); // We expect an assert
1097 int UtcDaliWindowGetAuxiliaryHintValueNegative(void)
1099 Dali::Window instance;
1102 unsigned int arg1(0u);
1103 instance.GetAuxiliaryHintValue(arg1);
1104 DALI_TEST_CHECK(false); // Should not get here
1108 DALI_TEST_CHECK(true); // We expect an assert
1113 int UtcDaliWindowGetSupportedAuxiliaryHintNegative(void)
1115 Dali::Window instance;
1118 unsigned int arg1(0u);
1119 instance.GetSupportedAuxiliaryHint(arg1);
1120 DALI_TEST_CHECK(false); // Should not get here
1124 DALI_TEST_CHECK(true); // We expect an assert
1129 int UtcDaliWindowGetSupportedAuxiliaryHintCountNegative(void)
1131 Dali::Window instance;
1134 instance.GetSupportedAuxiliaryHintCount();
1135 DALI_TEST_CHECK(false); // Should not get here
1139 DALI_TEST_CHECK(true); // We expect an assert
1144 int UtcDaliWindowGetDpiNegative(void)
1146 Dali::Window instance;
1150 DALI_TEST_CHECK(false); // Should not get here
1154 DALI_TEST_CHECK(true); // We expect an assert
1159 int UtcDaliWindowGetSizeNegative(void)
1161 Dali::Window instance;
1165 DALI_TEST_CHECK(false); // Should not get here
1169 DALI_TEST_CHECK(true); // We expect an assert
1174 int UtcDaliWindowGetTypeNegative(void)
1176 Dali::Window instance;
1180 DALI_TEST_CHECK(false); // Should not get here
1184 DALI_TEST_CHECK(true); // We expect an assert
1189 int UtcDaliWindowGetLayerNegative(void)
1191 Dali::Window instance;
1194 unsigned int arg1(0u);
1195 instance.GetLayer(arg1);
1196 DALI_TEST_CHECK(false); // Should not get here
1200 DALI_TEST_CHECK(true); // We expect an assert
1205 int UtcDaliWindowIsVisibleNegative(void)
1207 Dali::Window instance;
1210 instance.IsVisible();
1211 DALI_TEST_CHECK(false); // Should not get here
1215 DALI_TEST_CHECK(true); // We expect an assert
1220 int UtcDaliWindowGetNativeIdNegative(void)
1225 DevelWindow::GetNativeId(arg1);
1226 DALI_TEST_CHECK(false); // Should not get here
1230 DALI_TEST_CHECK(true); // We expect an assert
1235 int UtcDaliWindowSetPositionSizeNegative(void)
1240 Dali::Rect<int> arg2;
1241 DevelWindow::SetPositionSize(arg1, arg2);
1242 DALI_TEST_CHECK(false); // Should not get here
1246 DALI_TEST_CHECK(true); // We expect an assert
1251 int UtcDaliWindowWheelEventSignalNegative(void)
1256 DevelWindow::WheelEventSignal(arg1);
1257 DALI_TEST_CHECK(false); // Should not get here
1261 DALI_TEST_CHECK(true); // We expect an assert
1266 int UtcDaliWindowGetCurrentOrientationNegative(void)
1271 DevelWindow::GetCurrentOrientation(arg1);
1272 DALI_TEST_CHECK(false); // Should not get here
1276 DALI_TEST_CHECK(true); // We expect an assert
1281 int UtcDaliWindowGetPhysicalOrientationNegative(void)
1286 DevelWindow::GetPhysicalOrientation(arg1);
1287 DALI_TEST_CHECK(false); // Should not get here
1291 DALI_TEST_CHECK(true); // We expect an assert
1296 int UtcDaliWindowVisibilityChangedSignalNegative(void)
1301 DevelWindow::VisibilityChangedSignal(arg1);
1302 DALI_TEST_CHECK(false); // Should not get here
1306 DALI_TEST_CHECK(true); // We expect an assert
1311 int UtcDaliWindowAddFrameRenderedCallbackNegative(void)
1316 std::unique_ptr<Dali::CallbackBase> arg2;
1318 DevelWindow::AddFrameRenderedCallback(arg1, std::move(arg2), arg3);
1319 DALI_TEST_CHECK(false); // Should not get here
1323 DALI_TEST_CHECK(true); // We expect an assert
1328 int UtcDaliWindowSetAvailableOrientationsNegative(void)
1333 Dali::Vector<Dali::WindowOrientation> arg2;
1334 DevelWindow::SetAvailableOrientations(arg1, arg2);
1335 DALI_TEST_CHECK(false); // Should not get here
1339 DALI_TEST_CHECK(true); // We expect an assert
1344 int UtcDaliWindowAddFramePresentedCallbackNegative(void)
1349 std::unique_ptr<Dali::CallbackBase> arg2;
1351 DevelWindow::AddFramePresentedCallback(arg1, std::move(arg2), arg3);
1352 DALI_TEST_CHECK(false); // Should not get here
1356 DALI_TEST_CHECK(true); // We expect an assert
1361 int UtcDaliWindowTransitionEffectEventSignalNegative(void)
1366 DevelWindow::TransitionEffectEventSignal(arg1);
1367 DALI_TEST_CHECK(false); // Should not get here
1371 DALI_TEST_CHECK(true); // We expect an assert
1376 int UtcDaliWindowEventProcessingFinishedSignalNegative(void)
1381 DevelWindow::EventProcessingFinishedSignal(arg1);
1382 DALI_TEST_CHECK(false); // Should not get here
1386 DALI_TEST_CHECK(true); // We expect an assert
1391 int UtcDaliWindowKeyboardRepeatSettingsChangedSignalNegative(void)
1396 DevelWindow::KeyboardRepeatSettingsChangedSignal(arg1);
1397 DALI_TEST_CHECK(false); // Should not get here
1401 DALI_TEST_CHECK(true); // We expect an assert
1406 int UtcDaliWindowUnparentNegative(void)
1411 DevelWindow::Unparent(arg1);
1412 DALI_TEST_CHECK(false); // Should not get here
1416 DALI_TEST_CHECK(true); // We expect an assert
1421 int UtcDaliWindowGetParentNegative(void)
1426 DevelWindow::GetParent(arg1);
1427 DALI_TEST_CHECK(false); // Should not get here
1431 DALI_TEST_CHECK(true); // We expect an assert
1436 int UtcDaliWindowSetParentNegative(void)
1442 DevelWindow::SetParent(arg1, arg2);
1443 DALI_TEST_CHECK(false); // Should not get here
1447 DALI_TEST_CHECK(true); // We expect an assert
1452 int UtcDaliWindowSetParentWithBelowParentNegative(void)
1458 DevelWindow::SetParent(arg1, arg2, true);
1459 DALI_TEST_CHECK(false); // Should not get here
1463 DALI_TEST_CHECK(true); // We expect an assert
1468 int UtcDaliWindowAddInputRegion(void)
1470 Dali::Window instance;
1473 Rect<int> includedInputRegion(0,0,720,640);
1474 DevelWindow::IncludeInputRegion(instance, includedInputRegion);
1475 DALI_TEST_CHECK(false); // Should not get here
1479 DALI_TEST_CHECK(true); // We expect an assert
1484 int UtcDaliWindowSubtractInputRegion(void)
1486 Dali::Window instance;
1489 Rect<int> includedInputRegion(0,0,720,1280);
1490 DevelWindow::IncludeInputRegion(instance, includedInputRegion);
1492 Rect<int> excludedInputRegion(0,641,720,640);
1493 DevelWindow::ExcludeInputRegion(instance, excludedInputRegion);
1495 DALI_TEST_CHECK(false); // Should not get here
1499 DALI_TEST_CHECK(true); // We expect an assert
1505 int UtcDaliWindowSetNeedsRotationCompletedAcknowledgementNegative(void)
1510 DevelWindow::SetNeedsRotationCompletedAcknowledgement(arg1, true);
1511 DALI_TEST_CHECK(false); // Should not get here
1515 DALI_TEST_CHECK(true); // We expect an assert
1520 int UtcDaliWindowUnsetNeedsRotationCompletedAcknowledgementNegative(void)
1525 DevelWindow::SetNeedsRotationCompletedAcknowledgement(arg1, false);
1526 DALI_TEST_CHECK(false); // Should not get here
1530 DALI_TEST_CHECK(true); // We expect an assert
1535 int UtcDaliWindowSendRotationCompletedAcknowledgementNegative(void)
1540 DevelWindow::SendRotationCompletedAcknowledgement(arg1);
1542 DALI_TEST_CHECK(false); // Should not get here
1546 DALI_TEST_CHECK(true); // We expect an assert