X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-adaptor%2Futc-Dali-Window.cpp;h=19100ce06f4c36da7b000e5a48580ec5d2556c4d;hb=f79805402bf8bd9b7ceb4561d4c089411fb5927f;hp=cab5d0a12da5451176155420417db2a6b687d132;hpb=b6ef834ce04308993c7d01bd165976171fe24efd;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 cab5d0a..19100ce 100644 --- a/automated-tests/src/dali-adaptor/utc-Dali-Window.cpp +++ b/automated-tests/src/dali-adaptor/utc-Dali-Window.cpp @@ -198,6 +198,104 @@ int UtcDaliWindowActivateN(void) END_TEST; } +int UtcDaliWindowMaximizeN(void) +{ + try + { + Dali::Window instance; + DevelWindow::Maximize(instance, true); + DALI_TEST_CHECK(false); // Should not reach here! + } + catch(...) + { + DALI_TEST_CHECK(true); + } + + END_TEST; +} + +int UtcDaliWindowIsMaximizedN(void) +{ + try + { + Dali::Window instance; + DevelWindow::IsMaximized(instance); + DALI_TEST_CHECK(false); // Should not reach here! + } + catch(...) + { + DALI_TEST_CHECK(true); + } + + 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; + DevelWindow::Minimize(instance, true); + DALI_TEST_CHECK(false); // Should not reach here! + } + catch(...) + { + DALI_TEST_CHECK(true); + } + + END_TEST; +} + +int UtcDaliWindowIsMinimizedN(void) +{ + try + { + Dali::Window instance; + DevelWindow::IsMinimized(instance); + DALI_TEST_CHECK(false); // Should not reach here! + } + catch(...) + { + DALI_TEST_CHECK(true); + } + + 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; @@ -347,7 +445,7 @@ int UtcDaliWindowSetPositionNegative(void) Dali::Window instance; try { - Dali::Uint16Pair arg1; + Dali::Window::WindowPosition arg1; instance.SetPosition(arg1); DALI_TEST_CHECK(false); // Should not get here } @@ -845,6 +943,22 @@ int UtcDaliWindowGetPositionNegative(void) 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; @@ -1351,12 +1465,28 @@ int UtcDaliWindowSetParentNegative(void) END_TEST; } +int UtcDaliWindowSetParentWithBelowParentNegative(void) +{ + try + { + Dali::Window arg1; + Dali::Window arg2; + DevelWindow::SetParent(arg1, arg2, true); + DALI_TEST_CHECK(false); // Should not get here + } + catch(...) + { + DALI_TEST_CHECK(true); // We expect an assert + } + END_TEST; +} + int UtcDaliWindowAddInputRegion(void) { Dali::Window instance; try { - Rect includedInputRegion(0,0,720,640); + Rect includedInputRegion(0, 0, 720, 640); DevelWindow::IncludeInputRegion(instance, includedInputRegion); DALI_TEST_CHECK(false); // Should not get here } @@ -1372,10 +1502,10 @@ int UtcDaliWindowSubtractInputRegion(void) Dali::Window instance; try { - Rect includedInputRegion(0,0,720,1280); + Rect includedInputRegion(0, 0, 720, 1280); DevelWindow::IncludeInputRegion(instance, includedInputRegion); - Rect excludedInputRegion(0,641,720,640); + Rect excludedInputRegion(0, 641, 720, 640); DevelWindow::ExcludeInputRegion(instance, excludedInputRegion); DALI_TEST_CHECK(false); // Should not get here @@ -1386,3 +1516,79 @@ int UtcDaliWindowSubtractInputRegion(void) } END_TEST; } + +int UtcDaliWindowSetNeedsRotationCompletedAcknowledgementNegative(void) +{ + try + { + Dali::Window arg1; + DevelWindow::SetNeedsRotationCompletedAcknowledgement(arg1, true); + DALI_TEST_CHECK(false); // Should not get here + } + catch(...) + { + DALI_TEST_CHECK(true); // We expect an assert + } + END_TEST; +} + +int UtcDaliWindowUnsetNeedsRotationCompletedAcknowledgementNegative(void) +{ + try + { + Dali::Window arg1; + DevelWindow::SetNeedsRotationCompletedAcknowledgement(arg1, false); + DALI_TEST_CHECK(false); // Should not get here + } + catch(...) + { + DALI_TEST_CHECK(true); // We expect an assert + } + END_TEST; +} + +int UtcDaliWindowSendRotationCompletedAcknowledgementNegative(void) +{ + try + { + Dali::Window arg1; + DevelWindow::SendRotationCompletedAcknowledgement(arg1); + + DALI_TEST_CHECK(false); // Should not get here + } + catch(...) + { + DALI_TEST_CHECK(true); // We expect an assert + } + 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; +}