From: taeyoon Date: Mon, 25 May 2015 07:04:41 +0000 (+0900) Subject: Add UTCs for TextSelectionPopup X-Git-Tag: accepted/tizen/common/20150529.134100~10^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=3a5cc9ea74fd51a2e23ea290a268ec961fbf420b Add UTCs for TextSelectionPopup Change-Id: If9b62e43889434d0ca3b3a398cbc657a9b6f2dad --- diff --git a/automated-tests/src/dali-toolkit/CMakeLists.txt b/automated-tests/src/dali-toolkit/CMakeLists.txt index c4d8c35..72c0782 100644 --- a/automated-tests/src/dali-toolkit/CMakeLists.txt +++ b/automated-tests/src/dali-toolkit/CMakeLists.txt @@ -35,6 +35,7 @@ SET(TC_SOURCES utc-Dali-TableView.cpp utc-Dali-TextField.cpp utc-Dali-TextLabel.cpp + utc-Dali-TextSelectionPopup.cpp utc-Dali-ToolBar.cpp utc-Dali-WaterEffect.cpp utc-Dali-Button.cpp diff --git a/automated-tests/src/dali-toolkit/utc-Dali-TextSelectionPopup.cpp b/automated-tests/src/dali-toolkit/utc-Dali-TextSelectionPopup.cpp new file mode 100644 index 0000000..d4914f5 --- /dev/null +++ b/automated-tests/src/dali-toolkit/utc-Dali-TextSelectionPopup.cpp @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2014 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include +#include +#include +#include + +using namespace Dali; +using namespace Toolkit; + +void dali_textselectionpopup_startup(void) +{ + test_return_value = TET_UNDEF; +} + +void dali_textselectionpopup_cleanup(void) +{ + test_return_value = TET_PASS; +} + +int UtcDaliToolkitTextSelectionPopupNewP(void) +{ + ToolkitTestApplication application; + TextSelectionPopup textSelectionPopup; + + DALI_TEST_CHECK( !textSelectionPopup ); + + textSelectionPopup = TextSelectionPopup::New(); + + DALI_TEST_CHECK( textSelectionPopup ); + END_TEST; +} + +int UtcDaliToolkitTextSelectionPopupConstructorP(void) +{ + TextSelectionPopup textSelectionPopup; + + DALI_TEST_CHECK( !textSelectionPopup ); + + END_TEST; +} + +int UtcDaliToolkitTextSelectionPopupCopyConstructorP(void) +{ + ToolkitTestApplication application; + TextSelectionPopup textSelectionPopup; + + textSelectionPopup = TextSelectionPopup::New(); + TextSelectionPopup copy( textSelectionPopup ); + + DALI_TEST_CHECK( copy == textSelectionPopup ); + + END_TEST; +} + + +int UtcDaliToolkitTextSelectionPopupDestructorP(void) +{ + ToolkitTestApplication application; + TextSelectionPopup* textSelectionPopup = new TextSelectionPopup; + delete textSelectionPopup; + + DALI_TEST_CHECK( true ); + + END_TEST; +} + +int UtcDaliToolkitTextSelectionPopupAssignmentOperatorP(void) +{ + ToolkitTestApplication application; + TextSelectionPopup textSelectionPopup; + textSelectionPopup = TextSelectionPopup::New(); + TextSelectionPopup copy; + copy = textSelectionPopup; + + DALI_TEST_CHECK( copy == textSelectionPopup ); + END_TEST; +} + +int UtcDaliToolkitTextSelectionPopupDownCastP(void) +{ + ToolkitTestApplication application; + TextSelectionPopup textSelectionPopup; + textSelectionPopup = TextSelectionPopup::New(); + + TextSelectionPopup cast = TextSelectionPopup::DownCast( textSelectionPopup ); + + DALI_TEST_CHECK( cast ); + + END_TEST; +} diff --git a/dali-toolkit/dali-toolkit.h b/dali-toolkit/dali-toolkit.h index 9cef6c3..eeeaa44 100644 --- a/dali-toolkit/dali-toolkit.h +++ b/dali-toolkit/dali-toolkit.h @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include