testingTarget.Dispose();
tlog.Debug(tag, $"ComponentApplicationAssign END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("ComponentApplication CreateNative.")]
- //[Property("SPEC", "Tizen.NUI.ComponentApplication.CreateNative A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ComponentApplicationCreateNative()
- //{
- // tlog.Debug(tag, $"ComponentApplicationCreateNative START");
-
- // var testingTarget = new ComponentApplication(widget.SwigCPtr.Handle, true);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<ComponentApplication>(testingTarget, "should be an instance of testing target class!");
-
- // testingTarget.CreateNative += OnApplicationCreateNative;
- // testingTarget.CreateNative -= OnApplicationCreateNative;
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"ComponentApplicationCreateNative END (OK)");
- //}
-
- //private IntPtr OnApplicationCreateNative()
- //{
- // return IntPtr.Zero;
- //}
}
}
tlog.Debug(tag, $"WatchApplicationConstructor END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication constructor. With WatchApplication.")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.WatchApplication C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationConstructorWithApplication()
- //{
- // tlog.Debug(tag, $"WatchApplicationConstructorWithApplication START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // WatchApplication watchApplication = new WatchApplication(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(watchApplication, "should be not null");
- // Assert.IsInstanceOf<WatchApplication>(watchApplication, "should be an instance of testing target class!");
-
- // try
- // {
- // new WatchApplication(watchApplication);
- // }
- // catch (Exception e)
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_new_WatchApplication__SWIG_1' in shared library 'libdali2-csharp-binder.so' */
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // watchApplication.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchApplicationConstructorWithApplication END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("WatchApplication.TimeTickEventArgs. Application.")]
tlog.Debug(tag, $"WatchApplicationTimeTickEventArgsWatchTime END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication.TimeTick.")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.TimeTick A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationTimeTick()
- //{
- // tlog.Debug(tag, $"WatchApplicationTimeTick START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchApplication(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchApplication>(testingTarget, "should be an instance of testing target class!");
-
- // /** Unable to find an entry point named 'CSharp_Dali_WatchApplication_TimeTickSignal' in shared library 'libdali2-csharp-binder.so' */
- // testingTarget.TimeTick += MyOnTimeTick;
- // testingTarget.TimeTick -= MyOnTimeTick;
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchApplicationTimeTick END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication.TimeTickSignal.")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.TimeTickSignal A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationTimeTickSignal()
- //{
- // tlog.Debug(tag, $"WatchApplicationTimeTickSignal START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchApplication(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchApplication>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // testingTarget.TimeTickSignal();
- // }
- // catch (Exception e)
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchApplication_TimeTickSignal' in shared library 'libdali2-csharp-binder.so' */
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
- // }
-
- // tlog.Debug(tag, $"WatchApplicationTimeTickSignal END (OK)");
- //}
-
- private void MyOnTimeTick(object sender, TimeTickEventArgs e) { }
-
[Test]
[Category("P1")]
[Description("WatchApplication.AmbientTickEventArgs. Application.")]
tlog.Debug(tag, $"WatchApplicationAmbientTickArgsWatchTime END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication.AmbientTick.")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.AmbientTick A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationAmbientTick()
- //{
- // tlog.Debug(tag, $"WatchApplicationAmbientTick START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchApplication(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchApplication>(testingTarget, "should be an instance of testing target class!");
-
- // /** Unable to find an entry point named 'CSharp_Dali_WatchApplication_AmbientTickSignal' in shared library 'libdali2-csharp-binder.so' */
- // testingTarget.AmbientTick += MyOnAmbientTick;
- // testingTarget.AmbientTick -= MyOnAmbientTick;
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchApplicationAmbientTick END (OK)");
- //}
-
- //private void MyOnAmbientTick(object sender, AmbientTickEventArgs e) { }
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication.AmbientTickSignal.")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.AmbientTickSignal A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationAmbientTickSignal()
- //{
- // tlog.Debug(tag, $"WatchApplicationAmbientTickSignal START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchApplication(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchApplication>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // testingTarget.AmbientTickSignal();
- // }
- // catch (Exception e)
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchApplication_AmbientTickSignal' in shared library 'libdali2-csharp-binder.so' */
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
- // }
-
- // tlog.Debug(tag, $"WatchApplicationAmbientTickSignal END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("WatchApplication.AmbientChangedEventArgs. Application.")]
tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsChangedSet END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication.AmbientChanged.")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.AmbientChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationAmbientChanged()
- //{
- // tlog.Debug(tag, $"WatchApplicationAmbientChanged START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchApplication(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchApplication>(testingTarget, "should be an instance of testing target class!");
-
- // /** Unable to find an entry point named 'CSharp_Dali_WatchApplication_AmbientChangedSignal' in shared library 'libdali2-csharp-binder.so' */
- // testingTarget.AmbientChanged += MyOnAmbientChanged;
- // testingTarget.AmbientChanged -= MyOnAmbientChanged;
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchApplicationAmbientChanged END (OK)");
- //}
-
- //private void MyOnAmbientChanged(object sender, AmbientChangedEventArgs e) { }
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication.AmbientChangedSignal.")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.AmbientChangedSignal A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationAmbientChangedSignal()
- //{
- // tlog.Debug(tag, $"WatchApplicationAmbientChangedSignal START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchApplication(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchApplication>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // testingTarget.AmbientChangedSignal();
- // }
- // catch (Exception e)
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchApplication_AmbientChangedSignal' in shared library 'libdali2-csharp-binder.so' */
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
- // }
-
- // tlog.Debug(tag, $"WatchApplicationAmbientChangedSignal END (OK)");
- //}
}
}
public class InternalWatchBoolSignalTest
{
private const string tag = "NUITEST";
- private delegate bool dummyCallback(IntPtr application);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- internal class MyWatchBoolSignal : WatchBoolSignal
- {
- public MyWatchBoolSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
- { }
-
- public void OnReleaseSwigCPtr(global::System.Runtime.InteropServices.HandleRef swigCPtr)
- {
- base.ReleaseSwigCPtr(swigCPtr);
- }
- }
[SetUp]
public void Init()
tlog.Debug(tag, $"WatchBoolSignalConstructor END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication ReleaseSwigCPtr.")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.ReleaseSwigCPtr M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationReleaseSwigCPtr()
- //{
- // tlog.Debug(tag, $"WatchBoolSignalReleaseSwigCPtr START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new MyWatchBoolSignal(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchBoolSignal>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // testingTarget.OnReleaseSwigCPtr(imageView.SwigCPtr);
- // }
- // catch (Exception e)
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_delete_WatchBoolSignal' in shared library 'libdali2-csharp-binder.so' */
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchBoolSignalReleaseSwigCPtr END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchBoolSignal Empty.")]
- //[Property("SPEC", "Tizen.NUI.WatchBoolSignal.Empty M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchBoolSignalEmpty()
- //{
- // tlog.Debug(tag, $"WatchBoolSignalEmpty START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchBoolSignal(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchBoolSignal>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchBoolSignal_Empty' in shared library 'libdali2-csharp-binder.so' */
- // var result = testingTarget.Empty();
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
- // tlog.Debug(tag, $"WatchBoolSignalEmpty END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchBoolSignal GetConnectionCount.")]
- //[Property("SPEC", "Tizen.NUI.WatchBoolSignal.GetConnectionCount M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchBoolSignalGetConnectionCount()
- //{
- // tlog.Debug(tag, $"WatchBoolSignalGetConnectionCount START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchBoolSignal(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchBoolSignal>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchBoolSignal_GetConnectionCount' in shared library 'libdali2-csharp-binder.so' */
- // var result = testingTarget.GetConnectionCount();
- // Assert.IsTrue(result == 0, "result should be 0");
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
- // tlog.Debug(tag, $"WatchBoolSignalGetConnectionCount END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchBoolSignal connection.")]
- //[Property("SPEC", "Tizen.NUI.WatchBoolSignal.Connect M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchBoolSignalConnection()
- //{
- // tlog.Debug(tag, $"WatchBoolSignalConnection START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchBoolSignal(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchBoolSignal>(testingTarget, "should be an instance of testing target class!");
-
- // dummyCallback callback = OnDummyCallback;
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchBoolSignal_Connect' in shared library 'libdali2-csharp-binder.so' */
- // testingTarget.Connect(callback);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
- // tlog.Debug(tag, $"WatchBoolSignalConnection END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchBoolSignal disconnection.")]
- //[Property("SPEC", "Tizen.NUI.WatchBoolSignal.Disconnect M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchBoolSignalDisconnection()
- //{
- // tlog.Debug(tag, $"WatchBoolSignalDisconnection START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchBoolSignal(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchBoolSignal>(testingTarget, "should be an instance of testing target class!");
-
- // dummyCallback callback = OnDummyCallback;
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchBoolSignal_Disconnect' in shared library 'libdali2-csharp-binder.so' */
- // 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, $"WatchBoolSignalDisconnection END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchBoolSignal Emit.")]
- //[Property("SPEC", "Tizen.NUI.WatchBoolSignal.Emit M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchBoolSignalEmit()
- //{
- // tlog.Debug(tag, $"WatchBoolSignalEmit 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 (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchBoolSignal(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchBoolSignal>(testingTarget, "should be an instance of testing target class!");
-
- // Widget widget = new Widget();
- // var application = new WidgetApplication(widget.GetIntPtr(), false);
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchBoolSignal_Emit' in shared library 'libdali2-csharp-binder.so' */
- // testingTarget.Emit(application, true);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // widget.Dispose();
- // widget = null;
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchBoolSignalEmit END (OK)");
- //}
}
}
public class InternalWatchTimeSignalTest
{
private const string tag = "NUITEST";
- private delegate bool dummyCallback(IntPtr application);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
[SetUp]
public void Init()
tlog.Debug(tag, $"WatchTimeSignalConstructor END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTimeSignal Empty.")]
- //[Property("SPEC", "Tizen.NUI.WatchTimeSignal.Empty M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeSignalEmpty()
- //{
- // tlog.Debug(tag, $"WatchTimeSignalEmpty START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchTimeSignal(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTimeSignal>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTimeSignal_Empty' in shared library 'libdali2-csharp-binder.so' */
- // var result = testingTarget.Empty();
- // Assert.IsTrue(result);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeSignalEmpty END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTimeSignal GetConnectionCount.")]
- //[Property("SPEC", "Tizen.NUI.WatchTimeSignal.GetConnectionCount M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeSignalGetConnectionCount()
- //{
- // tlog.Debug(tag, $"WatchTimeSignalGetConnectionCount START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchTimeSignal(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTimeSignal>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTimeSignal_GetConnectionCount' in shared library 'libdali2-csharp-binder.so' */
- // var result = testingTarget.GetConnectionCount();
- // Assert.IsTrue(result == 0, "result should be 0");
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeSignalGetConnectionCount END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTimeSignal connection.")]
- //[Property("SPEC", "Tizen.NUI.WatchTimeSignal.Connect M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeSignalConnection()
- //{
- // tlog.Debug(tag, $"WatchTimeSignalConnection START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchTimeSignal(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTimeSignal>(testingTarget, "should be an instance of testing target class!");
-
- // dummyCallback callback = OnDummyCallback;
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTimeSignal_Connect' in shared library 'libdali2-csharp-binder.so' */
- // 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, $"WatchTimeSignalConnection END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTimeSignal disconnection.")]
- //[Property("SPEC", "Tizen.NUI.WatchTimeSignal.Disconnection M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeSignalDisconnection()
- //{
- // tlog.Debug(tag, $"WatchTimeSignalDisconnection START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchTimeSignal(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTimeSignal>(testingTarget, "should be an instance of testing target class!");
-
- // dummyCallback callback = OnDummyCallback;
- // testingTarget.Connect(callback);
- // testingTarget.Disconnect(callback);
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeSignalDisconnection END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTimeSignal Emit.")]
- //[Property("SPEC", "Tizen.NUI.WatchTimeSignal.Emit M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeSignalEmit()
- //{
- // tlog.Debug(tag, $"WatchTimeSignalEmit 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 (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new WatchTimeSignal(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTimeSignal>(testingTarget, "should be an instance of testing target class!");
-
- // Widget widget = new Widget();
- // WidgetApplication application = new WidgetApplication(widget.GetIntPtr(), false);
- // WatchTime watchTime = new WatchTime(widget.GetIntPtr(), false);
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTimeSignal_Emit' in shared library 'libdali2-csharp-binder.so' */
- // testingTarget.Emit(application, watchTime);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // application.Dispose();
- // watchTime.Dispose();
- // testingTarget.Dispose();
-
- // widget.Dispose();
- // widget = null;
- // }
-
- // tlog.Debug(tag, $"WatchTimeSignalEmit END (OK)");
- //}
}
}
tlog.Debug(tag, $"AnyAssign END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("Any AssertAlways.")]
- //[Property("SPEC", "Tizen.NUI.Any.AssertAlways M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void AnyAssertAlways()
- //{
- // tlog.Debug(tag, $"AnyAssertAlways START");
-
- // try
- // {
- // Any.AssertAlways("This is the test for Any class.");
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // tlog.Debug(tag, $"AnyAssertAlways END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("Any GetType.")]
testingTarget.Dispose();
tlog.Debug(tag, $"InputMethodOptionsRetrieveProperty END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("InputMethodOptions CompareAndSet")]
- //[Property("SPEC", "Tizen.NUI.InputMethodOptions.CompareAndSet M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void InputMethodOptionsCompareAndSet()
- //{
- // tlog.Debug(tag, $"InputMethodOptionsCompareAndSet START");
-
- // var testingTarget = new InputMethodOptions();
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<InputMethodOptions>(testingTarget, "should be an instance of InputMethodOptions class!");
-
- // var result = testingTarget.CompareAndSet(InputMethod.CategoryType.ActionButtonTitle, testingTarget, new SWIGTYPE_p_int(testingTarget.SwigCPtr.Handle));
- // tlog.Debug(tag, result.ToString());
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"InputMethodOptionsCompareAndSet END (OK)");
- //}
}
}
{
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, "Destroy() is called!");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("ListEventSignalType constructor.")]
- //[Property("SPEC", "Tizen.NUI.ListEventSignalType.ListEventSignalType C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ListEventSignalTypeConstructor()
- //{
- // tlog.Debug(tag, $"ListEventSignalTypeConstructor START");
-
- // var testingTarget = new ListEventSignalType();
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"ListEventSignalTypeConstructor END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("ListEventSignalType Empty.")]
- //[Property("SPEC", "Tizen.NUI.ListEventSignalType.Empty M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ListEventSignalTypeEmpty()
- //{
- // tlog.Debug(tag, $"ListEventSignalTypeEmpty START");
-
- // var testingTarget = new ListEventSignalType();
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
-
- // try
- // {
- // testingTarget.Empty();
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
-
- // tlog.Debug(tag, $"ListEventSignalTypeEmpty END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("ListEventSignalType GetConnectionCount.")]
- //[Property("SPEC", "Tizen.NUI.ListEventSignalType.GetConnectionCount M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ListEventSignalTypeGetConnectionCount()
- //{
- // tlog.Debug(tag, $"ListEventSignalTypeGetConnectionCount START");
-
- // var testingTarget = new ListEventSignalType();
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
-
- // try
- // {
- // testingTarget.GetConnectionCount();
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
-
- // tlog.Debug(tag, $"ListEventSignalTypeGetConnectionCount END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("ListEventSignalType Connect.")]
- //[Property("SPEC", "Tizen.NUI.ListEventSignalType.Connect M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ListEventSignalTypeConnect()
- //{
- // tlog.Debug(tag, $"ListEventSignalTypeConnect START");
-
- // var testingTarget = new ListEventSignalType();
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
-
- // 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, $"ListEventSignalTypeConnect END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("ListEventSignalType Emit.")]
- //[Property("SPEC", "Tizen.NUI.ListEventSignalType.Emit M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ListEventSignalTypeEmit()
- //{
- // tlog.Debug(tag, $"ListEventSignalTypeEmit 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 ListEventSignalType();
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
-
- // try
- // {
- // testingTarget.Emit(view);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"ListEventSignalTypeEmit END (OK)");
- //}
}
}
tlog.Debug(tag, $"RenderTaskAssign END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("RenderTask SetSourceView.")]
- //[Property("SPEC", "Tizen.NUI.RenderTask.SetSourceView M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void RenderTaskSetSourceView()
- //{
- // tlog.Debug(tag, $"RenderTaskSetSourceView START");
-
- // using (View view = new View())
- // {
- // using (Animatable ani = new Animatable())
- // {
- // var testingTarget = new RenderTask(ani.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "Can't create success object RenderTask.");
- // Assert.IsInstanceOf<RenderTask>(testingTarget, "Should return RenderTask instance.");
-
- // try
- // {
- // testingTarget.SetSourceView(view);
-
- // var result = testingTarget.GetSourceView();
- // tlog.Debug(tag, "SourceView : " + result);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
- // }
-
- // tlog.Debug(tag, $"RenderTaskSetSourceView END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("RenderTask SetExclusive.")]
tlog.Debug(tag, $"RenderTaskSetInputEnabled END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("RenderTask SetCamera.")]
- //[Property("SPEC", "Tizen.NUI.RenderTask.SetCamera M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void RenderTaskSetCamera()
- //{
- // tlog.Debug(tag, $"RenderTaskSetCamera START");
-
- // using (View view = new View() { Size = new Size(100, 50) })
- // {
- // var testingTarget = new RenderTask(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "Can't create success object RenderTask.");
- // Assert.IsInstanceOf<RenderTask>(testingTarget, "Should return RenderTask instance.");
-
- // using (Camera camera = new Camera())
- // {
- // try
- // {
- // testingTarget.SetCamera(camera);
-
- // var result = testingTarget.GetCamera();
- // tlog.Debug(tag, "Camera : " + result);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"RenderTaskSetCamera END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("RenderTask SetFrameBuffer.")]
tlog.Debug(tag, $"RenderTaskSetRefreshRate END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("RenderTask WorldToViewport.")]
- //[Property("SPEC", "Tizen.NUI.RenderTask.WorldToViewport M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //[Obsolete]
- //public void RenderTaskWorldToViewport()
- //{
- // tlog.Debug(tag, $"RenderTaskWorldToViewport START");
-
- // using (View view = new View() { Size = new Size(100, 50) })
- // {
- // var testingTarget = new RenderTask(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "Can't create success object RenderTask.");
- // Assert.IsInstanceOf<RenderTask>(testingTarget, "Should return RenderTask instance.");
-
- // using (Vector3 position = new Vector3(0.3f, 0.5f, 0.0f))
- // {
- // var result = testingTarget.WorldToViewport(position, out float viewportX, out float viewportY);
- // tlog.Debug(tag, "WorldToViewport : " + result);
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"RenderTaskWorldToViewport END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("RenderTask ViewportToLocal.")]
tlog.Debug(tag, $"ResizeSignalConnect END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("ResizeSignal Emit.")]
- //[Property("SPEC", "Tizen.NUI.ResizeSignal.Emit M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ResizeSignalEmit()
- //{
- // tlog.Debug(tag, $"ResizeSignalEmit 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())
- // {
- // view.Size2D = new Size2D(50, 60);
- // var testingTarget = new ResizeSignal(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<ResizeSignal>(testingTarget, "Should be an Instance of ResizeSignal!");
-
- // try
- // {
- // using (Size2D size = new Size2D(20, 30))
- // {
- // testingTarget.Emit(size);
- // }
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"ResizeSignalEmit END (OK)");
- //}
}
}
tlog.Debug(tag, $"ScrollViewSnapStartedSignalConnect END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("ScrollViewSnapStartedSignal Emit.")]
- //[Property("SPEC", "Tizen.NUI.ScrollViewSnapStartedSignal.Emit M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ScrollViewSnapStartedSignalEmit()
- //{
- // tlog.Debug(tag, $"ScrollViewSnapStartedSignalEmit 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 ScrollViewSnapStartedSignal();
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<ScrollViewSnapStartedSignal>(testingTarget, "Should be an Instance of ScrollViewSnapStartedSignal!");
-
- // try
- // {
- // testingTarget.Emit(new ScrollView.SnapEvent());
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
-
- // tlog.Debug(tag, $"ScrollViewSnapStartedSignalEmit END (OK)");
- //}
}
}
tlog.Debug(tag, $"StringToVoidSignalGetResult END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("StringToVoidSignal SetResult.")]
- //[Property("SPEC", "Tizen.NUI.StringToVoidSignal.SetResult M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void StringToVoidSignalSetResult()
- //{
- // tlog.Debug(tag, $"StringToVoidSignalSetResult START");
-
- // using (TextLabel label = new TextLabel())
- // {
- // label.Text = "";
- // try
- // {
- // StringToVoidSignal.SetResult(label.SwigCPtr.Handle, "TextLabel");
- // tlog.Debug(tag, "GetResult : " + StringToVoidSignal.GetResult(label.SwigCPtr.Handle));
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Cuaght Exception: Failed!");
- // }
- // }
-
- // tlog.Debug(tag, $"StringToVoidSignalSetResult END (OK)");
- //}
}
}
tlog.Debug(tag, $"ViewImplSignal (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("ViewImpl EmitKeyEventSignal.")]
- //[Property("SPEC", "Tizen.NUI.ViewImpl.EmitKeyEventSignal M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("COVPARAM", "")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ViewImplEmitKeyEventSignal()
- //{
- // tlog.Debug(tag, $"ViewImplEmitKeyEventSignal 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!");
-
- // using (Key key = new Key())
- // {
- // var result = testingTarget.viewWrapperImpl.EmitKeyEventSignal(key);
- // tlog.Debug(tag, "EmitKeyEventSignal : " + result);
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"ViewImplEmitKeyEventSignal (OK)");
- //}
}
}
tlog.Debug(tag, $"ViewVisibilityChangedSignalConnect END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("ViewVisibilityChangedSignal Emit.")]
- //[Property("SPEC", "Tizen.NUI.ViewVisibilityChangedSignal.Emit M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ViewVisibilityChangedSignalEmit()
- //{
- // tlog.Debug(tag, $"ViewVisibilityChangedSignalEmit 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 ViewVisibilityChangedSignal(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<ViewVisibilityChangedSignal>(testingTarget, "Should be an Instance of ViewVisibilityChangedSignal!");
-
- // using (View parent = new View())
- // {
- // parent.Add(view);
- // try
- // {
- // testingTarget.Emit(view, true, 1);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"ViewVisibilityChangedSignalEmit END (OK)");
- //}
}
}
tlog.Debug(tag, $"ViewWrapperImplConstructor END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("ViewWrapperImpl New.")]
- //[Property("SPEC", "Tizen.NUI.ViewWrapperImpl.New M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("COVPARAM", "")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ViewWrapperImplNew()
- //{
- // tlog.Debug(tag, $"ViewWrapperImplNew START");
-
- // using (ViewWrapperImpl impl = new ViewWrapperImpl(CustomViewBehaviour.ViewBehaviourDefault))
- // {
- // var testingTarget = ViewWrapperImpl.New("CustomView", impl);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<ViewWrapper>(testingTarget, "should be an instance of testing target class!");
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"ViewWrapperImplNew END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("ViewWrapperImpl ApplyThemeStyle.")]
- //[Property("SPEC", "Tizen.NUI.ViewWrapperImpl.ApplyThemeStyle M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("COVPARAM", "")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ViewWrapperImplApplyThemeStyle()
- //{
- // tlog.Debug(tag, $"ViewWrapperImplApplyThemeStyle START");
-
- // var testingTarget = new ViewWrapperImpl(CustomViewBehaviour.ViewBehaviourDefault);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<ViewWrapperImpl>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // testingTarget.ApplyThemeStyle();
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"ViewWrapperImplApplyThemeStyle END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("ViewWrapperImpl ViewBehaviourFlagCount.")]
tlog.Info(tag, "Destroy() is called!");
}
- //[Test]
- //[Category("P1")]
- //[Description("WeakEvent Add.")]
- //[Property("SPEC", "Tizen.NUI.WeakEvent.Add M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WeakEventAdd()
- //{
- // tlog.Debug(tag, $"WeakEventAdd START");
-
- // var testingTarget = new NUI.WeakEvent<EventHandler<EventArgs>>();
- // Assert.IsNotNull(testingTarget, "Can't create success object WeakEvent");
- // Assert.IsInstanceOf<NUI.WeakEvent<EventHandler<EventArgs>>>(testingTarget, "Should be an instance of WeakEvent type.");
-
- // TChanged += OnDummyCallback;
-
- // try
- // {
- // testingTarget.Add(TChanged);
- // testingTarget.Remove(TChanged);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
-
- // TChanged -= OnDummyCallback;
- // tlog.Debug(tag, $"WeakEventAdd END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("WeakEvent Invoke.")]
tlog.Debug(tag, $"DefaultFrameBrokerOnFrameErred END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("DefaultFrameBroker SendLaunchRequest.")]
- //[Property("SPEC", "Tizen.NUI.DefaultFrameBroker.SendLaunchRequest M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void DefaultFrameBrokerSendLaunchRequest()
- //{
- // tlog.Debug(tag, $"DefaultFrameBrokerSendLaunchRequest START");
-
- // var testingTarget = new DefaultFrameBroker(Window.Instance);
- // Assert.IsNotNull(testingTarget, "Can't create success object CustomView");
- // Assert.IsInstanceOf<DefaultFrameBroker>(testingTarget, "Should be an instance of DefaultFrameBroker type.");
-
- // try
- // {
- // Tizen.Applications.AppControl appControl = new Tizen.Applications.AppControl();
- // appControl.Operation = Tizen.Applications.AppControlOperations.Call;
- // appControl.ApplicationId = MyAppId;
- // testingTarget.SendLaunchRequest(appControl, true);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
-
- // testingTarget.Dispose();
-
- // tlog.Debug(tag, $"DefaultFrameBrokerSendLaunchRequest END (OK)");
- //}
}
}
tlog.Debug(tag, $"FrameDataPositionY END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("FrameData Extra.")]
- //[Property("SPEC", "Tizen.NUI.FrameData.Extra A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void FrameDataExtra()
- //{
- // tlog.Debug(tag, $"FrameDataExtra START");
-
- // using (ImageView image = new ImageView())
- // {
- // image.ResourceUrl = path;
- // image.backgroundExtraData = new BackgroundExtraData();
-
- // var testingTarget = new FrameData(image.SwigCPtr.Handle);
- // Assert.IsNotNull(testingTarget, "Can't create success object CustomView");
- // Assert.IsInstanceOf<FrameData>(testingTarget, "Should be an instance of FrameData type.");
-
- // try
- // {
- // var result = testingTarget.Extra;
- // tlog.Debug(tag, "Extra : " + result);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
- // }
-
- // tlog.Debug(tag, $"FrameDataExtra END (OK)");
- //}
}
}
tlog.Debug(tag, $"TransitionSetSignalGetConnectionCount END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("TransitionSetSignal Connect.")]
- //[Property("SPEC", "Tizen.NUI.TransitionSetSignal.Connect M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void TransitionSetSignalConnect()
- //{
- // tlog.Debug(tag, $"TransitionSetSignalConnect START");
-
- // using (View view = new View())
- // {
- // var testingTarget = new TransitionSetFinishedSignal(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<TransitionSetFinishedSignal>(testingTarget, "Should be an Instance of TransitionSetFinishedSignal!");
-
- // 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, $"TransitionSetSignalConnect END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("TransitionSetSignal Connect. With IntPtr")]
- //[Property("SPEC", "Tizen.NUI.TransitionSetSignal.Connect M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void TransitionSetSignalConnectWithIntPtr()
- //{
- // tlog.Debug(tag, $"TransitionSetSignalConnectWithIntPtr START");
-
- // using (View view = new View())
- // {
- // var testingTarget = new TransitionSetFinishedSignal(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<TransitionSetFinishedSignal>(testingTarget, "Should be an Instance of TransitionSetFinishedSignal!");
-
- // try
- // {
- // testingTarget.Connect(view.SwigCPtr.Handle);
- // testingTarget.Disconnect(view.SwigCPtr.Handle);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"TransitionSetSignalConnectWithIntPtr END (OK)");
- //}
}
}
tlog.Debug(tag, $"ConnectionTrackerInterfaceConstructor END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("ConnectionTrackerInterface SignalConnected.")]
- //[Property("SPEC", "Tizen.NUI.ConnectionTrackerInterface.SignalConnected M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ConnectionTrackerInterfaceSignalConnected()
- //{
- // tlog.Debug(tag, $"ConnectionTrackerInterfaceSignalConnected START");
-
- // using (View view = new View())
- // {
- // var testingTarget = new ConnectionTrackerInterface(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<ConnectionTrackerInterface>(testingTarget, "Should be an Instance of ConnectionTrackerInterface!");
-
- // try
- // {
- // var slotObserver = new SlotObserver(testingTarget.SwigCPtr.Handle, false);
- // var callback = new SWIGTYPE_p_CallbackBase(testingTarget.SwigCPtr.Handle);
- // testingTarget.SignalConnected(slotObserver, callback);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"ConnectionTrackerInterfaceSignalConnected END (OK)");
- //}
}
}
tlog.Debug(tag, $"PageTurnLandscapeViewAssign END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("PageTurnLandscapeView constructor.")]
- //[Property("SPEC", "Tizen.NUI.PageTurnLandscapeView.PageTurnLandscapeView C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void PageTurnLandscapeViewConstructorWith2Parameters()
- //{
- // tlog.Debug(tag, $"PageTurnLandscapeViewConstructorWith2Parameters START");
-
- // using (View view = new View())
- // {
- // using (PageFactory pageFactory = new PageFactory(view.SwigCPtr.Handle, true))
- // {
- // using (Vector2 pageSize = new Vector2(100, 50))
- // {
- // var testingTarget = new PageTurnLandscapeView(pageFactory, pageSize);
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<PageTurnLandscapeView>(testingTarget, "Should be an Instance of PageTurnLandscapeView!");
-
- // testingTarget.Dispose();
- // }
- // }
- // }
-
- // tlog.Debug(tag, $"PageTurnLandscapeViewConstructorWith2Parameters END (OK)");
- //}
}
}
tlog.Debug(tag, $"PageTurnPortraitViewAssign END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("PageTurnPortraitView constructor.")]
- //[Property("SPEC", "Tizen.NUI.PageTurnPortraitView.PageTurnPortraitView C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void PageTurnPortraitViewConstructorWith2Parameters()
- //{
- // tlog.Debug(tag, $"PageTurnPortraitViewConstructorWith2Parameters START");
-
- // using (View view = new View())
- // {
- // using (PageFactory pageFactory = new PageFactory(view.SwigCPtr.Handle, false))
- // {
- // using (Vector2 pageSize = new Vector2(100, 50))
- // {
- // var testingTarget = new PageTurnPortraitView(pageFactory, pageSize);
- // Assert.IsNotNull(testingTarget, "Should be not null!");
- // Assert.IsInstanceOf<PageTurnPortraitView>(testingTarget, "Should be an Instance of PageTurnPortraitView!");
-
- // testingTarget.Dispose();
- // }
- // }
- // }
-
- // tlog.Debug(tag, $"PageTurnPortraitViewConstructorWith2Parameters END (OK)");
- //}
}
}
public class InternalWebViewContextMenuHiddenEventArgsTest
{
private const string tag = "NUITEST";
- private string url = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
[SetUp]
public void Init()
{
tlog.Info(tag, "Destroy() is called!");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("WebViewContextMenuHiddenEventArgs constructor.")]
- //[Property("SPEC", "Tizen.NUI.WebViewContextMenuHiddenEventArgs.WebViewContextMenuHiddenEventArgs C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("COVPARAM", "")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WebViewContextMenuHiddenEventArgsConstructor()
- //{
- // tlog.Debug(tag, $"WebViewContextMenuHiddenEventArgsConstructor START");
-
- // using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
- // {
- // WebContextMenu menu = new WebContextMenu(webview.SwigCPtr.Handle, false);
-
- // var testingTarget = new WebViewContextMenuHiddenEventArgs(menu);
- // Assert.IsNotNull(testingTarget, "null handle");
- // Assert.IsInstanceOf<WebViewContextMenuHiddenEventArgs>(testingTarget, "Should return WebViewContextMenuHiddenEventArgs instance.");
-
- // menu.Dispose();
- // }
-
- // tlog.Debug(tag, $"WebViewContextMenuHiddenEventArgsConstructor END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WebViewContextMenuHiddenEventArgs ContextMenu.")]
- //[Property("SPEC", "Tizen.NUI.WebViewContextMenuHiddenEventArgs.ContextMenu A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("COVPARAM", "")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WebViewContextMenuHiddenEventArgsContextMenu()
- //{
- // tlog.Debug(tag, $"WebViewContextMenuHiddenEventArgsContextMenu START");
-
- // using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
- // {
- // WebContextMenu menu = new WebContextMenu(webview.SwigCPtr.Handle, false);
-
- // var testingTarget = new WebViewContextMenuHiddenEventArgs(menu);
- // Assert.IsNotNull(testingTarget, "null handle");
- // Assert.IsInstanceOf<WebViewContextMenuHiddenEventArgs>(testingTarget, "Should return WebViewContextMenuHiddenEventArgs instance.");
-
- // var result = testingTarget.ContextMenu;
- // tlog.Debug(tag, "ContextMenu : " + result);
-
- // menu.Dispose();
- // }
-
- // tlog.Debug(tag, $"WebViewContextMenuHiddenEventArgsContextMenu END (OK)");
- //}
}
}
public class InternalWebViewContextMenuShownEventArgsTest
{
private const string tag = "NUITEST";
- private string url = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
[SetUp]
public void Init()
{
tlog.Info(tag, "Destroy() is called!");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("WebViewContextMenuShownEventArgs constructor.")]
- //[Property("SPEC", "Tizen.NUI.WebViewContextMenuShownEventArgs.WebViewContextMenuShownEventArgs C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("COVPARAM", "")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WebViewContextMenuShownEventArgsConstructor()
- //{
- // tlog.Debug(tag, $"WebViewContextMenuShownEventArgsConstructor START");
-
- // using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
- // {
- // WebContextMenu menu = new WebContextMenu(webview.SwigCPtr.Handle, false);
-
- // var testingTarget = new WebViewContextMenuShownEventArgs(menu);
- // Assert.IsNotNull(testingTarget, "null handle");
- // Assert.IsInstanceOf<WebViewContextMenuShownEventArgs>(testingTarget, "Should return WebViewContextMenuShownEventArgs instance.");
-
- // menu.Dispose();
- // }
-
- // tlog.Debug(tag, $"WebViewContextMenuShownEventArgsConstructor END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WebViewContextMenuShownEventArgs ContextMenu.")]
- //[Property("SPEC", "Tizen.NUI.WebViewContextMenuShownEventArgs.ContextMenu A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("COVPARAM", "")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WebViewContextMenuShownEventArgsContextMenu()
- //{
- // tlog.Debug(tag, $"WebViewContextMenuShownEventArgsContextMenu START");
-
- // using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
- // {
- // WebContextMenu menu = new WebContextMenu(webview.SwigCPtr.Handle, false);
-
- // var testingTarget = new WebViewContextMenuShownEventArgs(menu);
- // Assert.IsNotNull(testingTarget, "null handle");
- // Assert.IsInstanceOf<WebViewContextMenuShownEventArgs>(testingTarget, "Should return WebViewContextMenuShownEventArgs instance.");
-
- // var result = testingTarget.ContextMenu;
- // tlog.Debug(tag, "ContextMenu : " + result);
-
- // menu.Dispose();
- // }
-
- // tlog.Debug(tag, $"WebViewContextMenuShownEventArgsContextMenu END (OK)");
- //}
}
}
tlog.Debug(tag, $"WidgetApplicationReleaseSwigCPtr END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("WidgetApplication RegisterWidgetCreatingFunction.")]
- //[Property("SPEC", "Tizen.NUI.WidgetApplication.RegisterWidgetCreatingFunction M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WidgetApplicationRegisterWidgetCreatingFunction()
- //{
- // tlog.Debug(tag, $"WidgetApplicationRegisterWidgetCreatingFunction START");
-
- // Widget widget = new Widget();
-
- // var testingTarget = new MyWidgetApplication(widget.GetIntPtr(), false);
- // Assert.IsNotNull(testingTarget, "Can't create success object WidgetApplication");
- // Assert.IsInstanceOf<WidgetApplication>(testingTarget, "Should be an instance of WidgetApplication type.");
-
- // global::System.Collections.Generic.Dictionary<Type, string> widgetInfo = new global::System.Collections.Generic.Dictionary<Type, string>(){
- // { typeof(Widget), "w1@org.tizen.WidgetApp"} };
-
- // testingTarget.RegisterWidgetInfo(widgetInfo);
-
- // try
- // {
- // testingTarget.RegisterWidgetCreatingFunction();
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // widget.Dispose();
- // widget = null;
-
- // testingTarget.Dispose();
- // testingTarget = null;
- // tlog.Debug(tag, $"WidgetApplicationRegisterWidgetCreatingFunction END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("WidgetApplication AddWidgetInstance.")]
tlog.Debug(tag, $"WidgetApplicationRegisterWidgetInfo END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("WidgetApplication AddWidgetInfo.")]
- //[Property("SPEC", "Tizen.Applications.WidgetApplication.AddWidgetInfo M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WidgetApplicationAddWidgetInfo()
- //{
- // tlog.Debug(tag, $"WidgetApplicationAddWidgetInfo START");
-
- // Widget widget = new Widget();
-
- // var testingTarget = new WidgetApplication(widget.GetIntPtr(), false);
- // Assert.IsNotNull(testingTarget, "Can't create success object WidgetApplication");
- // Assert.IsInstanceOf<WidgetApplication>(testingTarget, "Should be an instance of WidgetApplication type.");
-
- // global::System.Collections.Generic.Dictionary<Type, string> widgetInfo = new global::System.Collections.Generic.Dictionary<Type, string>(){
- // { typeof(Widget), "w1@org.tizen.WidgetApp"} };
- // testingTarget.RegisterWidgetInfo(widgetInfo);
-
- // try
- // {
- // testingTarget.AddWidgetInfo(new global::System.Collections.Generic.Dictionary<Type, string>(){
- // { typeof(WidgetApplication), "w2@org.tizen.WidgetApp"} });
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // widget.Dispose();
- // widget = null;
-
- // testingTarget.Dispose();
- // testingTarget = null;
- // tlog.Debug(tag, $"WidgetApplicationAddWidgetInfo END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("WidgetApplication WidgetCreateFunction.")]
throw new NotImplementedException();
}
}
-
- //[Test]
- //[Category("P1")]
- //[Description("FillResourceDictionariesVisitor IsResourceDictionary")]
- //[Property("SPEC", "Tizen.NUI.FillResourceDictionariesVisitor.IsResourceDictionary M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void FillResourceDictionariesVisitorIsResourceDictionary()
- //{
- // tlog.Debug(tag, $"FillResourceDictionariesVisitorVisitNodeOnDataTemplate START");
-
- // try
- // {
- // IList<XmlType> list = null;
- // XmlType xmlType = new XmlType("myNameSpace", "myName", list);
- // Assert.IsNotNull(xmlType, "null XmlType");
- // IXmlNamespaceResolverImplement i1 = new IXmlNamespaceResolverImplement();
- // Assert.IsNotNull(i1, "null IXmlNamespaceResolverImplement");
- // ElementNode n1 = new ElementNode(xmlType, "myNameSpace", i1);
- // Assert.IsNotNull(n1, "null ElementNode");
- // bool b1 = f1.IsResourceDictionary(n1);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"FillResourceDictionariesVisitorVisitNodeOnDataTemplate END");
- //}
-
}
}
\ No newline at end of file
tlog.Debug(tag, $"NamescopingVisitorConstructor END");
}
- //[Test]
- //[Category("P1")]
- //[Description("NamescopingVisitor VisitingMode")]
- //[Property("SPEC", "Tizen.NUI.NamescopingVisitor.VisitingMode A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //public void NamescopingVisitorVisitingMode()
- //{
- // tlog.Debug(tag, $"NamescopingVisitorVisitingMode START");
-
- // try
- // {
- // Assert.IsNotNull(n1, "null NamescopingVisitor");
- // TreeVisitingMode t1 = n1.VisitingMode;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"NamescopingVisitorVisitingMode END");
-
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NamescopingVisitor StopOnDataTemplate")]
- //[Property("SPEC", "Tizen.NUI.NamescopingVisitor.StopOnDataTemplate A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //public void NamescopingVisitorStopOnDataTemplate()
- //{
- // tlog.Debug(tag, $"NamescopingVisitorStopOnDataTemplate START");
-
- // try
- // {
- // Assert.IsNotNull(n1, "null NamescopingVisitor");
- // bool b1 = n1.StopOnDataTemplate;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"NamescopingVisitorStopOnDataTemplate END");
-
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NamescopingVisitor StopOnResourceDictionary")]
- //[Property("SPEC", "Tizen.NUI.NamescopingVisitor.StopOnResourceDictionary A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //public void NamescopingVisitorStopOnResourceDictionary()
- //{
- // tlog.Debug(tag, $"NamescopingVisitorStopOnResourceDictionary START");
-
- // try
- // {
- // Assert.IsNotNull(n1, "null NamescopingVisitor");
- // bool b1 = n1.StopOnResourceDictionary;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"NamescopingVisitorStopOnResourceDictionary END");
-
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NamescopingVisitor VisitNodeOnDataTemplate")]
- //[Property("SPEC", "Tizen.NUI.NamescopingVisitor.VisitNodeOnDataTemplate A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //public void NamescopingVisitorVisitNodeOnDataTemplate()
- //{
- // tlog.Debug(tag, $"NamescopingVisitorVisitNodeOnDataTemplate START");
-
- // try
- // {
- // Assert.IsNotNull(n1, "null NamescopingVisitor");
- // bool b1 = n1.VisitNodeOnDataTemplate;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"NamescopingVisitorVisitNodeOnDataTemplate END");
-
- //}
}
}
\ No newline at end of file
tlog.Info(tag, "Destroy() is called!");
}
- //[Test]
- //[Category("P1")]
- //[Description("ResourcesLoader CreateFromResource<T>")]
- //[Property("SPEC", "Tizen.NUI.Xaml.ResourcesLoader.CreateFromResource<T> M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void ResourcesLoaderCreateFromResourceTest()
- //{
- // tlog.Debug(tag, $"ResourcesLoaderCreateFromResourceTest START");
-
- // try
- // {
- // var rl = new ResourcesLoader();
- // var ret = rl.CreateFromResource<View>("layout/BaseXamlSample3.xaml", typeof(UIElement).Assembly, null);
- // Assert.IsNotNull(ret, "Should not be null");
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
-
- // tlog.Debug(tag, $"ResourcesLoaderCreateFromResourceTest END");
- //}
-
[Test]
[Category("P1")]
[Description("ResourcesLoader GetResource")]
testingTarget.Dispose();
tlog.Debug(tag, $"AnimationShow END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("Animation Pause")]
- //[Property("SPEC", "Tizen.NUI.Animation.Pause M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public async Task AnimationPause()
- //{
- // tlog.Debug(tag, $"AnimationPause START");
-
- // var testingTarget = new Animation(600);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
-
- // testingTarget.EndAction = Animation.EndActions.StopFinal;
- // testingTarget.Play();
- // await Task.Delay(200);
- // testingTarget.Pause();
- // var result = testingTarget.GetState();
- // Assert.IsTrue(States.Paused == result);
-
- // testingTarget.Play();
- // testingTarget.Stop();
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"AnimationPause END (OK)");
- //}
}
}
Assert.IsNotNull(testingTarget, "Should be not null.");
Assert.IsInstanceOf<NUIApplication>(testingTarget, "Should be an instance of NUIApplication type.");
- testingTarget.Dispose();
+ tlog.Debug(tag, "Window : " + testingTarget.Window);
+
tlog.Debug(tag, $"NUIApplicationConstructor END (OK)");
}
pos.Dispose();
size.Dispose();
- testingTarget.Dispose();
tlog.Debug(tag, $"NUIApplicationConstructorWithWindowSizeAndPosition END (OK)");
}
Assert.IsNotNull(testingTarget, "Should be not null.");
Assert.IsInstanceOf<NUIApplication>(testingTarget, "Should be an instance of NUIApplication type.");
- testingTarget.Dispose();
tlog.Debug(tag, $"NUIApplicationConstructorWithStyleSheet END (OK)");
}
Assert.IsNotNull(testingTarget, "Should be not null.");
Assert.IsInstanceOf<NUIApplication>(testingTarget, "Should be an instance of NUIApplication type.");
- testingTarget.Dispose();
tlog.Debug(tag, $"NUIApplicationConstructorWithStyleSheetAndWindowSizeAndPostion END (OK)");
}
Assert.IsNotNull(testingTarget, "Should be not null.");
Assert.IsInstanceOf<NUIApplication>(testingTarget, "Should be an instance of NUIApplication type.");
- testingTarget.Dispose();
tlog.Debug(tag, $"NUIApplicationConstructorWithStringAndWindowMode END (OK)");
}
Assert.IsNotNull(testingTarget, "Should be not null.");
Assert.IsInstanceOf<NUIApplication>(testingTarget, "Should be an instance of NUIApplication type.");
- testingTarget.Dispose();
tlog.Debug(tag, $"NUIApplicationConstructorWithStringAndWindowModeAndWindowSizeAndPosition END (OK)");
}
Assert.IsNotNull(testingTarget, "Should be not null.");
Assert.IsInstanceOf<NUIApplication>(testingTarget, "Should be an instance of NUIApplication type.");
- testingTarget.Dispose();
tlog.Debug(tag, $"NUIApplicationConstructorWithBackendType END (OK)");
}
Assert.IsNotNull(testingTarget, "Should be not null.");
Assert.IsInstanceOf<NUIApplication>(testingTarget, "Should be an instance of NUIApplication type.");
- testingTarget.Dispose();
tlog.Debug(tag, $"NUIApplicationConstructorWithThemeOptions END (OK)");
}
windowSize.Dispose();
windowPosition.Dispose();
- testingTarget.Dispose();
tlog.Debug(tag, $"NUIApplicationConstructorWithSizePositionAndThemeOptions END (OK)");
}
Assert.IsNotNull(testingTarget, "Should be not null.");
Assert.IsInstanceOf<NUIApplication>(testingTarget, "Should be an instance of NUIApplication type.");
- testingTarget.Dispose();
tlog.Debug(tag, $"NUIApplicationConstructorForImeWindow END (OK)");
}
Assert.IsNotNull(testingTarget, "Should be not null.");
Assert.IsInstanceOf<Window>(testingTarget, "Should be an instance of Window type.");
- testingTarget.Dispose();
tlog.Debug(tag, $"NUIApplicationGetDefaultWindow END (OK)");
}
result.Dispose();
transitionOption.Dispose();
- testingTarget.Dispose();
tlog.Debug(tag, $"NUIApplicationTransitionOptions END (OK)");
}
[TestFixture]
[Description("public/Application/NUIWidgetApplication")]
-
- internal class MyWidget : Widget
- {
- protected override void OnCreate(string contentInfo, Window window)
- {
- window.BackgroundColor = Color.White;
- TextLabel textLabel = new TextLabel("Widget Works");
-
- window.GetDefaultLayer().Add(textLabel);
- base.OnCreate(contentInfo, window);
- }
- }
-
- internal class MyNUIWidgetApplication : NUIWidgetApplication
- {
- public MyNUIWidgetApplication(global::System.Type widgetType) : base(widgetType)
- { }
-
- public void MyOnCreate()
- {
- base.OnCreate();
- }
-
- public void MyOnTerminate()
- {
- base.OnTerminate();
- }
-
- public void MyOnLocaleChanged(Applications.LocaleChangedEventArgs e)
- {
- base.OnLocaleChanged(e);
- }
-
- public void MyOnLowBattery(Applications.LowBatteryEventArgs e)
- {
- base.OnLowBattery(e);
- }
-
- public void MyOnLowMemory(Applications.LowMemoryEventArgs e)
- {
- base.OnLowMemory(e);
- }
-
- public void MyOnRegionFormatChanged(Applications.RegionFormatChangedEventArgs e)
- {
- base.OnRegionFormatChanged(e);
- }
- }
-
public class PublicNUIWidgetApplicationTest
{
private const string tag = "NUITEST";
{
tlog.Info(tag, "Destroy() is called!");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication constructor.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.NUIWidgetApplication C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void NUIWidgetApplicationConstructor()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationConstructor START");
-
- // var testingTarget = new NUIWidgetApplication(typeof(MyWidget));
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationConstructor END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication constructor. With stylesheet.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.NUIWidgetApplication C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@partner.samsung.com")]
- //public void NUIWidgetApplicationConstructorWithStylesheet()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationConstructorWithStylesheet START");
-
- // var testingTarget = new NUIWidgetApplication(typeof(MyWidget), "stylesheet");
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationConstructorWithStylesheet END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication constructor. With multi class.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.NUIWidgetApplication C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void NUIWidgetApplicationConstructorWithMultiClass()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationConstructorWithMultiClass START");
-
- // Dictionary<Type, string> widgetSet = new Dictionary<Type, string>();
- // widgetSet.Add(typeof(MyWidget), "Tizen.NUI.Tests");
-
- // var testingTarget = new NUIWidgetApplication(widgetSet);
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationConstructorWithMultiClass END (OK)");
- //}
-
- //[Test]
- //[Category("P2")]
- //[Description("NUIWidgetApplication constructor. With invalid value.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.NUIWidgetApplication C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void NUIWidgetApplicationConstructorWithNullValue()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationConstructorWithNullValue START");
-
- // try
- // {
- // Dictionary<Type, string> widgetSet = null;
- // var testingTarget = new NUIWidgetApplication(widgetSet);
- // }
- // catch (InvalidOperationException e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // tlog.Debug(tag, $"NUIWidgetApplicationConstructorWithNullValue END (OK)");
- // Assert.Pass("Create a NUIWidgetApplication with invalid Dictionary");
- // }
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication Dispose.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.Dispose M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@partner.samsung.com")]
- //public void NUIWidgetApplicationDispose()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationDispose START");
-
- // try
- // {
- // var testingTarget = new NUIWidgetApplication(typeof(MyWidget));
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // testingTarget.Dispose();
- // }
- // catch (Exception e)
- // {
- // tlog.Error(tag, "Caught Exception" + e.ToString());
- // LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // tlog.Debug(tag, $"NUIWidgetApplicationDispose END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication AddWidgetType.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.AddWidgetType M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@partner.samsung.com")]
- //public void NUIWidgetApplicationAddWidgetType()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationAddWidgetType START");
-
- // var testingTarget = new NUIWidgetApplication(typeof(MyWidget));
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // try
- // {
- // testingTarget.AddWidgetType(typeof(MyWidget));
- // }
- // catch (Exception e)
- // {
- // tlog.Error(tag, "Caught Exception" + e.ToString());
- // LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationAddWidgetType END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication AddWidgetType. With Dictionary.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.AddWidgetType M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@partner.samsung.com")]
- //public void NUIWidgetApplicationAddWidgetTypeWithDictionary()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationAddWidgetTypeWithDictionary START");
-
- // var testingTarget = new NUIWidgetApplication(typeof(MyWidget));
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // try
- // {
- // Dictionary<global::System.Type, string> widgetTypes = new Dictionary<Type, string>();
- // widgetTypes.Add(typeof(MyWidget), "MyWidget");
- // testingTarget.AddWidgetType(widgetTypes);
- // }
- // catch (Exception e)
- // {
- // tlog.Error(tag, "Caught Exception" + e.ToString());
- // LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationAddWidgetTypeWithDictionary END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication ApplicationHandle.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.ApplicationHandle M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@partner.samsung.com")]
- //public void NUIWidgetApplicationApplicationHandle()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationApplicationHandle START");
-
- // var testingTarget = new NUIWidgetApplication(typeof(MyWidget));
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // try
- // {
- // var result = testingTarget.ApplicationHandle;
- // }
- // catch (Exception e)
- // {
- // tlog.Error(tag, "Caught Exception" + e.ToString());
- // LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationApplicationHandle END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication OnCreate.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.OnCreate M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@partner.samsung.com")]
- //public void NUIWidgetApplicationOnCreate()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationOnCreate START");
-
- // var testingTarget = new MyNUIWidgetApplication(typeof(MyWidget));
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // try
- // {
- // testingTarget.MyOnCreate();
- // }
- // catch (Exception e)
- // {
- // tlog.Error(tag, "Caught Exception" + e.ToString());
- // LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationOnCreate END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication OnLocaleChanged.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.OnLocaleChanged M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@partner.samsung.com")]
- //public void NUIWidgetApplicationOnLocaleChanged()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationOnLocaleChanged START");
-
- // var testingTarget = new MyNUIWidgetApplication(typeof(MyWidget));
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // try
- // {
- // testingTarget.MyOnLocaleChanged(new Applications.LocaleChangedEventArgs("BeiJing"));
- // }
- // catch (Exception e)
- // {
- // tlog.Error(tag, "Caught Exception" + e.ToString());
- // LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationOnLocaleChanged END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication OnLowBattery.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.OnLowBattery M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@partner.samsung.com")]
- //public void NUIWidgetApplicationOnLowBattery()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationOnLowBattery START");
-
- // var testingTarget = new MyNUIWidgetApplication(typeof(MyWidget));
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // try
- // {
- // testingTarget.MyOnLowBattery(new Applications.LowBatteryEventArgs(Applications.LowBatteryStatus.PowerOff));
- // }
- // catch (Exception e)
- // {
- // tlog.Error(tag, "Caught Exception" + e.ToString());
- // LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationOnLowBattery END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication OnLowMemory.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.OnLowMemory M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@partner.samsung.com")]
- //public void NUIWidgetApplicationOnLowMemory()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationOnLowMemory START");
-
- // var testingTarget = new MyNUIWidgetApplication(typeof(MyWidget));
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // try
- // {
- // testingTarget.MyOnLowMemory(new Applications.LowMemoryEventArgs(Applications.LowMemoryStatus.Normal));
- // }
- // catch (Exception e)
- // {
- // tlog.Error(tag, "Caught Exception" + e.ToString());
- // LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationOnLowMemory END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication OnTerminate.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.OnTerminate M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@partner.samsung.com")]
- //public void NUIWidgetApplicationOnTerminate()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationOnTerminate START");
-
- // var testingTarget = new MyNUIWidgetApplication(typeof(MyWidget));
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // try
- // {
- // testingTarget.MyOnTerminate();
- // }
- // catch (Exception e)
- // {
- // tlog.Error(tag, "Caught Exception" + e.ToString());
- // LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationOnTerminate END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("NUIWidgetApplication OnRegionFormatChanged.")]
- //[Property("SPEC", "Tizen.NUI.NUIWidgetApplication.OnRegionFormatChanged M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@partner.samsung.com")]
- //public void NUIWidgetApplicationOnRegionFormatChanged()
- //{
- // tlog.Debug(tag, $"NUIWidgetApplicationOnRegionFormatChanged START");
-
- // var testingTarget = new MyNUIWidgetApplication(typeof(MyWidget));
- // Assert.IsNotNull(testingTarget, "should be not null.");
- // Assert.IsInstanceOf<NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type.");
-
- // try
- // {
- // testingTarget.MyOnRegionFormatChanged(new Applications.RegionFormatChangedEventArgs("China"));
- // }
- // catch (Exception e)
- // {
- // tlog.Error(tag, "Caught Exception" + e.ToString());
- // LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"NUIWidgetApplicationOnRegionFormatChanged END (OK)");
- //}
}
}
tlog.Debug(tag, $"WatchTimeGetWatchTimeFromPtr END (OK)");
}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime GetUtcTime.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.GetUtcTime M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeGetUtcTime()
- //{
- // tlog.Debug(tag, $"WatchTimeGetUtcTime START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetUtcTime' in shared library 'libdali2-csharp-binder.so' */
- // testingTarget.GetUtcTime();
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeGetUtcTime END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime Day.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.Day A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeDay()
- //{
- // tlog.Debug(tag, $"WatchTimeDay START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetDay' in shared library 'libdali2-csharp-binder.so' */
- // int time = testingTarget.Day;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeDay END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime DaylightSavingTimeStatus.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.DaylightSavingTimeStatus A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeDaylightSavingTimeStatus()
- //{
- // tlog.Debug(tag, $"WatchTimeDaylightSavingTimeStatus START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetDaylightSavingTimeStatus' in shared library 'libdali2-csharp-binder.so' */
- // bool status = testingTarget.DaylightSavingTimeStatus;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeDaylightSavingTimeStatus END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime DayOfWeek.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.DayOfWeek A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeDayOfWeek()
- //{
- // tlog.Debug(tag, $"WatchTimeDayOfWeek START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetDayOfWeek' in shared library 'libdali2-csharp-binder.so' */
- // int day = testingTarget.DayOfWeek;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeDayOfWeek END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime Hour.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.Hour A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeHour()
- //{
- // tlog.Debug(tag, $"WatchTimeHour START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetHour' in shared library 'libdali2-csharp-binder.so' */
- // int hour = testingTarget.Hour;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeHour END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime Hour24.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.Hour24 A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeHour24()
- //{
- // tlog.Debug(tag, $"WatchTimeHour24 START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetHour24' in shared library 'libdali2-csharp-binder.so' */
- // int hour24 = testingTarget.Hour24;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeHour24 END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime Millisecond.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.Millisecond A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeMillisecond()
- //{
- // tlog.Debug(tag, $"WatchTimeMillisecond START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetMillisecond' in shared library 'libdali2-csharp-binder.so' */
- // int millisecond = testingTarget.Millisecond;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeMillisecond END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime Minute.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.Minute A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeMinute()
- //{
- // tlog.Debug(tag, $"WatchTimeMinute START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetMinute' in shared library 'libdali2-csharp-binder.so' */
- // int minute = testingTarget.Minute;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeMinute END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime Month.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.Month A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeMonth()
- //{
- // tlog.Debug(tag, $"WatchTimeMonth START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetMonth' in shared library 'libdali2-csharp-binder.so' */
- // int month = testingTarget.Month;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeMonth END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime Second.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.Second A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeSecond()
- //{
- // tlog.Debug(tag, $"WatchTimeSecond START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetSecond' in shared library 'libdali2-csharp-binder.so' */
- // int second = testingTarget.Second;
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeSecond END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime TimeZone.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.TimeZone A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeTimeZone()
- //{
- // tlog.Debug(tag, $"WatchTimeTimeZone START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetTimeZone' in shared library 'libdali2-csharp-binder.so' */
- // string zone = testingTarget.TimeZone;
- // Assert.IsNotEmpty(zone, "TimeZone is empty");
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeTimeZone END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchTime Year.")]
- //[Property("SPEC", "Tizen.NUI.WatchTime.Year A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRO")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchTimeYear()
- //{
- // tlog.Debug(tag, $"WatchTimeYear START");
-
- // using (ImageView view = new ImageView())
- // {
- // var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- // try
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchTime_GetYear' in shared library 'libdali2-csharp-binder.so' */
- // int year = testingTarget.Year;
- // Assert.IsTrue(year > 0);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchTimeYear END (OK)");
- //}
}
}
public class PublicAnimatedVectorImageViewTest
{
private const string tag = "NUITEST";
- private string url = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
+ private string url = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "button_9patch.png";
internal class MyAnimatedVectorImageView : AnimatedVectorImageView
{
tlog.Debug(tag, $"AnimatedVectorImageViewConstructorWithScale END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("AnimatedVectorImageView Dispose.")]
- //[Property("SPEC", "Tizen.NUI.AnimatedVectorImageView.Dispose M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void AnimatedVectorImageViewDispose()
- //{
- // tlog.Debug(tag, $"AnimatedVectorImageViewDispose START");
-
- // var testingTarget = new MyAnimatedVectorImageView();
- // Assert.IsNotNull(testingTarget, "Can't create success object AnimatedVectorImageView");
- // Assert.IsInstanceOf<AnimatedVectorImageView>(testingTarget, "Should be an instance of AnimatedVectorImageView type.");
-
- // try
- // {
- // testingTarget.OnDispose(DisposeTypes.Explicit);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // tlog.Debug(tag, $"AnimatedVectorImageViewDispose END (OK)");
- //}
+ [Test]
+ [Category("P1")]
+ [Description("AnimatedVectorImageView Dispose.")]
+ [Property("SPEC", "Tizen.NUI.AnimatedVectorImageView.Dispose M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnimatedVectorImageViewDispose()
+ {
+ tlog.Debug(tag, $"AnimatedVectorImageViewDispose START");
+
+ var testingTarget = new MyAnimatedVectorImageView()
+ {
+ Size = new Size(200, 200),
+ BackgroundColor = Color.Cyan,
+ };
+ Assert.IsNotNull(testingTarget, "Can't create success object AnimatedVectorImageView");
+ Assert.IsInstanceOf<AnimatedVectorImageView>(testingTarget, "Should be an instance of AnimatedVectorImageView type.");
+
+ try
+ {
+ testingTarget.OnDispose(DisposeTypes.Explicit);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ tlog.Debug(tag, $"AnimatedVectorImageViewDispose END (OK)");
+ }
[Test]
[Category("P1")]
tlog.Debug(tag, $"AnimatedVectorImageViewTotalFrame END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("AnimatedVectorImageView CurrentFrame.")]
- //[Property("SPEC", "Tizen.NUI.AnimatedVectorImageView.CurrentFrame A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void AnimatedVectorImageViewCurrentFrame()
- //{
- // tlog.Debug(tag, $"AnimatedVectorImageViewCurrentFrame START");
-
- // var testingTarget = new AnimatedVectorImageView();
- // Assert.IsNotNull(testingTarget, "Can't create success object AnimatedVectorImageView");
- // Assert.IsInstanceOf<AnimatedVectorImageView>(testingTarget, "Should be an instance of AnimatedVectorImageView type.");
-
- // testingTarget.ResourceUrl = url;
- // NUIApplication.GetDefaultWindow().GetDefaultLayer().Add(testingTarget);
-
- // try
- // {
- // testingTarget.CurrentFrame = 200;
- // var result = testingTarget.CurrentFrame;
-
- // /** value < 0 */
- // testingTarget.CurrentFrame = -3;
- // Assert.AreEqual(0, testingTarget.CurrentFrame, "Should be equal!");
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // NUIApplication.GetDefaultWindow().GetDefaultLayer().Remove(testingTarget);
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"AnimatedVectorImageViewCurrentFrame END (OK)");
- //}
+ [Test]
+ [Category("P1")]
+ [Description("AnimatedVectorImageView CurrentFrame.")]
+ [Property("SPEC", "Tizen.NUI.AnimatedVectorImageView.CurrentFrame A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnimatedVectorImageViewCurrentFrame()
+ {
+ tlog.Debug(tag, $"AnimatedVectorImageViewCurrentFrame START");
+
+ var testingTarget = new AnimatedVectorImageView()
+ {
+ PositionUsesPivotPoint = true,
+ ParentOrigin = ParentOrigin.CenterRight,
+ PivotPoint = PivotPoint.CenterRight,
+ BackgroundColor = Color.Azure,
+ Focusable = true,
+ };
+ Assert.IsNotNull(testingTarget, "Can't create success object AnimatedVectorImageView");
+ Assert.IsInstanceOf<AnimatedVectorImageView>(testingTarget, "Should be an instance of AnimatedVectorImageView type.");
+
+ testingTarget.ResourceUrl = url;
+
+ try
+ {
+ testingTarget.CurrentFrame = 200;
+ var result = testingTarget.CurrentFrame;
+
+ /** value < 0 */
+ testingTarget.CurrentFrame = -3;
+ Assert.AreEqual(0, testingTarget.CurrentFrame, "Should be equal!");
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AnimatedVectorImageViewCurrentFrame END (OK)");
+ }
[Test]
[Category("P2")]
tlog.Info(tag, "Destroy() is called!");
}
- //[Test]
- //[Category("P1")]
- //[Description("TextEditor constructor.")]
- //[Property("SPEC", "Tizen.NUI.TextEditor.TextEditor C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //[Obsolete]
- //public void TextEditorConstructor()
- //{
- // tlog.Debug(tag, $"TextEditorConstructor START");
-
- // TextEditorStyle style = new TextEditorStyle()
- // {
- // FontFamily = "BreezeSans",
- // FontStyle = new PropertyMap().Add("weight", new PropertyValue("regular")),
- // };
-
- // var testingTarget = new TextEditor(style);
- // Assert.IsNotNull(testingTarget, "Can't create success object TextEditor");
- // Assert.IsInstanceOf<TextEditor>(testingTarget, "Should be an instance of TextEditor type.");
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"TextEditorConstructor END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("TextEditor constructor. With status of Shown.")]
tlog.Debug(tag, $"TextEditorConstructorWithStatusOfShown END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("TextEditor TranslatableText.")]
- //[Property("SPEC", "Tizen.NUI.TextEditor.TranslatableText A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //[Obsolete]
- //public void TextEditorTranslatableText()
- //{
- // tlog.Debug(tag, $"TextEditorTranslatableText START");
-
- // var testingTarget = new TextEditor();
- // Assert.IsNotNull(testingTarget, "Can't create success object TextEditor");
- // Assert.IsInstanceOf<TextEditor>(testingTarget, "Should be an instance of TextEditor type.");
-
- // testingTarget.TranslatableText = "textEditorTextSid";
- // Assert.AreEqual("textEditorTextSid", testingTarget.TranslatableText, "Should be equal!");
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"TextEditorTranslatableText END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("TextEditor TranslatablePlaceholderText.")]
- //[Property("SPEC", "Tizen.NUI.TextEditor.TranslatablePlaceholderText A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //[Obsolete]
- //public void TextEditorTranslatablePlaceholderText()
- //{
- // tlog.Debug(tag, $"TextEditorTranslatablePlaceholderText START");
-
- // var testingTarget = new TextEditor();
- // Assert.IsNotNull(testingTarget, "Can't create success object TextEditor");
- // Assert.IsInstanceOf<TextEditor>(testingTarget, "Should be an instance of TextEditor type.");
-
- // testingTarget.TranslatablePlaceholderText = "textEditorTextSid";
- // Assert.AreEqual("textEditorTextSid", testingTarget.TranslatablePlaceholderText, "Should be equal!");
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"TextEditorTranslatablePlaceholderText END (OK)");
- //}
+ [Test]
+ [Category("P1")]
+ [Description("TextEditor TranslatableText.")]
+ [Property("SPEC", "Tizen.NUI.TextEditor.TranslatableText A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void TextEditorTranslatableText()
+ {
+ tlog.Debug(tag, $"TextEditorTranslatableText START");
+
+ var testingTarget = new TextEditor();
+ Assert.IsNotNull(testingTarget, "Can't create success object TextEditor");
+ Assert.IsInstanceOf<TextEditor>(testingTarget, "Should be an instance of TextEditor type.");
+
+ tlog.Debug(tag, "TranslatableText : " + testingTarget.TranslatableText);
+
+ if (Tizen.NUI.NUIApplication.MultilingualResourceManager != null)
+ {
+ testingTarget.TranslatableText = "textEditorTextSid";
+ Assert.AreEqual("textEditorTextSid", testingTarget.TranslatableText, "Should be equal!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"TextEditorTranslatableText END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextEditor TranslatablePlaceholderText.")]
+ [Property("SPEC", "Tizen.NUI.TextEditor.TranslatablePlaceholderText A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void TextEditorTranslatablePlaceholderText()
+ {
+ tlog.Debug(tag, $"TextEditorTranslatablePlaceholderText START");
+
+ var testingTarget = new TextEditor();
+ Assert.IsNotNull(testingTarget, "Can't create success object TextEditor");
+ Assert.IsInstanceOf<TextEditor>(testingTarget, "Should be an instance of TextEditor type.");
+
+ tlog.Debug(tag, "TranslatablePlaceholderText : " + testingTarget.TranslatablePlaceholderText);
+
+ if (Tizen.NUI.NUIApplication.MultilingualResourceManager != null)
+ {
+ testingTarget.TranslatablePlaceholderText = "textEditorTextSid";
+ Assert.AreEqual("textEditorTextSid", testingTarget.TranslatablePlaceholderText, "Should be equal!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"TextEditorTranslatablePlaceholderText END (OK)");
+ }
}
}
label.Dispose();
tlog.Debug(tag, $"TextEventAnchorClickedEventArgsHref END (OK)");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("TextEvent.InputFilteredEventArgs Type.")]
+ [Property("SPEC", "Tizen.NUI.TextEvent.InputFilteredEventArgs.Type A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextEventInputFilteredEventArgsType()
+ {
+ tlog.Debug(tag, $"TextEventInputFilteredEventArgsType START");
+
+ TextLabel label = new TextLabel()
+ {
+ Text = "hypertext",
+ };
+
+ var testingTarget = new InputFilteredEventArgs();
+ Assert.IsNotNull(testingTarget, "Can't create success object InputFilteredEventArgs");
+ Assert.IsInstanceOf<InputFilteredEventArgs>(testingTarget, "Should be an instance of InputFilteredEventArgs type.");
+
+ testingTarget.Type = InputFilterType.Accept;
+ Assert.IsNotNull(testingTarget.Type, "Should be not null.");
+
+ label.Dispose();
+ tlog.Debug(tag, $"TextEventInputFilteredEventArgsType END (OK)");
+ }
}
}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/BaseComponents/TextFieldEvent")]
+ public class PublicTextFieldEventTest
+ {
+ private const string tag = "NUITEST";
+ private bool textChangedFlag = false;
+ private bool maxLengthFlag = false;
+
+ private void OnTextChanged(object sender, TextField.TextChangedEventArgs e) { }
+ private void OnMaxLengthReached(object sender, TextField.MaxLengthReachedEventArgs e) { }
+ private void OnSelectionChanged(object sender, EventArgs e) { }
+ private void OnAnchorClicked(object sender, AnchorClickedEventArgs e) { }
+ private void OnSelectionCleared(object sender, EventArgs e) { }
+ private void OnInputFiltered(object sender, InputFilteredEventArgs e) { }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextField MaxLengthReached.")]
+ [Property("SPEC", "Tizen.NUI.TextField.MaxLengthReached A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextFieldMaxLengthReached()
+ {
+ tlog.Debug(tag, $"TextFieldMaxLengthReached START");
+
+ var testingTarget = new TextField()
+ {
+ Text = "textfield",
+ MaxLength = 9,
+ };
+ Assert.IsNotNull(testingTarget, "Can't create success object TextField");
+ Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
+
+ try
+ {
+ testingTarget.TextChanged += OnTextChanged;
+ testingTarget.MaxLengthReached += OnMaxLengthReached;
+ testingTarget.SelectionCleared += OnSelectionCleared;
+ testingTarget.AnchorClicked += OnAnchorClicked;
+ testingTarget.SelectionChanged += OnSelectionChanged;
+ testingTarget.InputFiltered += OnInputFiltered;
+
+ testingTarget.TextChanged -= OnTextChanged;
+ testingTarget.MaxLengthReached -= OnMaxLengthReached;
+ testingTarget.SelectionCleared -= OnSelectionCleared;
+ testingTarget.AnchorClicked -= OnAnchorClicked;
+ testingTarget.SelectionChanged -= OnSelectionChanged;
+ testingTarget.InputFiltered -= OnInputFiltered;
+ }
+ catch (Exception e)
+ {
+ tlog.Info(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"TextFieldMaxLengthReached END (OK)");
+ }
+ }
+}
class PublicTextUtilsTest
{
private const string tag = "NUITEST";
+ private string imageurl = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
[SetUp]
public void Init()
testingTarget.TextColor = Color.Cyan;
tlog.Debug(tag, "IsTextColorSet : " + testingTarget.IsTextColorSet);
+ testingTarget.IsTextColorSet = false;
+ tlog.Debug(tag, "IsTextColorSet : " + testingTarget.IsTextColorSet);
+
testingTarget.Dispose();
tlog.Debug(tag, $"TextUtilsRendererParametersIsTextColorSet END (OK)");
}
tlog.Debug(tag, $"TextUtilsGetFontSizeScale END (OK)");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetFontWidthString.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetFontWidthString M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetFontWidthString()
+ {
+ tlog.Debug(tag, $"TextUtilsGetFontWidthString START");
+
+ var result = TextUtils.GetFontWidthString(FontWidthType.ExtraCondensed);
+ tlog.Debug(tag, "GetFontWidthString : " + result);
+
+ result = TextUtils.GetFontWeightString(FontWeightType.UltraLight);
+ tlog.Debug(tag, "GetFontWeightString : " + result);
+
+ result = TextUtils.GetFontSlantString(FontSlantType.Italic);
+ tlog.Debug(tag, "GetFontSlantString : " + result);
+
+ tlog.Debug(tag, $"TextUtilsGetFontWidthString END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetFontWidthType.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetFontWidthType M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetFontWidthType()
+ {
+ tlog.Debug(tag, $"TextUtilsGetFontWidthType START");
+
+ var fontWidth = TextUtils.GetFontWidthType("ExtraCondensed");
+ tlog.Debug(tag, "GetFontWidthType : " + fontWidth);
+
+ var fontWeight = TextUtils.GetFontWeightType("UltraLight");
+ tlog.Debug(tag, "GetFontWeightType : " + fontWeight);
+
+ var fontSlant = TextUtils.GetFontSlantType("Italic");
+ tlog.Debug(tag, "GetFontSlantType : " + fontSlant);
+
+ tlog.Debug(tag, $"TextUtilsGetFontWidthType END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetFontStyleMap.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetFontStyleMap M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetFontStyleMap()
+ {
+ tlog.Debug(tag, $"TextUtilsGetFontStyleMap START");
+
+ var fontStyle = new Tizen.NUI.Text.FontStyle()
+ {
+ Width = FontWidthType.Expanded,
+ Weight = FontWeightType.Bold,
+ Slant = FontSlantType.Italic
+ };
+
+ var map = TextUtils.GetFontStyleMap(fontStyle);
+ tlog.Debug(tag, "GetFontStyleMap : " + map);
+
+ var result = TextUtils.GetFontStyleStruct(map);
+ tlog.Debug(tag, "GetFontStyleStruct : " + result);
+
+ tlog.Debug(tag, $"TextUtilsGetFontStyleMap END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetInputFilterMap.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetInputFilterMap M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetInputFilterMap()
+ {
+ tlog.Debug(tag, $"TextUtilsGetInputFilterMap START");
+
+ var inputFilter = new Tizen.NUI.Text.InputFilter()
+ {
+ Accepted = @"[\d]",
+ Rejected = "[0-3]"
+ };
+
+ var map = TextUtils.GetInputFilterMap(inputFilter);
+ tlog.Debug(tag, "GetInputFilterMap : " + map);
+
+ var result = TextUtils.GetInputFilterStruct(map);
+ tlog.Debug(tag, "GetInputFilterStruct : " + result);
+
+ tlog.Debug(tag, $"TextUtilsGetInputFilterMap END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetUnderlineMap.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetUnderlineMap M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetUnderlineMap()
+ {
+ tlog.Debug(tag, $"TextUtilsGetUnderlineMap START");
+
+ var underline = new Tizen.NUI.Text.Underline()
+ {
+ Enable = true,
+ Color = new Color("#3498DB"),
+ Height = 2.0f
+ };
+
+ var map = TextUtils.GetUnderlineMap(underline);
+ tlog.Debug(tag, "GetUnderlineMap : " + map);
+
+ var result = TextUtils.GetUnderlineStruct(map);
+ tlog.Debug(tag, "GetUnderlineStruct : " + result);
+
+ tlog.Debug(tag, $"TextUtilsGetUnderlineMap END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetShadowMap.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetShadowMap M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetShadowMap()
+ {
+ tlog.Debug(tag, $"TextUtilsGetShadowMap START");
+
+ var shadow = new Tizen.NUI.Text.Shadow()
+ {
+ Offset = new Vector2(3, 3),
+ Color = new Color("#F1C40F")
+ };
+
+ TextField filed = new TextField()
+ {
+ Size = new Size(50, 80),
+ Text = "TextField"
+ };
+ filed.SetShadow(shadow);
+
+ var result = filed.GetShadow();
+ tlog.Debug(tag, "GetShadowStruct : " + result);
+
+ tlog.Debug(tag, $"TextUtilsGetShadowMap END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetOutlineMap.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetOutlineMap M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetOutlineMap()
+ {
+ tlog.Debug(tag, $"TextUtilsGetOutlineMap START");
+
+ var outline = new Tizen.NUI.Text.Outline()
+ {
+ Width = 2.0f,
+ Color = new Color("#45B39D")
+ };
+
+ var map = TextUtils.GetOutlineMap(outline);
+ tlog.Debug(tag, "GetOutlineMap : " + map);
+
+ var result = TextUtils.GetOutlineStruct(map);
+ tlog.Debug(tag, "GetOutlineStruct : " + result);
+
+ tlog.Debug(tag, $"TextUtilsGetOutlineMap END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetFontSizeString.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetFontSizeString M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetFontSizeString()
+ {
+ tlog.Debug(tag, $"TextUtilsGetFontSizeString START");
+
+ var str = TextUtils.GetFontSizeString(FontSizeType.PointSize);
+ tlog.Debug(tag, "GetFontSizeString : " + str);
+
+ var result = TextUtils.GetFontSizeType("PixelSize");
+ tlog.Debug(tag, "GetFontSizeType : " + result);
+
+ tlog.Debug(tag, $"TextUtilsGetFontSizeString END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetTextFitMap.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetTextFitMap M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetTextFitMap()
+ {
+ tlog.Debug(tag, $"TextUtilsGetTextFitMap START");
+
+ var textfit = new Tizen.NUI.Text.TextFit()
+ {
+ Enable = true,
+ MinSize = 10.0f,
+ MaxSize = 100.0f,
+ StepSize = 5.0f,
+ FontSizeType = FontSizeType.PointSize
+ };
+
+ var map = TextUtils.GetTextFitMap(textfit);
+ tlog.Debug(tag, "GetTextFitMap : " + map);
+
+ var result = TextUtils.GetTextFitStruct(map);
+ tlog.Debug(tag, "GetTextFitStruct : " + result);
+
+ tlog.Debug(tag, $"TextUtilsGetTextFitMap END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetPlaceholderMap.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetPlaceholderMap M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetPlaceholderMap()
+ {
+ tlog.Debug(tag, $"TextUtilsGetTextFitMap START");
+
+ var placeholder = new Tizen.NUI.Text.Placeholder()
+ {
+ Text = "placeholder text",
+ TextFocused = "placeholder textFocused",
+ Color = new Color("#45B39D"),
+ FontFamily = "BreezeSans",
+ FontStyle = new Tizen.NUI.Text.FontStyle()
+ {
+ Width = FontWidthType.Expanded,
+ Weight = FontWeightType.ExtraLight,
+ Slant = FontSlantType.Italic,
+ },
+ PointSize = 25.0f,
+ PixelSize = 50.0f,
+ Ellipsis = true
+ };
+
+ var map = TextUtils.GetPlaceholderMap(placeholder);
+ tlog.Debug(tag, "GetPlaceholderMap : " + map);
+
+ var result = TextUtils.GetPlaceholderStruct(map);
+ tlog.Debug(tag, "GetPlaceholderStruct : " + result);
+
+ tlog.Debug(tag, $"TextUtilsGetPlaceholderMap END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetHiddenInputMap.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetHiddenInputMap M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetHiddenInputMap()
+ {
+ tlog.Debug(tag, $"TextUtilsGetHiddenInputMap START");
+
+ var hiddenInput = new Tizen.NUI.Text.HiddenInput()
+ {
+ Mode = HiddenInputModeType.ShowLastCharacter,
+ SubstituteCharacter = '★',
+ SubstituteCount = 0,
+ ShowLastCharacterDuration = 1000
+ };
+
+ var map = TextUtils.GetHiddenInputMap(hiddenInput);
+ tlog.Debug(tag, "GetHiddenInputMap : " + map);
+
+ var result = TextUtils.GetHiddenInputStruct(map);
+ tlog.Debug(tag, "GetHiddenInputStruct : " + result);
+
+ tlog.Debug(tag, $"TextUtilsGetHiddenInputMap END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils GetFileNameMap.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.GetFileNameMap M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsGetFileNameMap()
+ {
+ tlog.Debug(tag, $"TextUtilsGetFileNameMap START");
+
+ var map = TextUtils.GetFileNameMap(imageurl);
+ tlog.Debug(tag, "GetFileNameMap : " + map);
+
+ tlog.Debug(tag, $"TextUtilsGetFileNameMap END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextUtils CopyToClipboard.")]
+ [Property("SPEC", "Tizen.NUI.TextUtils.CopyToClipboard M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextUtilsCopyToClipboard()
+ {
+ tlog.Debug(tag, $"TextUtilsCopyToClipboard START");
+
+ TextEditor editor = new TextEditor()
+ {
+ Text = "editor",
+ };
+ var result = TextUtils.CopyToClipboard(editor);
+ tlog.Debug(tag, "CopyToClipboard : " + result);
+
+ result = TextUtils.CutToClipboard(editor);
+ tlog.Debug(tag, "CutToClipboard : " + result);
+
+ try
+ {
+ TextUtils.PasteTo(editor);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ TextField field = new TextField()
+ {
+ Text = "field",
+ };
+ result = TextUtils.CopyToClipboard(field);
+ tlog.Debug(tag, "CopyToClipboard : " + field);
+
+ result = TextUtils.CutToClipboard(field);
+ tlog.Debug(tag, "CutToClipboard : " + field);
+
+ try
+ {
+ TextUtils.PasteTo(field);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ tlog.Debug(tag, $"TextUtilsCopyToClipboard END (OK)");
+ }
}
}
Assert.IsNotNull(testingTarget, "null handle");
Assert.IsInstanceOf<View>(testingTarget, "Should return View instance.");
+ tlog.Debug(tag, "Culled : " + testingTarget.Culled);
+
testingTarget.Dispose();
tlog.Debug(tag, $"ViewConstructor END (OK)");
}
testingTarget.Dispose();
tlog.Debug(tag, $"ViewBackgroundImageBorder END (OK)");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("View BorderlineWidth.")]
+ [Property("SPEC", "Tizen.NUI.View.BorderlineWidth A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("COVPARAM", "")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewBorderlineWidth()
+ {
+ tlog.Debug(tag, $"ViewBorderlineWidth START");
+
+ var testingTarget = new View()
+ {
+ Size = new Size(100, 200),
+ BackgroundColor = Color.Cyan
+ };
+ Assert.IsNotNull(testingTarget, "null handle");
+ Assert.IsInstanceOf<View>(testingTarget, "Should return View instance.");
+
+ testingTarget.BorderlineWidth = 2.0f;
+ tlog.Debug(tag, "BorderlineWidth : " + testingTarget.BorderlineWidth);
+
+ testingTarget.BorderlineColor = Color.Red;
+ tlog.Debug(tag, "BorderlineColor : " + testingTarget.BorderlineColor);
+
+ testingTarget.BorderlineOffset = 0.3f;
+ tlog.Debug(tag, "BorderlineOffset : " + testingTarget.BorderlineOffset);
+
+ testingTarget.TooltipText = "tooltipText";
+ tlog.Debug(tag, "TooltipText : " + testingTarget.TooltipText);
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ViewBorderlineWidth END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("View FocusableChildren.")]
+ [Property("SPEC", "Tizen.NUI.View.FocusableChildren A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("COVPARAM", "")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewFocusableChildren()
+ {
+ tlog.Debug(tag, $"ViewFocusableChildren START");
+
+ var view = new View()
+ {
+ Size = new Size2D(200, 200),
+ };
+ NUIApplication.GetDefaultWindow().Add(view);
+
+ var child = new View()
+ {
+ Size = new Size2D(100, 100),
+ PositionUsesPivotPoint = true,
+ ParentOrigin = ParentOrigin.CenterRight,
+ PivotPoint = PivotPoint.CenterRight,
+ BackgroundColor = Color.Azure,
+ Focusable = true,
+ };
+
+ view.Add(child);
+
+ tlog.Debug(tag, "FocusableChildren : " + view.FocusableChildren);
+ view.FocusableChildren = false;
+ tlog.Debug(tag, "FocusableChildren : " + view.FocusableChildren);
+
+ view.FocusableInTouch = true;
+ tlog.Debug(tag, "FocusableInTouch : " + view.FocusableInTouch);
+
+ NUIApplication.GetDefaultWindow().Remove(view);
+ view.Dispose();
+ tlog.Debug(tag, $"ViewFocusableChildren END (OK)");
+ }
}
}
tlog.Debug(tag, $"ViewAccessibilityAddressCollectionGetRelationSize END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("ViewAccessibility.AddressCollection GetAddressAt.")]
- //[Property("SPEC", "Tizen.NUI.ViewAccessibility.AddressCollection.GetAddressAt M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ViewAccessibilityAddressCollectionGetAddressAt()
- //{
- // tlog.Debug(tag, $"ViewAccessibilityAddressCollectionGetAddressAt START");
-
- // using (View view = new ImageView())
- // {
- // var testingTarget = new AddressCollection(Interop.ControlDevel.DaliToolkitDevelControlNewGetAccessibilityRelations(view.SwigCPtr));
- // Assert.IsNotNull(testingTarget, "Can't create success object AddressCollection");
- // Assert.IsInstanceOf<AddressCollection>(testingTarget, "Should be an instance of AddressCollection type.");
-
- // try
- // {
- // var result = testingTarget.GetAddressAt(AccessibilityRelationType.NullOf, 0);
- // Assert.IsNotNull(result, "Can't create success object Address");
- // Assert.IsInstanceOf<Address>(result, "Should be an instance of Address type.");
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
- // }
-
- // tlog.Debug(tag, $"ViewAccessibilityAddressCollectionGetAddressAt END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("ViewAccessibility.AddressCollection ReleaseHandle.")]
testingTarget.Dispose();
tlog.Debug(tag, $"ViewAccessibilityRegisterPopup END (OK)");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewAccessibility.EmitAccessibilityEvent.")]
+ [Property("SPEC", "Tizen.NUI.ViewAccessibility.EmitAccessibilityEvent M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewAccessibilityEmitAccessibilityEvent()
+ {
+ tlog.Debug(tag, $"ViewAccessibilityEmitAccessibilityEvent START");
+
+ var testingTarget = new View()
+ {
+ Size = new Size2D(100, 100),
+ PositionUsesPivotPoint = true,
+ ParentOrigin = ParentOrigin.TopCenter,
+ PivotPoint = PivotPoint.TopCenter,
+ BackgroundColor = Color.AquaMarine,
+ };
+ Assert.IsNotNull(testingTarget, "Can't create success object View");
+ Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
+
+ try
+ {
+ testingTarget.EmitAccessibilityEvent(AccessibilityPropertyChangeEvent.Name);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ViewAccessibilityEmitAccessibilityEvent END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewAccessibility.EmitAccessibilityStatesChangedEvent.")]
+ [Property("SPEC", "Tizen.NUI.ViewAccessibility.EmitAccessibilityStatesChangedEvent M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewAccessibilityEmitAccessibilityStatesChangedEvent()
+ {
+ tlog.Debug(tag, $"ViewAccessibilityEmitAccessibilityStatesChangedEvent START");
+
+ var testingTarget = new CheckBox()
+ {
+ Size = new Size2D(100, 100),
+ IsSelectable = true,
+ IsSelected = true,
+ };
+ Assert.IsNotNull(testingTarget, "Can't create success object CheckBox.");
+ Assert.IsInstanceOf<CheckBox>(testingTarget, "Should be an instance of CheckBox type.");
+
+ try
+ {
+ testingTarget.EmitAccessibilityStatesChangedEvent(AccessibilityStates.Checked, true);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ViewAccessibilityEmitAccessibilityStatesChangedEvent END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewAccessibility.EmitTextInsertedEvent.")]
+ [Property("SPEC", "Tizen.NUI.ViewAccessibility.EmitTextInsertedEvent M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewAccessibilityEmitTextInsertedEvent()
+ {
+ tlog.Debug(tag, $"ViewAccessibilityEmitTextInsertedEvent START");
+
+ var testingTarget = new TextLabel()
+ {
+ Text = "InsertedEvent"
+ };
+ Assert.IsNotNull(testingTarget, "Can't create success object View");
+ Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
+
+ try
+ {
+ testingTarget.EmitTextInsertedEvent(0, 4, "test");
+ testingTarget.EmitTextCursorMovedEvent(4);
+ testingTarget.EmitTextDeletedEvent(0, 4, "test");
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ViewAccessibilityEmitTextInsertedEvent END (OK)");
+ }
}
}
}
[Test]
- [Description("View.AnimateBackgroundColor method")]
+ [Category("P1")]
+ [Description("View.AnimateBackgroundColor")]
+ [Property("SPEC", "Tizen.NUI.View.AnimateBackgroundColor M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
[Property("AUTHOR", "dongsug.song@samsung.com")]
public void ViewAnimateBackgroundColor()
{
Assert.IsNotNull(view, "should be not null");
- var animation = view.AnimateBackgroundColor(new Color(0, 0, 0, 1), 0, 300);
+ var animation = view.AnimateBackgroundColor(new Color(0, 0, 0, 1), 0, 300,
+ AlphaFunction.BuiltinFunctions.Bounce, new Color("#F1C40F"));
Assert.IsNotNull(animation, "should be not null");
}
[Test]
- [Description("View.AnimateColor method")]
+ [Category("P1")]
+ [Description("View.AnimateColor")]
+ [Property("SPEC", "Tizen.NUI.View.AnimateColor M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
[Property("AUTHOR", "dongsug.song@samsung.com")]
public void ViewAnimateColor()
{
}
[Test]
- [Description("View.Add method, child null")]
+ [Category("P1")]
+ [Description("View.Add, child null")]
+ [Property("SPEC", "Tizen.NUI.View.Add M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
[Property("AUTHOR", "dongsug.song@samsung.com")]
public void ViewAddArgumentNull()
{
}
[Test]
- [Description("View.HasFocus method")]
+ [Category("P1")]
+ [Description("View.HasFocus")]
+ [Property("SPEC", "Tizen.NUI.View.HasFocus M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
[Property("AUTHOR", "dongsug.song@samsung.com")]
public void ViewHasFocus()
{
tlog.Debug(tag, $"ViewHasFocus END (OK)");
}
+
[Test]
- [Description("View.RotateBy method")]
+ [Category("P1")]
+ [Description("View.RotateBy")]
+ [Property("SPEC", "Tizen.NUI.View.RotateBy M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
[Property("AUTHOR", "guowei.wang@samsung.com")]
public void ViewRotateBy()
{
}
[Test]
- [Description("View.RotateBy method")]
+ [Category("P1")]
+ [Description("View.RotateBy")]
+ [Property("SPEC", "Tizen.NUI.View.RotateBy M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
[Property("AUTHOR", "guowei.wang@samsung.com")]
public void ViewRotateByRadian()
{
}
[Test]
- [Description("View.Rotation method")]
+ [Category("P1")]
+ [Description("View.Rotation")]
+ [Property("SPEC", "Tizen.NUI.View.Rotation M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
[Property("AUTHOR", "guowei.wang@samsung.com")]
public void ViewRotateByRotation()
{
}
[Test]
- [Description("View.ScaleBy method")]
+ [Category("P1")]
+ [Description("View.ScaleBy")]
+ [Property("SPEC", "Tizen.NUI.View.ScaleBy M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
[Property("AUTHOR", "guowei.wang@samsung.com")]
public void ViewScaleBy()
{
view.Dispose();
tlog.Debug(tag, $"ViewScaleBy END (OK)");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("View.FindDescendantByID")]
+ [Property("SPEC", "Tizen.NUI.View.FindDescendantByID M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewFindDescendantByID()
+ {
+ tlog.Debug(tag, $"ViewFindDescendantByID START");
+
+ var view = new View()
+ {
+ Size = new Size2D(200, 200),
+ };
+ NUIApplication.GetDefaultWindow().Add(view);
+
+ var child = new View()
+ {
+ Size = new Size2D(100, 100),
+ PositionUsesPivotPoint = true,
+ ParentOrigin = ParentOrigin.CenterRight,
+ PivotPoint = PivotPoint.CenterRight,
+ BackgroundColor = Color.Azure,
+ Focusable = true,
+ };
+
+ view.Add(child);
+
+ var result = view.FindDescendantByID(child.ID);
+ Assert.IsNotNull(result, "should be not null");
+
+ NUIApplication.GetDefaultWindow().Remove(view);
+ view.Dispose();
+ tlog.Debug(tag, $"ViewFindDescendantByID END (OK)");
+ }
}
}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+using System.Collections.Generic;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/BaseComponents/VisualView")]
+ class TSVisualView
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VisualView constructor.")]
+ [Property("SPEC", "Tizen.NUI.VisualView.VisualView C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VisualViewConstructor()
+ {
+ tlog.Debug(tag, $"VisualViewConstructor START");
+
+ ViewStyle style = new ViewStyle()
+ {
+ Size = new Size2D(200, 200),
+ PositionUsesPivotPoint = true,
+ ParentOrigin = ParentOrigin.CenterRight,
+ PivotPoint = PivotPoint.CenterRight,
+ BackgroundColor = Color.Azure,
+ Focusable = true,
+ };
+
+ var testingTarget = new VisualView(style);
+ Assert.IsNotNull(testingTarget, "Can't create success object VisualView");
+ Assert.IsInstanceOf<VisualView>(testingTarget, "Should be an instance of VisualView type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"VisualViewConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VisualView constructor. With CustomViewBehaviour.")]
+ [Property("SPEC", "Tizen.NUI.VisualView.VisualView C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VisualViewConstructorWithCustomViewBehaviour()
+ {
+ tlog.Debug(tag, $"VisualViewConstructorWithCustomViewBehaviour START");
+
+ ViewStyle style = new ViewStyle()
+ {
+ Size = new Size2D(200, 200),
+ PositionUsesPivotPoint = true,
+ ParentOrigin = ParentOrigin.CenterRight,
+ PivotPoint = PivotPoint.CenterRight,
+ BackgroundColor = Color.Azure,
+ Focusable = true,
+ };
+
+ var testingTarget = new VisualView(CustomViewBehaviour.DisableStyleChangeSignals, style);
+ Assert.IsNotNull(testingTarget, "Can't create success object VisualView");
+ Assert.IsInstanceOf<VisualView>(testingTarget, "Should be an instance of VisualView type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"VisualViewConstructorWithCustomViewBehaviour END (OK)");
+ }
+ }
+}
var testingTarget = new Color(array);
Assert.IsNotNull(testingTarget, "null handle");
Assert.IsInstanceOf<Color>(testingTarget, "Should return Color instance.");
-
+
Assert.AreEqual(0.5f, testingTarget.R, "The R property of Black is not correct here.");
Assert.AreEqual(0.5f, testingTarget.G, "The G property of Black is not correct here.");
Assert.AreEqual(0.5f, testingTarget.B, "The B property of Black is not correct here.");
new Color(textColor);
Assert.Fail("Should return argument exception");
}
- catch (ArgumentException)
+ catch (ArgumentException)
{
tlog.Debug(tag, $"ColorConstructorWithNullString END (OK)");
Assert.Pass("ArgumentException: passed!");
tlog.Debug(tag, $"ColorConstructorWithSystemDrawingColorInstance START");
global::System.Drawing.Color color = global::System.Drawing.Color.FromArgb(255, 0, 0);
-
+
var testingTarget = new Color(color);
Assert.IsNotNull(testingTarget, "null handle");
Assert.IsInstanceOf<Color>(testingTarget, "Should return Color instance.");
tlog.Debug(tag, $"ColorDivision END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("Color operator /. By float")]
- //[Property("SPEC", "Tizen.NUI.Color./ M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ColorDivisionByFloat ()
- //{
- // tlog.Debug(tag, $"ColorDivisionByFloat START");
-
- // using (Color color = new Color(0.2f, 0.2f, 0.4f, 0.6f))
- // {
- // var testingTarget = color / 2.0f;
- // Assert.IsNotNull(testingTarget, "null handle");
- // Assert.IsInstanceOf<Color>(testingTarget, "Should return Color instance.");
-
- // Assert.AreEqual(0.1f, testingTarget.R, "The R value of the color is not correct!");
- // Assert.AreEqual(0.1f, testingTarget.G, "The G value of the color is not correct!");
- // Assert.AreEqual(0.2f, testingTarget.B, "The B value of the color is not correct!");
- // Assert.AreEqual(0.3f, testingTarget.A, "The A value of the color is not correct!");
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"ColorDivisionByFloat END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("Color EqualTo.")]
{
Size = new Size(100, 150, 40),
Position = new Position(20, 40),
- Color = Color.Cyan
+ Color = new Tizen.NUI.Color("#C3CAD5FF")
};
public override void OnUpdate(float elapsedSeconds)
base.GetScale(view.ID, new Vector3(100.0f, 150.0f, 0.0f));
base.SetScale(view.ID, new Vector3(100.0f, 150.0f, 0.0f));
base.BakeScale(view.ID, new Vector3(100.0f, 150.0f, 0.0f));
- base.GetColor(view.ID, Color.Blue);
- base.SetColor(view.ID, Color.Red);
- base.BakeColor(view.ID, Color.Yellow);
+ base.GetColor(view.ID, new Tizen.NUI.Color("#C3CAD2FF"));
+ base.SetColor(view.ID, new Tizen.NUI.Color("#C3CAD3FF"));
+ base.BakeColor(view.ID, new Tizen.NUI.Color("#C3CAD4FF"));
base.GetPositionAndSize(view.ID, new Position(100.0f, 150.0f, 0.0f), new Size(100.0f, 200.0f, 300.0f));
base.OnUpdate(300);
}
Assert.Pass("GestureDetectorConstructor");
}
- //[Test]
- //[Category("P1")]
- //[Description("GestureDetector constructor")]
- //[Property("SPEC", "Tizen.NUI.GestureDetector.GestureDetector C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void GestureDetectorConstructorWithGestureDetector()
- //{
- // tlog.Debug(tag, $"GestureDetectorConstructorWithGestureDetector START");
-
- // using (GestureDetector detector = new GestureDetector())
- // {
- // var testingTarget = new GestureDetector(detector);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<GestureDetector>(testingTarget, "should be an instance of testing target class!");
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"GestureDetectorConstructorWithGestureDetector END (OK)");
- // Assert.Pass("GestureDetectorConstructor");
- //}
-
[Test]
[Category("P1")]
[Description("GestureDetector Attach")]
Assert.Pass("GestureDetectorGetAttachedView");
}
- //[Test]
- //[Category("P1")]
- //[Description("GestureDetector Assign")]
- //[Property("SPEC", "Tizen.NUI.GestureDetector.Assign M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void GestureDetectorAssign()
- //{
- // tlog.Debug(tag, $"GestureDetectorAssign START");
-
- // using (GestureDetector detector = new GestureDetector())
- // {
- // var testingTarget = detector.Assign(detector);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<GestureDetector>(testingTarget, "should be an instance of testing target class!");
- // }
-
- // tlog.Debug(tag, $"GestureDetectorAssign END (OK)");
- // Assert.Pass("GestureDetectorAssign");
- //}
-
[Test]
[Category("P1")]
[Description("GestureDetector DownCast")]
Assert.Pass("TouchConstructor");
}
- //[Test]
- //[Category("P1")]
- //[Description("Touch constructor")]
- //[Property("SPEC", "Tizen.NUI.Touch.Touch C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void TouchConstructorWithTouch()
- //{
- // tlog.Debug(tag, $"TouchConstructorWithTouch START");
-
- // using (Touch touch = new Touch())
- // {
- // var testingTarget = new Touch(touch);
- // Assert.IsNotNull(testingTarget, "Can't create success object Touch");
- // Assert.IsInstanceOf<Touch>(testingTarget, "Should be an instance of Touch type.");
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"TouchConstructorWithTouch END (OK)");
- // Assert.Pass("TouchConstructor");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("Touch GetTime")]
- //[Property("SPEC", "Tizen.NUI.Touch.GetTime M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void TouchGetTime()
- //{
- // tlog.Debug(tag, $"TouchGetTime START");
-
- // var testingTarget = new Touch();
- // Assert.IsNotNull(testingTarget, "Can't create success object Touch");
- // Assert.IsInstanceOf<Touch>(testingTarget, "Should be an instance of Touch type.");
-
- // try
- // {
- // testingTarget.GetTime();
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"TouchGetPointCount END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("Touch GetPointCount")]
- //[Property("SPEC", "Tizen.NUI.Touch.GetPointCount M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void TouchGetPointCount()
- //{
- // tlog.Debug(tag, $"TouchGetPointCount START");
-
- // var testingTarget = new Touch();
- // Assert.IsNotNull(testingTarget, "Can't create success object Touch");
- // Assert.IsInstanceOf<Touch>(testingTarget, "Should be an instance of Touch type.");
-
- // try
- // {
- // testingTarget.GetPointCount();
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"TouchGetPointCount END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("Touch GetDeviceId")]
tlog.Debug(tag, $"FlexLayoutGetFlexGrow END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("FlexLayout DownCast")]
- //[Property("SPEC", "Tizen.NUI.FlexLayout.DownCast M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void FlexLayoutDownCast()
- //{
- // tlog.Debug(tag, $"FlexLayoutDownCast START");
-
- // View view = new View()
- // {
- // Size = new Size(400, 400),
- // BackgroundColor = Color.White,
- // Layout = new FlexLayout()
- // {
- // Direction = FlexLayout.FlexDirection.Column,
- // }
- // };
-
- // var testingTarget = FlexLayout.DownCast(view);
- // Assert.IsNotNull(testingTarget, "null handle");
- // Assert.IsInstanceOf<FlexLayout>(testingTarget, "Should return FlexLayout instance.");
-
- // view.Dispose();
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"FlexLayoutDownCast END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("FlexLayout Direction")]
}
}
- //[Test]
- //[Category("P1")]
- //[Description("DataTemplate SetupContent.")]
- //[Property("SPEC", "Tizen.NUI.DataTemplate.SetupContent M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void DataTemplateSetupContent()
- //{
- // tlog.Debug(tag, $"DataTemplateSetupContent START");
-
- // BindingBase binding = new Tizen.NUI.Binding.Binding(path) as BindingBase;
- // BindableProperty stateProperty = BindableProperty.CreateAttached("State", typeof(bool), typeof(XamlPropertyCondition), false, propertyChanged: OnStatePropertyChanged);
-
- // var testingTarget = new MyDataTemplateTest();
- // Assert.IsNotNull(testingTarget, "Can't create success object DataTemplate");
- // Assert.IsInstanceOf<DataTemplate>(testingTarget, "Should be an instance of DataTemplate type.");
-
- // testingTarget.SetBinding(stateProperty, binding);
- // testingTarget.SetValue(stateProperty, true);
-
- // try
- // {
- // ViewStyle style = new ViewStyle();
- // testingTarget.OnSetupContent(style);
- // }
- // catch (InvalidOperationException e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // tlog.Debug(tag, $"DataTemplateSetupContent END (OK)");
- // Assert.Pass("Caught InvalidOperationException : Passed!");
- // }
- //}
-
[Test]
[Category("P1")]
[Description("DataTemplate SetupContent. With null bandable.")]
tlog.Debug(tag, $"DataTemplateExtensionsCreateContentWithNullSelector END (OK)");
}
-
- //[Test]
- //[Category("P2")]
- //[Description("DataTemplateExtensions CreateContent. With LoadTemplate.")]
- //[Property("SPEC", "Tizen.NUI.DataTemplateExtensions.CreateContent M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void DataTemplateExtensionsCreateContentWithNullLoadTemplate()
- //{
- // tlog.Debug(tag, $"DataTemplateExtensionsCreateContentWithNullLoadTemplate START");
-
- // var testingTarget = new DataTemplate();
-
- // try
- // {
- // DataTemplateExtensions.CreateContent(testingTarget, "Color", new View());
- // }
- // catch (NotSupportedException e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // tlog.Debug(tag, $"DataTemplateExtensionsCreateContentWithNullLoadTemplate END (OK)");
- // Assert.Pass("Caught NotSupportedException: Pass!");
- // }
-
- // tlog.Debug(tag, $"DataTemplateExtensionsCreateContentWithNullLoadTemplate END (OK)");
- //}
}
}
tlog.Debug(tag, $"ThemeManagerplatformThemeEnabled END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("Test ThemeManager ApplyTheme.")]
- //[Property("SPEC", "Tizen.NUI.ThemeManager.ApplyTheme M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("COVPARAM", "")]
- //public void ThemeManagerApplyTheme()
- //{
- // tlog.Debug(tag, $"ThemeManagerApplyTheme START");
-
- // var testingTarget = new Theme(path);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<Theme>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // ThemeManager.ApplyTheme(testingTarget);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
-
- // tlog.Debug(tag, $"ThemeManagerApplyTheme END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("Test ThemeManager ApplyTheme.")]
- //[Property("SPEC", "Tizen.NUI.ThemeManager.ApplyTheme M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("COVPARAM", "")]
- //public void ThemeManagerApplyThemeNullThemeId()
- //{
- // tlog.Debug(tag, $"ThemeManagerApplyThemeNullThemeId START");
-
- // var testingTarget = new Theme();
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<Theme>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // ThemeManager.ApplyTheme(testingTarget);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
-
- // tlog.Debug(tag, $"ThemeManagerApplyThemeNullThemeId END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("Test ThemeManager GetStyle.")]
}
}
- //[Test]
- //[Category("P1")]
- //[Description("Capture Start include quality.")]
- //[Property("SPEC", "Tizen.NUI.Capture.Start M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void CaptureStartIncludeQuality()
- //{
- // tlog.Debug(tag, $"CaptureStartIncludeQuality START");
-
- // var testingTarget = new Capture();
- // Assert.IsNotNull(testingTarget, "Can't create success object Capture");
- // Assert.IsInstanceOf<Capture>(testingTarget, "Should be an instance of Capture type.");
-
- // using (Container container = new View())
- // {
- // using (Size size = new Size(100, 80))
- // {
- // using (Color color = Color.Cyan)
- // {
- // try
- // {
- // testingTarget.Start(container, size, jpg_path, color, 30);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
- // }
- // }
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"CaptureStartIncludeQuality END (OK)");
- //}
-
[Test]
[Category("P2")]
[Description("Capture Start include quality. Color is null.")]
}
}
- //[Test]
- //[Category("P1")]
- //[Description("Capture Start include position.")]
- //[Property("SPEC", "Tizen.NUI.Capture.Start M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void CaptureStartIncludePosition()
- //{
- // tlog.Debug(tag, $"CaptureStartIncludePosition START");
-
- // var testingTarget = new Capture();
- // Assert.IsNotNull(testingTarget, "Can't create success object Capture");
- // Assert.IsInstanceOf<Capture>(testingTarget, "Should be an instance of Capture type.");
-
- // using (Container container = new View())
- // {
- // using (Position position = new Position(50, 100))
- // {
- // using (Size size = new Size(100, 80))
- // {
- // using (Color color = Color.Cyan)
- // {
- // try
- // {
- // testingTarget.Start(container, position, size, path, color);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
- // }
- // }
- // }
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"CaptureStartIncludePosition END (OK)");
- //}
-
[Test]
[Category("P2")]
[Description("Capture Start include position. Position is null.")]
tlog.Debug(tag, $"ScrollViewPagePathEffectDownCast END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("ScrollViewPagePathEffect ApplyToPage.")]
- //[Property("SPEC", "Tizen.NUI.ScrollViewPagePathEffect.ApplyToPage M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void ScrollViewPagePathEffectApplyToPage()
- //{
- // tlog.Debug(tag, $"ScrollViewPagePathEffectApplyToPage START");
-
- // using (Path path = new Path())
- // {
- // using (Vector3 forword = new Vector3(2, 4, 6))
- // {
- // using (Vector3 pageSize = new Vector3(6, 8, 10))
- // {
- // var testingTarget = new ScrollViewPagePathEffect(path, forword, 1, pageSize, 5);
- // Assert.IsNotNull(testingTarget, "Can't create success object ScrollViewPagePathEffect");
- // Assert.IsInstanceOf<ScrollViewPagePathEffect>(testingTarget, "Should be an instance of ScrollViewPagePathEffect type.");
-
- // try
- // {
- // using (View view = new View())
- // {
- // testingTarget.ApplyToPage(view, 2);
- // }
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
- // }
- // }
-
- // tlog.Debug(tag, $"ScrollViewPagePathEffectApplyToPage END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("ScrollViewPagePathEffect ReleaseSwigCPtr.")]
tlog.Info(tag, "Destroy() is called!");
}
- //[Test]
- //[Category("P1")]
- //[Description("TextShadow constructor.")]
- //[Property("SPEC", "Tizen.NUI.TextShadow.TextShadow C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void TextShadowConstructor()
- //{
- // tlog.Debug(tag, $"TextShadowConstructor START");
-
- // using (Vector2 vector = new Vector2(1.5f, 3.0f))
- // {
- // var testingTarget = new TextShadow(Color.Cyan, vector, 0.3f);
- // Assert.IsNotNull(testingTarget, "Can't create success object TextShadow");
- // Assert.IsInstanceOf<TextShadow>(testingTarget, "Should be an instance of TextShadow type.");
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"TextShadowConstructor END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("TextShadow constructor. With TextShadow.")]
- //[Property("SPEC", "Tizen.NUI.TextShadow.TextShadow C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void TextShadowConstructorWithTextShadow()
- //{
- // tlog.Debug(tag, $"TextShadowConstructorWithTextShadow START");
-
- // using (Vector2 vector = new Vector2(1.5f, 3.0f))
- // {
- // using (TextShadow shadow = new TextShadow(Color.Cyan, vector, 0.3f))
- // {
- // try
- // {
- // var testingTarget = new TextShadow(shadow);
- // testingTarget.Dispose();
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // }
- // }
-
- // tlog.Debug(tag, $"TextShadowConstructorWithTextShadow END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("TextShadow constructor. With PropertyMap.")]
tlog.Debug(tag, $"WidgetViewEffect END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("WidgetView DownCast.")]
- //[Property("SPEC", "Tizen.NUI.WidgetView.DownCast M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WidgetViewDownCast()
- //{
- // tlog.Debug(tag, $"WidgetViewDownCast START");
-
- // try
- // {
- // WidgetView.DownCast(widgetView);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // tlog.Debug(tag, $"WidgetViewDownCast END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("WidgetView GetWidgetViewFromPtr.")]
tlog.Debug(tag, $"GLWindowVisibilityChangedEventArgsVisibility END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("GLWindow GLWindowVisibilityChanged")]
- //[Property("SPEC", "Tizen.NUI.GLWindow.VisibilityChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //public void GLWindowVisibilityChanged()
- //{
- // tlog.Debug(tag, $"GLWindowVisibilityChanged START");
-
- // string name = "myGLWindow";
- // Rectangle rectangle = new Rectangle(20, 20, 100, 100);
-
- // var testingTarget = new GLWindow(name, rectangle, true);
- // Assert.IsNotNull(testingTarget, "Can't create success object GLWindow");
- // Assert.IsInstanceOf<GLWindow>(testingTarget, "Should be an instance of GLWindow type.");
-
- // testingTarget.VisibilityChanged += OnVisibilityChanged;
- // testingTarget.VisibilityChanged -= OnVisibilityChanged;
-
- // testingTarget.Destroy();
- // tlog.Debug(tag, $"GLWindowVisibilityChanged END (OK)");
- //}
-
- //private void OnVisibilityChanged(object sender, GLWindow.VisibilityChangedEventArgs e) { }
-
[Test]
[Category("P1")]
[Description("GLWindow GLWindowVisibiltyChangedSignalEmit")]
tlog.Debug(tag, $"GLWindowVisibilityChangedEventConstructor END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("GLWindowVisibilityChangedEvent Empty")]
- //[Property("SPEC", "Tizen.NUI.GLWindowVisibilityChangedEvent.Empty M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void GLWindowVisibilityChangedEventEmpty()
- //{
- // tlog.Debug(tag, $"GLWindowVisibilityChangedEventEmpty START");
-
- // string name = "myGLWindow";
- // Rectangle rec = new Rectangle(20, 20, 100, 100);
- // GLWindow glwin = new GLWindow(name, rec, true);
-
- // var testingTarget = new GLWindowVisibilityChangedEvent(glwin.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "Can't create success object GLWindowVisibilityChangedEvent");
- // Assert.IsInstanceOf<GLWindowVisibilityChangedEvent>(testingTarget, "Should be an instance of GLWindowVisibilityChangedEvent type.");
-
- // var result = testingTarget.Empty();
- // tlog.Debug(tag, "Empty : " + result);
-
- // rec.Dispose();
- // glwin.Destroy();
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"GLWindowVisibilityChangedEventEmpty END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("GLWindowVisibilityChangedEvent GetConnectionCount")]
tlog.Debug(tag, $"GLWindowVisibilityChangedEventGetConnectionCount END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("GLWindowVisibilityChangedEvent Connect")]
- //[Property("SPEC", "Tizen.NUI.GLWindowVisibilityChangedEvent.Connect M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void GLWindowVisibilityChangedEventConnect()
- //{
- // tlog.Debug(tag, $"GLWindowVisibilityChangedEventConnect START");
-
- // string name = "myGLWindow";
- // Rectangle rec = new Rectangle(20, 20, 100, 100);
- // GLWindow glwin = new GLWindow(name, rec, true);
-
- // var testingTarget = new GLWindowVisibilityChangedEvent(glwin.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "Can't create success object GLWindowVisibilityChangedEvent");
- // Assert.IsInstanceOf<GLWindowVisibilityChangedEvent>(testingTarget, "Should be an instance of GLWindowVisibilityChangedEvent type.");
-
- // try
- // {
- // dummyCallback callback = OnDummyCallback;
- // testingTarget.Connect(callback);
- // testingTarget.Disconnect(callback);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
-
- // rec.Dispose();
- // glwin.Destroy();
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"GLWindowVisibilityChangedEventConnect END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("GLWindowVisibilityChangedEvent Emit")]
tlog.Debug(tag, $"WindowWindowPositionSize END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("Window DEFAULT_BACKGROUND_COLOR")]
- //[Property("SPEC", "Tizen.NUI.Window.DEFAULT_BACKGROUND_COLOR A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //public void WindowDEFAULT_BACKGROUND_COLOR()
- //{
- // tlog.Debug(tag, $"WindowDEFAULT_BACKGROUND_COLOR START");
- // try
- // {
- // Vector4 v1 = Window.DEFAULT_BACKGROUND_COLOR;
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"WindowDEFAULT_BACKGROUND_COLOR END (OK)");
- // Assert.Pass("WindowDEFAULT_BACKGROUND_COLOR");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("Window DEBUG_BACKGROUND_COLOR")]
- //[Property("SPEC", "Tizen.NUI.Window.DEBUG_BACKGROUND_COLOR A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //public void WindowDEBUG_BACKGROUND_COLOR()
- //{
- // tlog.Debug(tag, $"WindowDEBUG_BACKGROUND_COLOR START");
- // try
- // {
- // Vector4 v1 = Window.DEBUG_BACKGROUND_COLOR;
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"WindowDEBUG_BACKGROUND_COLOR END (OK)");
- // Assert.Pass("WindowDEBUG_BACKGROUND_COLOR");
- //}
-
[Test]
[Category("P1")]
[Description("Window GetLayer")]
tlog.Debug(tag, $"WindowGetRenderTaskList END (OK)");
}
- //[Test]
- //[Category("P1")]
- //[Description("Window GetObjectRegistry")]
- //[Property("SPEC", "Tizen.NUI.Window.GetObjectRegistry M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void WindowGetObjectRegistry()
- //{
- // tlog.Debug(tag, $"WindowGetObjectRegistry START");
- // try
- // {
- // win.GetObjectRegistry();
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"WindowGetObjectRegistry END (OK)");
- // Assert.Pass("WindowGetObjectRegistry");
- //}
-
[Test]
[Category("P1")]
[Description("Window SetWindowSize")]
testingTarget.FocusChanged += OnFocusChanged;
testingTarget.FocusChanged -= OnFocusChanged;
- testingTarget.Dispose();
tlog.Debug(tag, $"WindowEventFocusChanged END (OK)");
}
testingTarget.EventProcessingFinished += OnEventProcessingFinished;
testingTarget.EventProcessingFinished -= OnEventProcessingFinished;
- testingTarget.Dispose();
tlog.Debug(tag, $"WindowEventEventProcessingFinished END (OK)");
}
testingTarget.ContextLost += OnContextLost;
testingTarget.ContextLost -= OnContextLost;
- testingTarget.Dispose();
tlog.Debug(tag, $"WindowEventContextLost END (OK)");
}
testingTarget.ContextRegained += OnContextRegained;
testingTarget.ContextRegained -= OnContextRegained;
- testingTarget.Dispose();
tlog.Debug(tag, $"WindowEventContextRegained END (OK)");
}
testingTarget.SceneCreated += OnSceneCreated;
testingTarget.SceneCreated -= OnSceneCreated;
- testingTarget.Dispose();
tlog.Debug(tag, $"WindowEventSceneCreated END (OK)");
}
tlog.Debug(tag, $"ProvideValueTest3 END");
}
-
- //[Test]
- //[Category("P2")]
- //[Description("StaticResourceExtension GetApplicationLevelResource")]
- //[Property("SPEC", "Tizen.NUI.Xaml.StaticResourceExtension.GetApplicationLevelResource M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void GetApplicationLevelResourceTest()
- //{
- // tlog.Debug(tag, $"GetApplicationLevelResourceTest START");
-
- // var sr = new StaticResourceExtension();
- // Assert.Throws<Tizen.NUI.Xaml.XamlParseException>(() => sr.GetApplicationLevelResource("key", null));
-
- // tlog.Debug(tag, $"GetApplicationLevelResourceTest END");
- //}
}
}
\ No newline at end of file
tlog.Debug(tag, $"XamlServiceProviderConstructor END");
}
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider XamlServiceProvider")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.XamlServiceProvider C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //public void XamlServiceProviderConstructor2()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderConstructor START");
-
- // HydrationContext hydrationContext = new HydrationContext();
- // INodeImplement nodeImplement = new INodeImplement();
- // XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider(nodeImplement, hydrationContext);
- // Assert.IsNotNull(xamlServiceProvider2, "null XamlServiceProvider");
- // Assert.IsInstanceOf<XamlServiceProvider>(xamlServiceProvider2, "Should return XamlServiceProvider instance.");
- // tlog.Debug(tag, $"XamlServiceProviderConstructor END");
- //}
-
[Test]
[Category("P1")]
[Description("XamlServiceProvider IProvideValueTarget")]
tlog.Debug(tag, $"XamlServiceProviderFindByName END");
}
-
- public class IXmlNamespaceResolverImplement : IXmlNamespaceResolver
- {
- public IDictionary<string, string> GetNamespacesInScope(XmlNamespaceScope scope)
- {
- return null;
- }
-
- public string LookupNamespace(string prefix)
- {
- return "mySpace";
- }
-
- public string LookupPrefix(string namespaceName)
- {
- return "myPrefix";
- }
- }
-
- public class AssemblyImplement : Assembly
- {
-
- }
-
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider XamlTypeResolver")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.XamlTypeResolver M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void XamlServiceProviderXamlTypeResolver()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderXamlTypeResolver START");
-
- // try
- // {
- // IXmlNamespaceResolverImplement xmlNamespaceResolverImplement = new IXmlNamespaceResolverImplement();
- // AssemblyImplement currentAssembly = new AssemblyImplement();
- // XamlTypeResolver xamlTypeResolver = new XamlTypeResolver(xmlNamespaceResolverImplement, currentAssembly);
- // Assert.IsNotNull(xamlTypeResolver, "null XamlTypeResolver");
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // tlog.Debug(tag, $"XamlServiceProviderXamlTypeResolver END (OK)");
- // Assert.Pass("XamlServiceProviderXamlTypeResolver");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider RootObject")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.RootObject A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //public void XamlServiceProviderRootObject()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderRootObject START");
-
- // try
- // {
- // object o1 = new object();
- // XamlRootObjectProvider x1 = new XamlRootObjectProvider(o1);
- // Assert.IsNotNull(x1, "null XamlRootObjectProvider");
- // object o2 = x1.RootObject;
- // Assert.IsNotNull(o2, "null object");
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // tlog.Debug(tag, $"XamlServiceProviderRootObject END");
- //}
-
- public class IXmlLineInfoImplement : IXmlLineInfo
- {
- public int LineNumber
- {
- get => 1;
- set { }
- }
-
-
- public int LinePosition => throw new NotImplementedException();
-
- public bool HasLineInfo()
- {
- return true;
- }
- }
-
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider XmlLineInfoProvider")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.XmlLineInfoProvider M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void XamlServiceProviderXmlLineInfoProvider()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderXmlLineInfoProvider START");
-
- // try
- // {
- // IXmlLineInfoImplement xmlLineInfo = new IXmlLineInfoImplement();
- // XmlLineInfoProvider x1 = new XmlLineInfoProvider(xmlLineInfo);
- // Assert.IsNotNull(x1, "null XmlLineInfoProvider");
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // tlog.Debug(tag, $"XamlServiceProviderXmlLineInfoProvider END");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider XmlLineInfo")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.XmlLineInfo A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //public void XamlServiceProviderXmlLineInfo()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderXmlLineInfo START");
-
- // try
- // {
- // IXmlLineInfoImplement xmlLineInfo = new IXmlLineInfoImplement();
- // XmlLineInfoProvider x1 = new XmlLineInfoProvider(xmlLineInfo);
- // Assert.IsNotNull(x1, "null XmlLineInfoProvider");
- // IXmlLineInfo i1 = x1.XmlLineInfo;
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // tlog.Debug(tag, $"XamlServiceProviderXmlLineInfo END");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider ReferenceProvider")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.ReferenceProvider A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //public void XamlServiceProviderReferenceProvider()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderReferenceProvider START");
-
- // try
- // {
- // INodeImplement i1 = new INodeImplement();
- // ReferenceProvider referenceProvider = new ReferenceProvider(i1);
- // Assert.IsNotNull(referenceProvider, "null ReferenceProvider");
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // tlog.Debug(tag, $"XamlServiceProviderReferenceProvider END");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider FindByName")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.FindByName M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void XamlServiceProviderReferenceProviderFindByName()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderReferenceProviderFindByName START");
-
- // try
- // {
- // INodeImplement i1 = new INodeImplement();
- // ReferenceProvider referenceProvider = new ReferenceProvider(i1);
- // Assert.IsNotNull(referenceProvider, "null ReferenceProvider");
- // referenceProvider.FindByName("myName");
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // tlog.Debug(tag, $"XamlServiceProviderReferenceProviderFindByName END");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider NameScope")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.NameScope A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //public void XamlServiceProviderNameScope()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderNameScope START");
-
- // try
- // {
- // NameScopeProvider n1 = new NameScopeProvider();
- // Assert.IsNotNull(n1, "null NameScopeProvider");
- // INameScope i1 = n1.NameScope;
- // n1.NameScope = i1;
- // Assert.AreEqual(i1, n1.NameScope, "Should be equal");
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // tlog.Debug(tag, $"XamlServiceProviderNameScope END");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider GetNamespacesInScope")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.GetNamespacesInScope M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void XamlServiceProviderGetNamespacesInScope()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderGetNamespacesInScope START");
-
- // try
- // {
- // XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
- // Assert.IsNotNull(xmlNamespaceResolver, "null XmlNamespaceResolver");
- // XmlNamespaceScope xmlNamespaceScope = new XmlNamespaceScope();
- // Assert.IsNotNull(xmlNamespaceScope, "null XmlNamespaceScope");
- // xmlNamespaceResolver.GetNamespacesInScope(xmlNamespaceScope);
- // }
- // catch (Exception e)
- // {
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"XamlServiceProviderGetNamespacesInScope END");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider LookupNamespace")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.LookupNamespace M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void XamlServiceProviderLookupNamespace()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderLookupNamespace START");
-
- // try
- // {
- // XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
- // Assert.IsNotNull(xmlNamespaceResolver, "null XmlNamespaceResolver");
- // xmlNamespaceResolver.LookupNamespace("myPrefix");
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // tlog.Debug(tag, $"XamlServiceProviderLookupNamespace END");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider LookupPrefix")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.LookupPrefix M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void XamlServiceProviderLookupPrefix()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderLookupPrefix START");
-
- // try
- // {
- // XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
- // Assert.IsNotNull(xmlNamespaceResolver, "null XmlNamespaceResolver");
- // xmlNamespaceResolver.LookupPrefix("mynameSpaceName");
- // }
- // catch (Exception e)
- // {
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"XamlServiceProviderLookupPrefix END");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("XamlServiceProvider Add")]
- //[Property("SPEC", "Tizen.NUI.XamlServiceProvider.Add M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void XamlServiceProviderXmlNamespaceResolverAdd()
- //{
- // tlog.Debug(tag, $"XamlServiceProviderXmlNamespaceResolverAdd START");
-
- // try
- // {
- // XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
- // Assert.IsNotNull(xmlNamespaceResolver, "null XmlNamespaceResolver");
- // xmlNamespaceResolver.Add("myPrefix", "myNs");
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // tlog.Debug(tag, $"XamlServiceProviderXmlNamespaceResolverAdd END");
- //}
}
}
\ No newline at end of file
tlog.Debug(tag, $"SetterConstructor END");
}
- //[Test]
- //[Category("P2")]
- //[Description("Setter Setter")]
- //[Property("SPEC", "Tizen.NUI.Binding.Setter.Setter C")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "CONSTR")]
- //public void SetterConstructor2()
- //{
- // tlog.Debug(tag, $"SetterConstructor2 START");
- // Assert.Throws<ArgumentNullException>(() => new Setter());
- // tlog.Debug(tag, $"SetterConstructor2 END");
- //}
-
[Test]
[Category("P1")]
[Description("Setter Property ")]
tlog.Debug(tag, $"ApplyTest1 END");
}
- //[Test]
- //[Category("P2")]
- //[Description("XamlStyle Apply")]
- //[Property("SPEC", "Tizen.NUI.Binding.XamlStyle.Apply M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MCST")]
- //public void ApplyTest2()
- //{
- // tlog.Debug(tag, $"ApplyTest2 START");
- // XamlStyle t2 = new XamlStyle(typeof(View));
- // Assert.IsNotNull(t2, "null XamlStyle");
- // Assert.Throws<ArgumentNullException>(() => t2.Apply(null));
- // Assert.Throws<ArgumentNullException>(() => t2.UnApply(null));
- // tlog.Debug(tag, $"ApplyTest2 END");
- //}
-
[Test]
[Category("P1")]
[Description("XamlStyle CanBeAppliedTo")]