[NUI][TCSACR-298]Apply Feature for MultiWindow 77/220777/4
authorSunghyun kim <scholb.kim@samsung.com>
Mon, 23 Dec 2019 06:45:22 +0000 (15:45 +0900)
committerSunghyun Kim <scholb.kim@samsung.com>
Fri, 29 May 2020 05:18:22 +0000 (14:18 +0900)
If "http://tizen.org/feature/opengles.surfaceless_context" is not supported, MultiWIndow cannot be used.
in this case, TC need to be not run.

Change-Id: Ie2dc9e44148facc45983f95bd66d50c93162c57e

tct-suite-vs/Tizen.NUI.Tests/testcase/TSWindow.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index f2b15bc..d84efd6
@@ -15,6 +15,7 @@ namespace Tizen.NUI.Tests
     public class WindowTests
     {
         private string TAG = "NUI";
+        bool isSurfacelessContextSupported = false;
 
         [SetUp]
         public void Init()
@@ -22,6 +23,7 @@ namespace Tizen.NUI.Tests
             Tizen.Log.Info(TAG, "Init() is called!");
             App.MainTitleChangeText("WindowTests");
             App.MainTitleChangeBackgroundColor(null);
+            Tizen.System.Information.TryGetValue("http://tizen.org/feature/opengles.surfaceless_context", out isSurfacelessContextSupported);
         }
 
         [TearDown]
@@ -53,6 +55,12 @@ namespace Tizen.NUI.Tests
         public void Window_INIT()
         {
             /* TEST CODE */
+            if( isSurfacelessContextSupported == false )
+            {
+                Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context");
+                return;
+            }
+
             var window = new Window(new Rectangle(0,0,1920,1080), false );
             Assert.IsNotNull(window, "The instance should be not null");
             Assert.IsInstanceOf<Window>(window, "Should return View instance.");
@@ -73,6 +81,12 @@ namespace Tizen.NUI.Tests
         public void Window_INIT_NAME()
         {
             /* TEST CODE */
+             if( isSurfacelessContextSupported == false )
+            {
+                Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context");
+                return;
+            }
+
             var window = new Window("Test Window", new Rectangle(0,0,1920,1080), false );
             Assert.IsNotNull(window, "The instance should be not null");
             Assert.IsInstanceOf<Window>(window, "Should return View instance.");
@@ -1317,6 +1331,12 @@ namespace Tizen.NUI.Tests
         public void SetParent_CHECK_RETURN_VALUE()
         {
             /* TEST CODE */
+             if( isSurfacelessContextSupported == false )
+            {
+                Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context");
+                return;
+            }
+
             try
             {
                 var window = Window.Instance;
@@ -1342,6 +1362,12 @@ namespace Tizen.NUI.Tests
         public void Unparent_CHECK_RETURN_VALUE()
         {
             /* TEST CODE */
+             if( isSurfacelessContextSupported == false )
+            {
+                Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context");
+                return;
+            }
+
             try
             {
                 var window = Window.Instance;
@@ -1369,6 +1395,12 @@ namespace Tizen.NUI.Tests
         public void GetParent_CHECK_RETURN_VALUE()
         {
             /* TEST CODE */
+             if( isSurfacelessContextSupported == false )
+            {
+                Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context");
+                return;
+            }
+
             try
             {
                 var window = Window.Instance;