From d2a7ed71c2b4735b21a5e92101810eff01b734c9 Mon Sep 17 00:00:00 2001 From: taeyoon Date: Tue, 9 Aug 2016 20:23:16 +0900 Subject: [PATCH] Revert "[3.0] Adding tests for checkbox" This reverts commit 74c6fdf3b98aa706db2230c01b37350db97d3890. Change-Id: I3dc7ef21238f8ee5792f3baf2bf2450c872ede3e --- .../src/dali-toolkit/utc-Dali-CheckBoxButton.cpp | 56 ---------------------- 1 file changed, 56 deletions(-) diff --git a/automated-tests/src/dali-toolkit/utc-Dali-CheckBoxButton.cpp b/automated-tests/src/dali-toolkit/utc-Dali-CheckBoxButton.cpp index 07b810f..a8aca48 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-CheckBoxButton.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-CheckBoxButton.cpp @@ -147,59 +147,3 @@ int UtcDaliCheckBoxButtonSetGetSelected(void) DALI_TEST_CHECK( gCheckBoxButtonState ); END_TEST; } - -int UtcDaliCheckBoxSetLabelP(void) -{ - TestApplication application; - - CheckBoxButton checkBox = CheckBoxButton::New(); - - Property::Map propertyMap; - propertyMap.Insert("text", "activate"); - checkBox.SetProperty( checkBox.GetPropertyIndex("label"), propertyMap ); - - DALI_TEST_EQUALS( checkBox.GetLabelText(), "activate", TEST_LOCATION ); // Change to use GerProperty once that code is implemented - - END_TEST; -} - -int UtcDaliCheckBoxSetLabelDisabledP(void) -{ - TestApplication application; - - CheckBoxButton checkBox = CheckBoxButton::New(); - Stage::GetCurrent().Add( checkBox ); - - checkBox.SetSize( Vector2( 20.0f, 20.0f ) ); - checkBox.SetDisabledBackgroundImage( "Image.jpg" ); - - application.SendNotification(); - application.Render(); - - Property::Map propertyMap; - propertyMap.Insert("text", "activate"); - checkBox.SetProperty(checkBox.GetPropertyIndex("disabled"), true); - - checkBox.SetProperty( checkBox.GetPropertyIndex("label"), propertyMap ); - - DALI_TEST_CHECK( checkBox.GetProperty(checkBox.GetPropertyIndex("disabled")) ); - DALI_TEST_EQUALS( checkBox.GetLabelText(), "activate", TEST_LOCATION ); // Change to use GerProperty once that code is implemented - - END_TEST; -} - -int UtcDaliCheckBoxSettingDisabled(void) -{ - ToolkitTestApplication application; - - CheckBoxButton checkBox = CheckBoxButton::New(); - - checkBox.SetProperty(checkBox.GetPropertyIndex("disabled"), true); - DALI_TEST_CHECK( checkBox.GetProperty(checkBox.GetPropertyIndex("disabled")) ); - - checkBox.SetProperty(checkBox.GetPropertyIndex("disabled"), false); - - DALI_TEST_CHECK( !checkBox.GetProperty(checkBox.GetPropertyIndex("disabled")) ); - - END_TEST; -} -- 2.7.4