[TSTACR-509][WidgetApplication] Remove deprecated TC 27/297027/4
authorSukhyungKang <shine.kang@samsung.com>
Wed, 9 Aug 2023 06:44:09 +0000 (15:44 +0900)
committerSukhyungKang <shine.kang@samsung.com>
Thu, 17 Aug 2023 01:22:16 +0000 (10:22 +0900)
Change-Id: Iacdfde0ca354a139f6287f62eedea51cd674346f
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
tct-suite-vs/Tizen.WidgetApplication.Tests/testcase/TSWidgetBase.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 800bc71..cf349d4
@@ -1,6 +1,5 @@
 using NUnit.Framework;
 using NUnit.Framework.TUnit;
-using ElmSharp;
 using System;
 using System.Collections.Generic;
 using System.Threading.Tasks;
@@ -35,50 +34,6 @@ namespace Tizen.Applications.Tests {
     [TestFixture]
     [Description("Testing Tizen.Applications.WidgetBase class")]
     public class WidgetBaseTests {
-        private Tizen.Applications.WidgetControl _widgetControl;
-        private string _widgetId = "org.tizen.WidgetAppInstChecker";
-        private Window _window;
-        private Background _background;
-        private RemoteView _remoteView;
-        private bool _created;
-
-        private void LaunchWidget()
-        {
-            if (_window == null)
-            {
-                _window = new Window(Application.Current.ApplicationInfo.ApplicationId);
-                _window.Show();
-                _background = new Background(_window)
-                {
-                    AlignmentX = -1,
-                    AlignmentY = -1,
-                    WeightX = 1,
-                    WeightY = 1,
-                    Color = Color.Black
-                };
-                _background.Show();
-                _window.AddResizeObject(_background);
-
-                RemoteViewFactory.Init(_window);
-                _remoteView = RemoteViewFactory.Create(_window, _widgetId, "", 0, true, true, true);
-                _remoteView.Layout.Resize(712, 712);
-                _remoteView.Layout.Show();
-            }
-        }
-
-        private void ShutdownWidget()
-        {
-            _window = null;
-            _background = null;
-            _remoteView = null;
-            _created = false;
-        }
-
-        private void OnCreated(object sender, Tizen.Applications.WidgetLifecycleEventArgs args)
-        {
-            _created = true;
-        }
-
         [SetUp]
         public void Init()
         {
@@ -105,42 +60,5 @@ namespace Tizen.Applications.Tests {
             Assert.NotNull(bWidget, "Should not return NULL");
             Assert.IsInstanceOf<WidgetBase>(bWidget, "Should return WidgetBase instance.");
         }
-
-        [Test]
-        [Category("P1")]
-        [Description("Create a widget with default value")]
-        [Property("SPEC", "Tizen.Applications.WidgetBase.Id A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRO")]
-        [Property("AUTHOR", "Junghoon Park, jh9216.park@samsung.com")]
-        public async Task Id_PROPERTY_GET()
-        {
-            /* PRECONDITION
-             * */
-            ShutdownWidget();
-            _widgetControl = new Tizen.Applications.WidgetControl(_widgetId);
-            _widgetControl.Created += OnCreated;
-            LaunchWidget();
-            await Task.Delay(4000);
-            Assert.True(_created);
-            string content = _remoteView.Content;
-            Assert.NotNull(content);
-
-            /* TEST CODE */
-            Bundle b = Bundle.Decode(content);
-            b.TryGetItem("InstID", out string val);
-            Assert.NotNull(val);\r
-\r
-            string[] vs = val.Split(":");
-            Assert.AreEqual(vs[1], _widgetId);
-
-            /* POSTCONDITION
-             * */
-            b.Dispose();
-            ShutdownWidget();
-            _widgetControl.Created -= OnCreated;
-            _widgetControl.Dispose();
-            _widgetControl = null;
-        }
     }
 }