/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
{
try
{
- Dali::Window instance;
+ Dali::Window instance;
DevelWindow::Maximize(instance, true);
DALI_TEST_CHECK(false); // Should not reach here!
}
{
try
{
- Dali::Window instance;
+ Dali::Window instance;
DevelWindow::IsMaximized(instance);
DALI_TEST_CHECK(false); // Should not reach here!
}
END_TEST;
}
+int UtcDaliWindowSetMaximumSizeN(void)
+{
+ try
+ {
+ Dali::Window instance;
+ Dali::Window::WindowSize size(100, 100);
+ DevelWindow::SetMaximumSize(instance, size);
+ DALI_TEST_CHECK(false); // Should not reach here!
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(true);
+ }
+
+ END_TEST;
+}
+
int UtcDaliWindowMinimizeN(void)
{
try
{
- Dali::Window instance;
+ Dali::Window instance;
DevelWindow::Minimize(instance, true);
DALI_TEST_CHECK(false); // Should not reach here!
}
{
try
{
- Dali::Window instance;
+ Dali::Window instance;
DevelWindow::IsMinimized(instance);
DALI_TEST_CHECK(false); // Should not reach here!
}
END_TEST;
}
+int UtcDaliWindowSetMimimumSizeN(void)
+{
+ try
+ {
+ Dali::Window instance;
+ Dali::Window::WindowSize size(100, 100);
+ DevelWindow::SetMimimumSize(instance, size);
+ DALI_TEST_CHECK(false); // Should not reach here!
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(true);
+ }
+
+ END_TEST;
+}
+
int UtcDaliWindowAddAvailableOrientationN(void)
{
Dali::Window window;
Dali::Window instance;
try
{
- Dali::Uint16Pair arg1;
+ Dali::Window::WindowPosition arg1;
instance.SetPosition(arg1);
DALI_TEST_CHECK(false); // Should not get here
}
END_TEST;
}
+int UtcDaliWindowSetLayoutNegative(void)
+{
+ Dali::Window instance;
+ try
+ {
+ unsigned int arg1(0);
+ instance.SetLayout(arg1, arg1, arg1, arg1, arg1, arg1);
+ DALI_TEST_CHECK(false); // Should not get here
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(true); // We expect an assert
+ }
+ END_TEST;
+}
+
int UtcDaliWindowGetRootLayerNegative(void)
{
Dali::Window instance;
Dali::Window instance;
try
{
- Rect<int> includedInputRegion(0,0,720,640);
+ Rect<int> includedInputRegion(0, 0, 720, 640);
DevelWindow::IncludeInputRegion(instance, includedInputRegion);
DALI_TEST_CHECK(false); // Should not get here
}
Dali::Window instance;
try
{
- Rect<int> includedInputRegion(0,0,720,1280);
+ Rect<int> includedInputRegion(0, 0, 720, 1280);
DevelWindow::IncludeInputRegion(instance, includedInputRegion);
- Rect<int> excludedInputRegion(0,641,720,640);
+ Rect<int> excludedInputRegion(0, 641, 720, 640);
DevelWindow::ExcludeInputRegion(instance, excludedInputRegion);
DALI_TEST_CHECK(false); // Should not get here
END_TEST;
}
-
int UtcDaliWindowSetNeedsRotationCompletedAcknowledgementNegative(void)
{
try
}
END_TEST;
}
+
+int UtcDaliWindowMovedSignalNegative(void)
+{
+ Dali::Window instance;
+ try
+ {
+ DevelWindow::MovedSignal(instance);
+ DALI_TEST_CHECK(false); // Should not get here
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(true); // We expect an assert
+ }
+ END_TEST;
+}
+
+int UtcDaliWindowOrientationChangedSignalNegative(void)
+{
+ Dali::Window instance;
+ try
+ {
+ DevelWindow::OrientationChangedSignal(instance);
+ DALI_TEST_CHECK(false); // Should not get here
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(true); // We expect an assert
+ }
+ END_TEST;
+}
+
+int UtcDaliWindowMouseInOutSignalNegative(void)
+{
+ Dali::Window instance;
+ try
+ {
+ DevelWindow::MouseInOutEventSignal(instance);
+ DALI_TEST_CHECK(false); // Should not get here
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(true); // We expect an assert
+ }
+ END_TEST;
+}
+
+int UtcDaliWindowMoveCompletedSignalNegative(void)
+{
+ Dali::Window instance;
+ try
+ {
+ DevelWindow::MoveCompletedSignal(instance);
+ DALI_TEST_CHECK(false); // Should not get here
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(true); // We expect an assert
+ }
+ END_TEST;
+}
+
+int UtcDaliWindowResizeCompletedSignalNegative(void)
+{
+ Dali::Window instance;
+ try
+ {
+ DevelWindow::ResizeCompletedSignal(instance);
+ DALI_TEST_CHECK(false); // Should not get here
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(true); // We expect an assert
+ }
+ END_TEST;
+}