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-ToolBar.cpp;h=3bb7da11b0382a921a8f60138c7ba60257209e46;hp=fec79487a437a3ebf8a21401653c81c08bfa9278;hb=af10e25bb20325d256ba5aa00aae248cbf7c5baa;hpb=8e902a37f200809376dc5746e0bcb9d40dd79049 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-ToolBar.cpp b/automated-tests/src/dali-toolkit/utc-Dali-ToolBar.cpp index fec7948..3bb7da1 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-ToolBar.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-ToolBar.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 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. @@ -21,7 +21,8 @@ #include #include #include -#include +#include +#include "dummy-control.h" using namespace Dali; using namespace Toolkit; @@ -37,11 +38,15 @@ static void TestCallback(BaseHandle handle) Actor CreateColorActor( const Vector4& color ) { - Actor solidColorActor = Actor::New(); - - RendererFactory factory = RendererFactory::Get(); - ControlRenderer colorRenderer = factory.GetControlRenderer( color ); - colorRenderer.SetOnStage( solidColorActor ); + DummyControl solidColorActor = DummyControl::New(); + DummyControlImpl& dummyImpl = static_cast(solidColorActor.GetImplementation()); + + VisualFactory factory = VisualFactory::Get(); + Dali::Property::Map map; + map[ Visual::Property::TYPE ] = Visual::COLOR; + map[ ColorVisual::Property::MIX_COLOR ] = color; + Visual::Base colorVisual = factory.CreateVisual( map ); + dummyImpl.RegisterVisual( Control::CONTROL_PROPERTY_END_INDEX + 1, colorVisual ); return solidColorActor; }