From 66d7d7674b8ff747519c5d0d417c9ecf541fe21f Mon Sep 17 00:00:00 2001 From: Dongsug Song Date: Wed, 21 Oct 2020 15:08:08 +0900 Subject: [PATCH] [Non-ACR][NUI][Fix testhub fail only in TM1] - Notification uses multi-window feature, but TM1 doesn't support multi-window. - Add check routine of multi-window support feature in Notification TCs. - TV(NikeM) and Wearable(TW3) support multi-window, so they have been passed successfully. Change-Id: I22bf37bc140daf8c86b4d11d9dd5e5274e9eee64 --- .../testcase/TSNotification.cs | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) 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 b70f8c7..5fbc66d 100755 --- a/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSNotification.cs +++ b/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSNotification.cs @@ -12,11 +12,13 @@ namespace Tizen.NUI.Components.Tests public class NotificationTests { private const string TAG = "Components"; + bool isSurfacelessContextSupported = false; [SetUp] public void Init() { Tizen.Log.Info(TAG, "Init() is called!"); + Tizen.System.Information.TryGetValue("http://tizen.org/feature/opengles.surfaceless_context", out isSurfacelessContextSupported); } [TearDown] @@ -182,6 +184,13 @@ namespace Tizen.NUI.Components.Tests public void Post_CHECK_NO_RETURN_VALUE() { /* TEST CODE */ + if (isSurfacelessContextSupported == false) + { + Tizen.Log.Error("NUITEST", "Test skipped! This Device is not support to opengles.surfaceless_context"); + 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); @@ -209,6 +218,12 @@ namespace Tizen.NUI.Components.Tests public void Dismiss_CHECK_NO_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); @@ -235,6 +250,12 @@ namespace Tizen.NUI.Components.Tests public void Dismiss_CHECK_NO_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); @@ -256,6 +277,12 @@ namespace Tizen.NUI.Components.Tests public async Task ForceQuit_CHECK_NO_RETURN_VALUE_During_onDismissAnimation() { /* 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); @@ -287,6 +314,12 @@ namespace Tizen.NUI.Components.Tests public async Task ForceQuit_CHECK_NO_RETURN_VALUE_onDismissAnimation_Finished() { /* 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); @@ -318,6 +351,12 @@ namespace Tizen.NUI.Components.Tests public void ForceQuit_CHECK_NO_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); @@ -339,6 +378,12 @@ namespace Tizen.NUI.Components.Tests public void SetAnimationOnPost_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); @@ -360,6 +405,12 @@ namespace Tizen.NUI.Components.Tests public void SetAnimationOnDismiss_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); @@ -380,6 +431,12 @@ namespace Tizen.NUI.Components.Tests [Property("AUTHOR", "Guowei Wang, guowei.wang@samsung.com")] public void Dispose_CHECK() { + if (isSurfacelessContextSupported == false) + { + Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context"); + return; + } + /* TEST CODE */ try { -- 2.7.4