3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6 using System.Collections.Generic;
7 using System.Runtime.InteropServices;
9 namespace Tizen.NUI.Devel.Tests
11 using tlog = Tizen.Log;
14 [Description("public/BaseComponents/TextLabelEvent")]
15 public class PublicTextLabelEventTest
17 private const string tag = "NUITEST";
22 tlog.Info(tag, "Init() is called!");
28 tlog.Info(tag, "Destroy() is called!");
33 [Description("TextLabelEvent.AnchorClicked.")]
34 [Property("SPEC", "Tizen.NUI.TextLabelEvent.AnchorClicked A")]
35 [Property("SPEC_URL", "-")]
36 [Property("CRITERIA", "PRW")]
37 [Property("AUTHOR", "guowei.wang@samsung.com")]
38 public void TextLabelEventAnchorClicked()
40 tlog.Debug(tag, $"TextLabelEventAnchorClicked START");
42 TextLabel label = new TextLabel()
47 label.AnchorClicked += MyOnAnchorClicked;
48 label.AnchorClicked -= MyOnAnchorClicked;
51 tlog.Debug(tag, $"TextLabelEventAnchorClicked END (OK)");
54 private void MyOnAnchorClicked(object sender, AnchorClickedEventArgs e)
56 var label = sender as TextLabel;
57 e.Href = Marshal.PtrToStringAnsi(label.SwigCPtr.Handle);