X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-TextLabel.cpp;h=f4655ab8acc9ec2d96e64696f27fdcc70f97d266;hb=cd4d7c8abf01e882eb063c05c443faa018e74dde;hp=e91c2b8baa804ca36126aed38e00b24cd03e67a2;hpb=2d59f0b716ea7f7c06de0732d3e4e78aea127de6;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp b/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp index e91c2b8..f4655ab 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp @@ -1788,7 +1788,34 @@ int UtcDaliToolkitTextlabelAnchorClicked(void) application.Render(); // Create a tap event to touch the text label. - TestGenerateTap(application, 5.0f, 25.0f); + TestGenerateTap(application, 5.0f, 25.0f, 100); + application.SendNotification(); + application.Render(); + + DALI_TEST_CHECK(gAnchorClickedCallBackCalled); + DALI_TEST_CHECK(anchorClickedSignal); + + // reset + gAnchorClickedCallBackCalled = false; + anchorClickedSignal = false; + label.SetProperty(TextLabel::Property::TEXT, ""); + label.SetProperty(TextLabel::Property::ENABLE_MARKUP, false); + + application.SendNotification(); + application.Render(); + + // sets anchor text + label.SetProperty(TextLabel::Property::ENABLE_MARKUP, true); + label.SetProperty(TextLabel::Property::TEXT, "TIZEN"); + label.SetProperty(Actor::Property::SIZE, Vector2(100.f, 50.f)); + label.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT); + label.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT); + + application.SendNotification(); + application.Render(); + + // Create a tap event to touch the text label. + TestGenerateTap(application, 5.0f, 25.0f, 200); application.SendNotification(); application.Render(); @@ -1798,7 +1825,7 @@ int UtcDaliToolkitTextlabelAnchorClicked(void) gAnchorClickedCallBackNotCalled = true; // Tap the outside of anchor, callback should not be called. - TestGenerateTap(application, 150.f, 100.f); + TestGenerateTap(application, 150.f, 100.f, 300); application.SendNotification(); application.Render();