From ce5e89b9737cc84152608b5f5feb9bdc67e47a0c Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Wed, 19 Sep 2018 13:13:39 +0900 Subject: [PATCH] [NUI][TCSACR-180]Add RenderingBehavior testcase Change-Id: Ic8154565d9af95ad195fe06c684227be75435dc4 Signed-off-by: huiyu.eun --- tct-suite-vs/Tizen.NUI.Tests/testcase/TSWindow.cs | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWindow.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWindow.cs index 4b2062e..9d2206d 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWindow.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWindow.cs @@ -1072,5 +1072,32 @@ namespace Tizen.NUI.Tests Assert.Fail("Caught Exception" + e.ToString()); } } + + [Test] + [Category("P1")] + [Description("Window RenderingBehavior test, Check whether RenderingBehavior works or not.")] + [Property("SPEC", "Tizen.NUI.Window.RenderingBehavior A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "huiyu eun, huiyu.eun@samsung.com")] + public void RenderingBehavior_SET_GET_VALUE() + { + /* TEST CODE */ + var window = Window.Instance; + try + { + window.RenderingBehavior = RenderingBehaviorType.Continuously; + Assert.AreEqual(window.RenderingBehavior, RenderingBehaviorType.Continuously, "The window.RenderingBehavior is not Continuously!"); + + window.RenderingBehavior = RenderingBehaviorType.IfRequired; + Assert.AreEqual(window.RenderingBehavior, RenderingBehaviorType.IfRequired, "The window.RenderingBehavior is not IfRequired!"); + } + catch (Exception e) + { + Tizen.Log.Error(TAG, "Caught Exception" + e.ToString()); + LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); + Assert.Fail("Caught Exception" + e.ToString()); + } + } } } -- 2.7.4