<!-- Property Group for .NET Core Project -->
<PropertyGroup>
<OutputType>Exe</OutputType>
- <TargetFramework>netcoreapp3.1</TargetFramework>
+ <TargetFramework>tizen11.0</TargetFramework>
<TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>
</PropertyGroup>
<Import Project="..\Common\dependencies.props" />
<ItemGroup>
- <PackageReference Include="Tizen.NET" Version="10.0.0.*">
+ <PackageReference Include="Tizen.NET" Version="11.0.0.*">
<ExcludeAssets>Runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="Tizen.NET.Sdk" Version="$(TizenNETSdkVersion)" />
using (View view = new View())
{
- view.OnWindowSignal();
+ //view.OnWindowSignal();
AccessibilityDoGestureSignal.SetResult(view.SwigCPtr.Handle, true);
var result = AccessibilityDoGestureSignal.GetResult(view.SwigCPtr.Handle);
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/ControlKeySignal")]
- public class InternalControlKeySignalTest
- {
- private const string tag = "NUITEST";
-
- private delegate bool dummyCallback(IntPtr signal);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("ControlKeySignal constructor.")]
- [Property("SPEC", "Tizen.NUI.ControlKeySignal.ControlKeySignal C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ControlKeySignalConstructor()
- {
- tlog.Debug(tag, $"ControlKeySignalConstructor START");
-
- using (View view = new View())
- {
- var testingTarget = new ControlKeySignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ControlKeySignal>(testingTarget, "Should be an Instance of ControlKeySignal!");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"ControlKeySignalConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ControlKeySignal Empty.")]
- [Property("SPEC", "Tizen.NUI.ControlKeySignal.Empty M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ControlKeySignalEmpty()
- {
- tlog.Debug(tag, $"ControlKeySignalEmpty START");
-
- var testingTarget = new ControlKeySignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ControlKeySignal>(testingTarget, "Should be an Instance of ControlKeySignal!");
-
- try
- {
- testingTarget.Empty();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ControlKeySignalEmpty END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ControlKeySignal GetConnectionCount.")]
- [Property("SPEC", "Tizen.NUI.ControlKeySignal.GetConnectionCount M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ControlKeySignalGetConnectionCount()
- {
- tlog.Debug(tag, $"ControlKeySignalGetConnectionCount START");
-
- var testingTarget = new ControlKeySignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ControlKeySignal>(testingTarget, "Should be an Instance of ControlKeySignal!");
-
- try
- {
- testingTarget.GetConnectionCount();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ControlKeySignalGetConnectionCount END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ControlKeySignal Connect.")]
- [Property("SPEC", "Tizen.NUI.ControlKeySignal.Connect M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ControlKeySignalConnect()
- {
- tlog.Debug(tag, $"ControlKeySignalConnect START");
-
- var testingTarget = new ControlKeySignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ControlKeySignal>(testingTarget, "Should be an Instance of ControlKeySignal!");
-
- try
- {
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ControlKeySignalConnect END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ControlKeySignal Emit.")]
- [Property("SPEC", "Tizen.NUI.ControlKeySignal.Emit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- [Obsolete]
- public void ControlKeySignalEmit()
- {
- tlog.Debug(tag, $"ControlKeySignalEmit START");
- var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
- var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
-
- var testingTarget = new ControlKeySignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ControlKeySignal>(testingTarget, "Should be an Instance of ControlKeySignal!");
-
- try
- {
- using (View view = new View())
- {
- using (Key key = new Key(view.SwigCPtr.Handle, false))
- {
- testingTarget.Emit(view, key);
- }
- }
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ControlKeySignalEmit END (OK)");
- }
- }
-}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/HoverSignal")]
- public class InternalHoverSignalTest
- {
- private const string tag = "NUITEST";
-
- private delegate bool dummyCallback(IntPtr signal);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("HoverSignal constructor.")]
- [Property("SPEC", "Tizen.NUI.HoverSignal.HoverSignal C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void HoverSignalConstructor()
- {
- tlog.Debug(tag, $"HoverSignalConstructor START");
-
- using (View view = new View())
- {
- var testingTarget = new HoverSignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"HoverSignalConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("HoverSignal Empty.")]
- [Property("SPEC", "Tizen.NUI.HoverSignal.Empty M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void HoverSignalEmpty()
- {
- tlog.Debug(tag, $"HoverSignalEmpty START");
-
- var testingTarget = new HoverSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");
-
- try
- {
- testingTarget.Empty();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"HoverSignalEmpty END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("HoverSignal GetConnectionCount.")]
- [Property("SPEC", "Tizen.NUI.HoverSignal.GetConnectionCount M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void HoverSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"HoverSignalGetConnectionCount START");
-
- var testingTarget = new HoverSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");
-
- try
- {
- testingTarget.GetConnectionCount();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"HoverSignalGetConnectionCount END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("HoverSignal Connect.")]
- [Property("SPEC", "Tizen.NUI.HoverSignal.Connect M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void HoverSignalConnect()
- {
- tlog.Debug(tag, $"HoverSignalConnect START");
-
- var testingTarget = new HoverSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");
-
- try
- {
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"HoverSignalConnect END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("HoverSignal Emit.")]
- [Property("SPEC", "Tizen.NUI.HoverSignal.Emit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- [Obsolete]
- public void HoverSignalEmit()
- {
- tlog.Debug(tag, $"HoverSignalEmit START");
- var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
- var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
-
- var testingTarget = new HoverSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");
-
- try
- {
- using (View view = new View())
- {
- using (Hover hover = new Hover())
- {
- testingTarget.Emit(view, hover);
- }
- }
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"HoverSignalEmit END (OK)");
- }
- }
-}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/InterceptTouchSignal")]
- public class InternalInterceptTouchSignalTest
- {
- private const string tag = "NUITEST";
-
- private delegate bool dummyCallback(IntPtr signal);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- private bool OnInterceptTouchEvent(object source, View.TouchEventArgs e)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("InterceptTouchSignal constructor.")]
- [Property("SPEC", "Tizen.NUI.InterceptTouchSignal.InterceptTouchSignal C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void InterceptTouchSignalConstructor()
- {
- tlog.Debug(tag, $"InterceptTouchSignalConstructor START");
-
- using (View view = new View())
- {
- var testingTarget = new InterceptTouchSignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<InterceptTouchSignal>(testingTarget, "Should be an Instance of InterceptTouchSignal!");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"InterceptTouchSignalConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("InterceptTouchSignal Empty.")]
- [Property("SPEC", "Tizen.NUI.InterceptTouchSignal.Empty M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void InterceptTouchSignalEmpty()
- {
- tlog.Debug(tag, $"InterceptTouchSignalEmpty START");
-
- using (View view = new View())
- {
- var testingTarget = new InterceptTouchSignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<InterceptTouchSignal>(testingTarget, "Should be an Instance of InterceptTouchSignal!");
-
- try
- {
- testingTarget.Empty();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"InterceptTouchSignalEmpty END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("InterceptTouchSignal GetConnectionCount.")]
- [Property("SPEC", "Tizen.NUI.InterceptTouchSignal.GetConnectionCount M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void InterceptTouchSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"InterceptTouchSignalGetConnectionCount START");
-
- using (View view = new View())
- {
- var testingTarget = new InterceptTouchSignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<InterceptTouchSignal>(testingTarget, "Should be an Instance of InterceptTouchSignal!");
-
- try
- {
- testingTarget.GetConnectionCount();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"InterceptTouchSignalGetConnectionCount END (OK)");
- }
- }
-}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/KeyInputFocusSignal")]
- public class InternalKeyInputFocusSignalTest
- {
- private const string tag = "NUITEST";
-
- private delegate bool dummyCallback(IntPtr signal);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("KeyInputFocusSignal constructor.")]
- [Property("SPEC", "Tizen.NUI.KeyInputFocusSignal.KeyInputFocusSignal C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void KeyInputFocusSignalConstructor()
- {
- tlog.Debug(tag, $"KeyInputFocusSignalConstructor START");
-
- using (View view = new View())
- {
- var testingTarget = new KeyInputFocusSignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<KeyInputFocusSignal>(testingTarget, "Should be an Instance of KeyInputFocusSignal!");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"KeyInputFocusSignalConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("KeyInputFocusSignal Empty.")]
- [Property("SPEC", "Tizen.NUI.KeyInputFocusSignal.Empty M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void KeyInputFocusSignalEmpty()
- {
- tlog.Debug(tag, $"KeyInputFocusSignalEmpty START");
-
- var testingTarget = new KeyInputFocusSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<KeyInputFocusSignal>(testingTarget, "Should be an Instance of KeyInputFocusSignal!");
-
- try
- {
- testingTarget.Empty();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"KeyInputFocusSignalEmpty END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("KeyInputFocusSignal GetConnectionCount.")]
- [Property("SPEC", "Tizen.NUI.KeyInputFocusSignal.GetConnectionCount M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void KeyInputFocusSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"KeyInputFocusSignalGetConnectionCount START");
-
- var testingTarget = new KeyInputFocusSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<KeyInputFocusSignal>(testingTarget, "Should be an Instance of KeyInputFocusSignal!");
-
- try
- {
- testingTarget.GetConnectionCount();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"KeyInputFocusSignalGetConnectionCount END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("KeyInputFocusSignal Connect.")]
- [Property("SPEC", "Tizen.NUI.KeyInputFocusSignal.Connect M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void KeyInputFocusSignalConnect()
- {
- tlog.Debug(tag, $"KeyInputFocusSignalConnect START");
-
- var testingTarget = new KeyInputFocusSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<KeyInputFocusSignal>(testingTarget, "Should be an Instance of KeyInputFocusSignal!");
-
- try
- {
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"KeyInputFocusSignalConnect END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("KeyInputFocusSignal Emit.")]
- [Property("SPEC", "Tizen.NUI.KeyInputFocusSignal.Emit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- [Obsolete]
- public void KeyInputFocusSignalEmit()
- {
- tlog.Debug(tag, $"KeyInputFocusSignalEmit START");
- var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
- var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
-
- var testingTarget = new KeyInputFocusSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<KeyInputFocusSignal>(testingTarget, "Should be an Instance of KeyInputFocusSignal!");
-
- try
- {
- using (View view = new View())
- {
- testingTarget.Emit(view);
- }
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"KeyInputFocusSignalEmit END (OK)");
- }
- }
-}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/TouchDataSignal")]
- public class InternalTouchDataSignalTest
- {
- private const string tag = "NUITEST";
-
- private delegate bool dummyCallback(IntPtr signal);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("TouchDataSignal constructor.")]
- [Property("SPEC", "Tizen.NUI.TouchDataSignal.TouchDataSignal C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TouchDataSignalConstructor()
- {
- tlog.Debug(tag, $"TouchDataSignalConstructor START");
-
- using (View view = new View())
- {
- var testingTarget = new TouchDataSignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TouchDataSignal>(testingTarget, "Should be an Instance of TouchDataSignal!");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"TouchDataSignalConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TouchDataSignal Empty.")]
- [Property("SPEC", "Tizen.NUI.TouchDataSignal.Empty M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TouchDataSignalEmpty()
- {
- tlog.Debug(tag, $"TouchDataSignalEmpty START");
-
- var testingTarget = new TouchDataSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TouchDataSignal>(testingTarget, "Should be an Instance of TouchDataSignal!");
-
- try
- {
- testingTarget.Empty();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"TouchDataSignalEmpty END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TouchDataSignal GetConnectionCount.")]
- [Property("SPEC", "Tizen.NUI.TouchDataSignal.GetConnectionCount M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TouchDataSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"TouchDataSignalGetConnectionCount START");
-
- var testingTarget = new TouchDataSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TouchDataSignal>(testingTarget, "Should be an Instance of TouchDataSignal!");
-
- try
- {
- testingTarget.GetConnectionCount();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"TouchDataSignalGetConnectionCount END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TouchDataSignal Connect.")]
- [Property("SPEC", "Tizen.NUI.TouchDataSignal.Connect M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TouchDataSignalConnect()
- {
- tlog.Debug(tag, $"TouchDataSignalConnect START");
-
- var testingTarget = new TouchDataSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TouchDataSignal>(testingTarget, "Should be an Instance of TouchDataSignal!");
-
- try
- {
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"TouchDataSignalConnect END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TouchDataSignal Emit.")]
- [Property("SPEC", "Tizen.NUI.TouchDataSignal.Emit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TouchDataSignalEmit()
- {
- tlog.Debug(tag, $"TouchDataSignalEmit START");
- var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
- var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
-
- using (View view = new View())
- {
- using (Touch touch = Touch.GetTouchFromPtr(view.SwigCPtr.Handle))
- {
- var testingTarget = new TouchDataSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TouchDataSignal>(testingTarget, "Should be an Instance of TouchDataSignal!");
-
- try
- {
- testingTarget.Emit(view, touch);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
- }
-
- tlog.Debug(tag, $"TouchDataSignalEmit END (OK)");
- }
- }
-}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/TouchSignal")]
- public class InternalTouchSignalTest
- {
- private const string tag = "NUITEST";
-
- private delegate bool dummyCallback(IntPtr touchSignal);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("TouchSignal constructor.")]
- [Property("SPEC", "Tizen.NUI.TouchSignal.TouchSignal C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TouchSignalConstructor()
- {
- tlog.Debug(tag, $"TouchSignalConstructor START");
-
- using (View view = new View())
- {
- var testingTarget = new TouchSignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"TouchSignalConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TouchSignal Empty.")]
- [Property("SPEC", "Tizen.NUI.TouchSignal.Empty M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TouchSignalEmpty()
- {
- tlog.Debug(tag, $"TouchSignalEmpty START");
-
- var testingTarget = new TouchSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!");
-
- try
- {
- testingTarget.Empty();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"TouchSignalEmpty END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TouchSignal GetConnectionCount.")]
- [Property("SPEC", "Tizen.NUI.TouchSignal.TouchSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TouchSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"TouchSignalGetConnectionCount START");
-
- var testingTarget = new TouchSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!");
-
- try
- {
- testingTarget.GetConnectionCount();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"TouchSignalGetConnectionCount END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TouchSignal Connect.")]
- [Property("SPEC", "Tizen.NUI.TouchSignal.Connect M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TouchSignalConnect()
- {
- tlog.Debug(tag, $"TouchSignalConnect START");
-
- var testingTarget = new TouchSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!");
-
- try
- {
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"TouchSignalConnect END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TouchSignal Emit.")]
- [Property("SPEC", "Tizen.NUI.TouchSignal.Emit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TouchSignalEmit()
- {
- tlog.Debug(tag, $"TouchSignalEmit START");
- var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
- var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
-
- using (View view = new View())
- {
- var testingTarget = new TouchSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!");
-
- try
- {
- testingTarget.Emit(Touch.GetTouchFromPtr(view.SwigCPtr.Handle));
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"TouchSignalEmit END (OK)");
- }
- }
-}
tlog.Debug(tag, $"ViewImplOnKeyInputFocusLost (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("ViewImpl KeyEventSignal.")]
- [Property("SPEC", "Tizen.NUI.ViewImpl.KeyEventSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewImplSignal()
- {
- tlog.Debug(tag, $"ViewImplSignal START");
-
- using (ViewWrapperImpl impl = new ViewWrapperImpl(CustomViewBehaviour.ViewBehaviourDefault))
- {
- var testingTarget = new ViewWrapper("CustomView", impl);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<ViewWrapper>(testingTarget, "should be an instance of testing target class!");
-
- var signal = testingTarget.viewWrapperImpl.KeyEventSignal();
- Assert.IsInstanceOf<ControlKeySignal>(signal, "Should return ControlKeySignal instance.");
-
- var focusGained = testingTarget.viewWrapperImpl.KeyInputFocusGainedSignal();
- Assert.IsInstanceOf<KeyInputFocusSignal>(focusGained, "Should return ControlKeySignal instance.");
-
- var focusLost = testingTarget.viewWrapperImpl.KeyInputFocusLostSignal();
- Assert.IsInstanceOf<KeyInputFocusSignal>(focusLost, "Should return ControlKeySignal instance.");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"ViewImplSignal (OK)");
- }
}
}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/ViewLayoutDirectionChangedSignal")]
- public class InternalViewLayoutDirectionChangedSignalTest
- {
- private const string tag = "NUITEST";
-
- private delegate bool dummyCallback(IntPtr signal);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewLayoutDirectionChangedSignal constructor.")]
- [Property("SPEC", "Tizen.NUI.ViewLayoutDirectionChangedSignal.ViewLayoutDirectionChangedSignal C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewLayoutDirectionChangedSignalConstructor()
- {
- tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalConstructor START");
-
- using (View view = new View())
- {
- var testingTarget = new ViewLayoutDirectionChangedSignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewLayoutDirectionChangedSignal>(testingTarget, "Should be an Instance of ViewLayoutDirectionChangedSignal!");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewLayoutDirectionChangedSignal Empty.")]
- [Property("SPEC", "Tizen.NUI.ViewLayoutDirectionChangedSignal.Empty M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewLayoutDirectionChangedSignalEmpty()
- {
- tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalEmpty START");
-
- var testingTarget = new ViewLayoutDirectionChangedSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewLayoutDirectionChangedSignal>(testingTarget, "Should be an Instance of ViewLayoutDirectionChangedSignal!");
-
- try
- {
- testingTarget.Empty();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalEmpty END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewLayoutDirectionChangedSignal GetConnectionCount.")]
- [Property("SPEC", "Tizen.NUI.ViewLayoutDirectionChangedSignal.GetConnectionCount M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewLayoutDirectionChangedSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalGetConnectionCount START");
-
- var testingTarget = new ViewLayoutDirectionChangedSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewLayoutDirectionChangedSignal>(testingTarget, "Should be an Instance of ViewLayoutDirectionChangedSignal!");
-
- try
- {
- testingTarget.GetConnectionCount();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalGetConnectionCount END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewLayoutDirectionChangedSignal Connect.")]
- [Property("SPEC", "Tizen.NUI.ViewLayoutDirectionChangedSignal.Connect M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewLayoutDirectionChangedSignalConnect()
- {
- tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalConnect START");
-
- var testingTarget = new ViewLayoutDirectionChangedSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewLayoutDirectionChangedSignal>(testingTarget, "Should be an Instance of ViewLayoutDirectionChangedSignal!");
-
- try
- {
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalConnect END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewLayoutDirectionChangedSignal Emit.")]
- [Property("SPEC", "Tizen.NUI.ViewLayoutDirectionChangedSignal.Emit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- [Obsolete]
- public void ViewLayoutDirectionChangedSignalEmit()
- {
- tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalEmit START");
- var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
- var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
-
- var testingTarget = new ViewLayoutDirectionChangedSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewLayoutDirectionChangedSignal>(testingTarget, "Should be an Instance of ViewLayoutDirectionChangedSignal!");
-
- try
- {
- using (View view = new View())
- {
- testingTarget.Emit(view);
- }
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalEmit END (OK)");
- }
- }
-}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/ViewSignal")]
- public class InternalViewSignalTest
- {
- private const string tag = "NUITEST";
-
- private delegate bool dummyCallback(IntPtr viewSignal);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewSignal constructor.")]
- [Property("SPEC", "Tizen.NUI.ViewSignal.ViewSignal C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewSignalConstructor()
- {
- tlog.Debug(tag, $"ViewSignalConstructor START");
-
- using (View view = new View())
- {
- var testingTarget = new ViewSignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewSignal>(testingTarget, "Should be an Instance of ViewSignal!");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"ViewSignalConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewSignal Empty.")]
- [Property("SPEC", "Tizen.NUI.ViewSignal.Empty M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewSignalEmpty()
- {
- tlog.Debug(tag, $"ViewSignalEmpty START");
-
- var testingTarget = new ViewSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewSignal>(testingTarget, "Should be an Instance of ViewSignal!");
-
- try
- {
- testingTarget.Empty();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ViewSignalEmpty END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewSignal GetConnectionCount.")]
- [Property("SPEC", "Tizen.NUI.ViewSignal.GetConnectionCount M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"ViewSignalGetConnectionCount START");
-
- var testingTarget = new ViewSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewSignal>(testingTarget, "Should be an Instance of ViewSignal!");
-
- try
- {
- testingTarget.GetConnectionCount();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ViewSignalGetConnectionCount END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewSignal Connect.")]
- [Property("SPEC", "Tizen.NUI.ViewSignal.Connect M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewSignalConnect()
- {
- tlog.Debug(tag, $"ViewSignalConnect START");
-
- var testingTarget = new ViewSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewSignal>(testingTarget, "Should be an Instance of ViewSignal!");
-
- try
- {
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ViewSignalConnect END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewSignal Emit.")]
- [Property("SPEC", "Tizen.NUI.ViewSignal.Emit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewSignalEmit()
- {
- tlog.Debug(tag, $"ViewSignalEmit START");
- var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
- var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
-
- using (View view = new View())
- {
- var testingTarget = new ViewSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewSignal>(testingTarget, "Should be an Instance of ViewSignal!");
-
- try
- {
- testingTarget.Emit(view);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"ViewSignalEmit END (OK)");
- }
- }
-}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/ViewVisibilityChangedSignal")]
- public class InternalViewVisibilityChangedSignalTest
- {
- private const string tag = "NUITEST";
-
- private delegate bool dummyCallback(IntPtr viewVisibilityChangedSignal);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewVisibilityChangedSignal constructor.")]
- [Property("SPEC", "Tizen.NUI.ViewVisibilityChangedSignal.ViewSignal C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewVisibilityChangedSignalConstructor()
- {
- tlog.Debug(tag, $"ViewVisibilityChangedSignalConstructor START");
-
- using (View view = new View())
- {
- var testingTarget = new ViewVisibilityChangedSignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewVisibilityChangedSignal>(testingTarget, "Should be an Instance of ViewVisibilityChangedSignal!");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"ViewVisibilityChangedSignalConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewVisibilityChangedSignal Empty.")]
- [Property("SPEC", "Tizen.NUI.ViewVisibilityChangedSignal.Empty M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewVisibilityChangedSignalEmpty()
- {
- tlog.Debug(tag, $"ViewVisibilityChangedSignalEmpty START");
-
- var testingTarget = new ViewVisibilityChangedSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewVisibilityChangedSignal>(testingTarget, "Should be an Instance of ViewVisibilityChangedSignal!");
-
- try
- {
- testingTarget.Empty();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ViewVisibilityChangedSignalEmpty END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewVisibilityChangedSignal GetConnectionCount.")]
- [Property("SPEC", "Tizen.NUI.ViewVisibilityChangedSignal.GetConnectionCount M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewVisibilityChangedSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"ViewVisibilityChangedSignalGetConnectionCount START");
-
- var testingTarget = new ViewVisibilityChangedSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewVisibilityChangedSignal>(testingTarget, "Should be an Instance of ViewVisibilityChangedSignal!");
-
- try
- {
- testingTarget.GetConnectionCount();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ViewVisibilityChangedSignalGetConnectionCount END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewVisibilityChangedSignal Connect.")]
- [Property("SPEC", "Tizen.NUI.ViewVisibilityChangedSignal.Connect M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewVisibilityChangedSignalConnect()
- {
- tlog.Debug(tag, $"ViewVisibilityChangedSignalConnect START");
-
- var testingTarget = new ViewVisibilityChangedSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ViewVisibilityChangedSignal>(testingTarget, "Should be an Instance of ViewVisibilityChangedSignal!");
-
- try
- {
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ViewVisibilityChangedSignalConnect END (OK)");
- }
- }
-}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/WheelSignal")]
- public class InternalWheelSignalTest
- {
- private const string tag = "NUITEST";
-
- private delegate bool dummyCallback(IntPtr wheelSignal);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("WheelSignal constructor.")]
- [Property("SPEC", "Tizen.NUI.WheelSignal.WheelSignal C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WheelSignalConstructor()
- {
- tlog.Debug(tag, $"WheelSignalConstructor START");
-
- using (View view = new View())
- {
- var testingTarget = new WheelSignal(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<WheelSignal>(testingTarget, "Should be an Instance of WheelSignal!");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"WheelSignalConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("WheelSignal Empty.")]
- [Property("SPEC", "Tizen.NUI.WheelSignal.Empty M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WheelSignalEmpty()
- {
- tlog.Debug(tag, $"WheelSignalEmpty START");
-
- var testingTarget = new WheelSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<WheelSignal>(testingTarget, "Should be an Instance of WheelSignal!");
-
- try
- {
- testingTarget.Empty();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"WheelSignalEmpty END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("WheelSignal GetConnectionCount.")]
- [Property("SPEC", "Tizen.NUI.WheelSignal.GetConnectionCount M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WheelSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"WheelSignalGetConnectionCount START");
-
- var testingTarget = new WheelSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<WheelSignal>(testingTarget, "Should be an Instance of WheelSignal!");
-
- try
- {
- testingTarget.GetConnectionCount();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"WheelSignalGetConnectionCount END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("WheelSignal Connect.")]
- [Property("SPEC", "Tizen.NUI.WheelSignal.Connect M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WheelSignalConnect()
- {
- tlog.Debug(tag, $"WheelSignalConnect START");
-
- var testingTarget = new WheelSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<WheelSignal>(testingTarget, "Should be an Instance of WheelSignal!");
-
- try
- {
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"WheelSignalConnect END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("WheelSignal Emit.")]
- [Property("SPEC", "Tizen.NUI.WheelSignal.Emit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WheelSignalEmit()
- {
- tlog.Debug(tag, $"WheelSignalEmit START");
- var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
- var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
-
- using (View view = new View())
- {
- var testingTarget = new WheelSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<WheelSignal>(testingTarget, "Should be an Instance of WheelSignal!");
-
- try
- {
- testingTarget.Emit(view, new Wheel());
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"WheelSignalEmit END (OK)");
- }
- }
-}
Size = new Size(100, 50),
Color = Color.Cyan
};
- view.OnWindowSignal();
+ //view.OnWindowSignal();
pageTurnView = new PageTurnView(view.SwigCPtr.Handle, false);
}
[Test]
[Category("P1")]
- [Description("AccessibilityManager FocusedViewActivatedSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.FocusedViewActivatedSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerFocusedViewActivatedSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerFocusedViewActivatedSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.FocusedViewActivatedSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerFocusedViewActivatedSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
[Description("AccessibilityManager StatusChangedSignal.")]
[Property("SPEC", "Tizen.NUI.AccessibilityManager.StatusChangedSignal M")]
[Property("SPEC_URL", "-")]
tlog.Debug(tag, $"ViewEventKeyEvent END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("ViewEvent InterceptTouchSignal.")]
- [Property("SPEC", "Tizen.NUI.ViewEvent.InterceptTouchSignal A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewEventInterceptTouchSignal()
- {
- tlog.Debug(tag, $"ViewEventInterceptTouchSignal START");
-
- var testingTarget = new View();
- Assert.IsNotNull(testingTarget, "Can't create success object View");
- Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
-
- try
- {
- testingTarget.InterceptTouchSignal();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ViewEventInterceptTouchSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewEvent TouchSignal.")]
- [Property("SPEC", "Tizen.NUI.ViewEvent.TouchSignal A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewEventTouchSignal()
- {
- tlog.Debug(tag, $"ViewEventTouchSignal START");
-
- var testingTarget = new View();
- Assert.IsNotNull(testingTarget, "Can't create success object View");
- Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
-
- try
- {
- testingTarget.TouchSignal();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ViewEventTouchSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewEvent HoveredSignal.")]
- [Property("SPEC", "Tizen.NUI.ViewEvent.HoveredSignal A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewEventHoveredSignal()
- {
- tlog.Debug(tag, $"ViewEventHoveredSignal START");
-
- var testingTarget = new View();
- Assert.IsNotNull(testingTarget, "Can't create success object View");
- Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
-
- try
- {
- testingTarget.HoveredSignal();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ViewEventHoveredSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewEvent WheelEventSignal.")]
- [Property("SPEC", "Tizen.NUI.ViewEvent.WheelEventSignal A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewEventWheelEventSignal()
- {
- tlog.Debug(tag, $"ViewEventWheelEventSignal START");
-
- var testingTarget = new View();
- Assert.IsNotNull(testingTarget, "Can't create success object View");
- Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
-
- try
- {
- testingTarget.WheelEventSignal();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ViewEventWheelEventSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewEvent OffWindowSignal.")]
- [Property("SPEC", "Tizen.NUI.ViewEvent.OffWindowSignal A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewEventOffWindowSignal()
- {
- tlog.Debug(tag, $"ViewEventOffWindowSignal START");
-
- var testingTarget = new View();
- Assert.IsNotNull(testingTarget, "Can't create success object View");
- Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
-
- try
- {
- testingTarget.OffWindowSignal();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ViewEventOffWindowSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewEvent OnRelayoutSignal.")]
- [Property("SPEC", "Tizen.NUI.ViewEvent.OnRelayoutSignal A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewEventOnRelayoutSignal()
- {
- tlog.Debug(tag, $"ViewEventOnRelayoutSignal START");
-
- var testingTarget = new View();
- Assert.IsNotNull(testingTarget, "Can't create success object View");
- Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
-
- try
- {
- testingTarget.OnRelayoutSignal();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ViewEventOnRelayoutSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewEvent ResourcesLoadedSignal.")]
- [Property("SPEC", "Tizen.NUI.ViewEvent.ResourcesLoadedSignal A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewEventResourcesLoadedSignal()
- {
- tlog.Debug(tag, $"ViewEventResourcesLoadedSignal START");
-
- var testingTarget = new View();
- Assert.IsNotNull(testingTarget, "Can't create success object View");
- Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
-
- try
- {
- testingTarget.ResourcesLoadedSignal();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ViewEventResourcesLoadedSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewEvent KeyEventSignal.")]
- [Property("SPEC", "Tizen.NUI.ViewEvent.KeyEventSignal A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewEventKeyEventSignal()
- {
- tlog.Debug(tag, $"ViewEventKeyEventSignal START");
-
- var testingTarget = new View();
- Assert.IsNotNull(testingTarget, "Can't create success object View");
- Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
-
- try
- {
- testingTarget.KeyEventSignal();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ViewEventKeyEventSignal END (OK)");
- }
-
-
- [Test]
- [Category("P1")]
- [Description("ViewEvent KeyInputFocusGainedSignal.")]
- [Property("SPEC", "Tizen.NUI.ViewEvent.KeyInputFocusGainedSignal A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewEventKeyInputFocusGainedSignal()
- {
- tlog.Debug(tag, $"ViewEventKeyInputFocusGainedSignal START");
-
- var testingTarget = new View();
- Assert.IsNotNull(testingTarget, "Can't create success object View");
- Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
-
- try
- {
- testingTarget.KeyInputFocusGainedSignal();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ViewEventKeyInputFocusGainedSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewEvent KeyInputFocusLostSignal.")]
- [Property("SPEC", "Tizen.NUI.ViewEvent.KeyInputFocusLostSignal A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewEventKeyKeyInputFocusLostSignal()
- {
- tlog.Debug(tag, $"ViewEventKeyKeyInputFocusLostSignal START");
-
- var testingTarget = new View();
- Assert.IsNotNull(testingTarget, "Can't create success object View");
- Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
-
- try
- {
- testingTarget.KeyInputFocusLostSignal();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ViewEventKeyKeyInputFocusLostSignal END (OK)");
- }
}
}
[Test]
[Category("P1")]
- [Description("PropertyNotification NotifySignal")]
- [Property("SPEC", "Tizen.NUI.PropertyNotification.NotifySignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public async Task PropertyNotificationNotifySignal()
- {
- tlog.Debug(tag, $"PropertyNotificationNotifySignal START");
-
- var view = new View();
- Assert.IsNotNull(view, "should not be null.");
- Assert.IsInstanceOf<View>(view, "should be an instance of View class!");
-
- Window.Instance.Add(view);
- var testingTarget = view.AddPropertyNotification("positionX", PropertyCondition.GreaterThan(100.0f));
- Assert.IsNotNull(testingTarget, "should not be null.");
- Assert.IsInstanceOf<PropertyNotification>(testingTarget, "should be an instance of PropertyNotification class!");
-
- testingTarget.SetNotifyMode(PropertyNotification.NotifyMode.NotifyOnChanged);
-#pragma warning disable CS0219 // Variable is assigned but its value is never used
- bool flag = false;
-#pragma warning restore CS0219 // Variable is assigned but its value is never used
- testingTarget.Notified += (obj, e) =>
- {
- flag = true;
- };
-
- testingTarget.Notified -= (obj, e) =>
- {
- flag = false;
- };
-
- view.Position = new Position(300.0f, 0.0f, 0.0f);
- await Task.Delay(200);
-
- var result = testingTarget.NotifySignal();
- Assert.IsNotNull(result, "Should be not null");
- Assert.IsInstanceOf<PropertyNotifySignal>(result, "Should be an instance of propertyNotifySignal");
-
- Window.Instance.Remove(view);
- testingTarget.Dispose();
- view.Dispose();
- tlog.Debug(tag, $"PropertyNotificationNotifySignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
[Description("PropertyNotification Assign")]
[Property("SPEC", "Tizen.NUI.PropertyNotification.Assign M")]
[Property("SPEC_URL", "-")]
[Test]
[Category("P1")]
- [Description("test Theme Resources .")]
- [Property("SPEC", "Tizen.NUI.Theme.Resources A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("COVPARAM", "")]
- public void ThemeResources()
- {
- tlog.Debug(tag, $"ThemeResources START");
-
- var result = theme.Resources;
- tlog.Debug(tag, "Resources : " + result);
-
- theme.SetChangedResources(changedResources);
-
- // resources == value
- theme.Resources = result;
- tlog.Debug(tag, "Resouces : " + theme.Resources);
-
- // resources != null
- ResourceDictionary dic = new ResourceDictionary();
- theme.Resources = dic;
- tlog.Debug(tag, "Resouces : " + theme.Resources);
-
- tlog.Debug(tag, $"ThemeResources END (OK)");
- }
-
- [Test]
- [Category("P1")]
[Description("test Theme this .")]
[Property("SPEC", "Tizen.NUI.Theme.this A")]
[Property("SPEC_URL", "-")]
tlog.Debug(tag, $"ThemeManagerAddPackageTheme END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("ThemeManager ApplyExternalPlatformTheme.")]
- [Property("SPEC", "Tizen.NUI.ThemeManager.ApplyExternalPlatformTheme M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- public void ThemeManagerApplyExternalPlatformTheme()
- {
- tlog.Debug(tag, $"ThemeManagerApplyExternalPlatformTheme START");
-
- var theme = new Theme(path);
- ViewStyle style = new ViewStyle()
- {
- Color = Color.Cyan,
- };
-
- theme.AddStyle("style", style);
-
- try
- {
- ThemeManager.ApplyExternalPlatformTheme(theme.Id, theme.Version);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ThemeManagerApplyExternalPlatformTheme END (OK)");
- }
}
}
tlog.Debug(tag, $"CaptureCaptureFinishedEventArgsSuccess END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("Capture.CaptureSignal constructor.")]
- [Property("SPEC", "Tizen.NUI.Capture.CaptureSignal.CaptureSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void CaptureCaptureSignalConstructor()
- {
- tlog.Debug(tag, $"CaptureCaptureSignalConstructor START");
-
- using (Capture capture = new Capture())
- {
- var testingTarget = new CaptureSignal(capture.SwigCPtr.Handle, true);
- Assert.IsNotNull(testingTarget, "Can't create success object CaptureSignal");
- Assert.IsInstanceOf<CaptureSignal>(testingTarget, "Should be an instance of CaptureSignal type.");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"CaptureCaptureSignalConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Capture.CaptureSignal Empty.")]
- [Property("SPEC", "Tizen.NUI.Capture.CaptureSignal.Empty M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void CaptureCaptureSignalEmpty()
- {
- tlog.Debug(tag, $"CaptureCaptureSignalEmpty START");
-
- using (Capture capture = new Capture())
- {
- var testingTarget = new CaptureSignal(capture.SwigCPtr.Handle, true);
- Assert.IsNotNull(testingTarget, "Can't create success object CaptureSignal");
- Assert.IsInstanceOf<CaptureSignal>(testingTarget, "Should be an instance of CaptureSignal type.");
-
- try
- {
- var result = testingTarget.Empty();
- tlog.Debug(tag, "Empty : " + result);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"CaptureCaptureSignalEmpty END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Capture.CaptureSignal GetConnectionCount.")]
- [Property("SPEC", "Tizen.NUI.Capture.CaptureSignal.GetConnectionCount M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void CaptureCaptureSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"CaptureCaptureSignalGetConnectionCount START");
-
- using (Capture capture = new Capture())
- {
- var testingTarget = new CaptureSignal(capture.SwigCPtr.Handle, true);
- Assert.IsNotNull(testingTarget, "Can't create success object CaptureSignal");
- Assert.IsInstanceOf<CaptureSignal>(testingTarget, "Should be an instance of CaptureSignal type.");
-
- var result = testingTarget.GetConnectionCount();
- tlog.Debug(tag, "ConnectionCount : " + result);
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"CaptureCaptureSignalGetConnectionCount END (OK)");
- }
-
private void OnFinishedEvent(object sender, CaptureFinishedEventArgs e)
{
IsCapturedFlag = true;
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.29519.181
+# Visual Studio Version 17
+VisualStudioVersion = 17.5.33516.290
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunit.framework", "nunit.framework\nunit.framework.csproj", "{47E42086-4DCE-4866-838E-2165D4068FA2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunitlite", "nunitlite\nunitlite.csproj", "{6809E103-3B5C-4315-BDC3-97D8D488C59D}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.NUI.Devel.Tests", "Tizen.NUI.TCT\Tizen.NUI.Devel.Tests.csproj", "{76F45553-4F99-4605-8746-E315F6AF9614}"
-EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Log", "..\..\src\Tizen.Log\Tizen.Log.csproj", "{14937855-613A-4B56-9996-90278AF7B7B8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Applications.Common", "..\..\src\Tizen.Applications.Common\Tizen.Applications.Common.csproj", "{4F76F623-6733-4CAF-BE64-A28823351CF1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.System.Feedback", "..\..\src\Tizen.System.Feedback\Tizen.System.Feedback.csproj", "{999E72B5-7822-4187-973A-08800270716A}"
EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.NUI.Devel.Tests", "Tizen.NUI.Devel.Tests\Tizen.NUI.Devel.Tests.csproj", "{F1E7CDB9-2440-4C64-A1F0-8A77E877FBD2}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
{6809E103-3B5C-4315-BDC3-97D8D488C59D}.NUI|Any CPU.Build.0 = Release|Any CPU
{6809E103-3B5C-4315-BDC3-97D8D488C59D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6809E103-3B5C-4315-BDC3-97D8D488C59D}.Release|Any CPU.Build.0 = Release|Any CPU
- {76F45553-4F99-4605-8746-E315F6AF9614}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {76F45553-4F99-4605-8746-E315F6AF9614}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {76F45553-4F99-4605-8746-E315F6AF9614}.NUI|Any CPU.ActiveCfg = Debug|Any CPU
- {76F45553-4F99-4605-8746-E315F6AF9614}.NUI|Any CPU.Build.0 = Debug|Any CPU
- {76F45553-4F99-4605-8746-E315F6AF9614}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {76F45553-4F99-4605-8746-E315F6AF9614}.Release|Any CPU.Build.0 = Release|Any CPU
{14937855-613A-4B56-9996-90278AF7B7B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{14937855-613A-4B56-9996-90278AF7B7B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{14937855-613A-4B56-9996-90278AF7B7B8}.NUI|Any CPU.ActiveCfg = Debug|Any CPU
{999E72B5-7822-4187-973A-08800270716A}.NUI|Any CPU.Build.0 = Release|Any CPU
{999E72B5-7822-4187-973A-08800270716A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{999E72B5-7822-4187-973A-08800270716A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F1E7CDB9-2440-4C64-A1F0-8A77E877FBD2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F1E7CDB9-2440-4C64-A1F0-8A77E877FBD2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F1E7CDB9-2440-4C64-A1F0-8A77E877FBD2}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {F1E7CDB9-2440-4C64-A1F0-8A77E877FBD2}.NUI|Any CPU.ActiveCfg = Debug|Any CPU
+ {F1E7CDB9-2440-4C64-A1F0-8A77E877FBD2}.NUI|Any CPU.Build.0 = Debug|Any CPU
+ {F1E7CDB9-2440-4C64-A1F0-8A77E877FBD2}.NUI|Any CPU.Deploy.0 = Debug|Any CPU
+ {F1E7CDB9-2440-4C64-A1F0-8A77E877FBD2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F1E7CDB9-2440-4C64-A1F0-8A77E877FBD2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F1E7CDB9-2440-4C64-A1F0-8A77E877FBD2}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE