From: Jiyun Yang Date: Mon, 24 May 2021 04:42:43 +0000 (+0900) Subject: [NUI][Non-ACR] Skip Notification tests in specific condition. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F258672%2F1;p=test%2Ftct%2Fcsharp%2Fapi.git [NUI][Non-ACR] Skip Notification tests in specific condition. When the device is not support to opengles.surfaceless_context, skip all Notification tests. Change-Id: Id5f7180c748361de0620721cbafa0f7ef0b9ab73 Signed-off-by: Jiyun Yang --- diff --git a/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSNotification.cs b/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSNotification.cs index 5fbc66d..3db7c4f 100755 --- a/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSNotification.cs +++ b/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSNotification.cs @@ -37,6 +37,12 @@ namespace Tizen.NUI.Components.Tests public void Notification_INIT() { /* TEST CODE */ + if (isSurfacelessContextSupported == false) + { + Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context"); + return; + } + View view = new View(); Assert.IsNotNull(view, "Can't create success object View"); var noti = new Notification(view); @@ -54,6 +60,12 @@ namespace Tizen.NUI.Components.Tests public void Notification_INIT_WITH_NULL_ARGUMENT() { /* TEST CODE */ + if (isSurfacelessContextSupported == false) + { + Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context"); + return; + } + try { View view = null; @@ -76,6 +88,12 @@ namespace Tizen.NUI.Components.Tests public void ContentView_SET_GET_VALUE() { /* TEST CODE */ + if (isSurfacelessContextSupported == false) + { + Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context"); + return; + } + View view = new View(); Assert.IsNotNull(view, "Can't create success object View"); var noti = new Notification(view); @@ -96,6 +114,12 @@ namespace Tizen.NUI.Components.Tests public void SetLevel_CHECK_RETURN_VALUE() { /* TEST CODE */ + if (isSurfacelessContextSupported == false) + { + Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context"); + return; + } + View view = new View(); Assert.IsNotNull(view, "Can't create success object View"); var noti = new Notification(view); @@ -116,6 +140,12 @@ namespace Tizen.NUI.Components.Tests public void SetLevel_CHECK_RETURN_VALUE_Exception() { /* TEST CODE */ + if (isSurfacelessContextSupported == false) + { + Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context"); + return; + } + View view = new View(); Assert.IsNotNull(view, "Can't create success object View"); var noti = new Notification(view); @@ -137,6 +167,12 @@ namespace Tizen.NUI.Components.Tests public void SetPositionSize_CHECK_RETURN_VALUE() { /* TEST CODE */ + if (isSurfacelessContextSupported == false) + { + Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context"); + return; + } + View view = new View(); Assert.IsNotNull(view, "Can't create success object View"); var noti = new Notification(view); @@ -157,6 +193,12 @@ namespace Tizen.NUI.Components.Tests public void SetPositionSize_CHECK_RETURN_VALUE_Exception() { /* TEST CODE */ + if (isSurfacelessContextSupported == false) + { + Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context"); + return; + } + View view = new View(); Assert.IsNotNull(view, "Can't create success object View"); var noti = new Notification(view);