X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-Popup.cpp;h=1f2ecc70d899bdd0dc8c8574d23b93093089e6b0;hp=3abf2d0aab2655eca674c5951f022a66e8e2c926;hb=834ddf7832598a57fc18c282371554a1ed8f0a78;hpb=fa6279fb2830427d5ab569ca14e6ade1557ef2fa diff --git a/automated-tests/src/dali-toolkit/utc-Dali-Popup.cpp b/automated-tests/src/dali-toolkit/utc-Dali-Popup.cpp index 3abf2d0..1f2ecc7 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-Popup.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-Popup.cpp @@ -1,18 +1,19 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.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://floralicense.org/license/ -// -// 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. -// +/* + * 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 @@ -278,7 +279,6 @@ int UtcDaliPopupSetState(void) // Create the Popup actor Popup popup = Popup::New(); - Stage::GetCurrent().Add( popup ); ImageActor backgroundImage = CreateSolidColorActor( Color::RED ); popup.SetBackgroundImage(backgroundImage); @@ -302,7 +302,6 @@ int UtcDaliPopupSetStateSlow(void) // Create the Popup actor Popup popup = Popup::New(); - Stage::GetCurrent().Add( popup ); ImageActor backgroundImage = CreateSolidColorActor( Color::RED ); popup.SetBackgroundImage(backgroundImage); @@ -336,7 +335,6 @@ int UtcDaliPopupShowHide(void) // Create the Popup actor Popup popup = Popup::New(); - Stage::GetCurrent().Add( popup ); popup.HiddenSignal().Connect( &OnPopupHidden ); ImageActor backgroundImage = CreateSolidColorActor( Color::RED ); @@ -344,9 +342,9 @@ int UtcDaliPopupShowHide(void) PushButton button1 = PushButton::New(); PushButton button2 = PushButton::New(); - button1.SetSize(DEFAULT_BUTTON_SIZE); + button1.SetPreferredSize(DEFAULT_BUTTON_SIZE.GetVectorXY()); popup.AddButton(button1); - button2.SetSize(DEFAULT_BUTTON_SIZE); + button2.SetPreferredSize(DEFAULT_BUTTON_SIZE.GetVectorXY()); popup.AddButton(button2); // Showing/Hiding popup, results in all child Actors being