[NUI][ACR-333] Remove Theme event 35/241035/2
authorzhouleonlei <zhouleon.lei@samsung.com>
Fri, 14 Aug 2020 03:44:55 +0000 (11:44 +0800)
committerzhou lei <zhouleon.lei@samsung.com>
Fri, 14 Aug 2020 06:08:07 +0000 (06:08 +0000)
The new logic of Theme has been improved. So delete the old ThemeChangedEvent

Change-Id: Ide517ba5ef8acaabb59ff2478fae91cb49cabc8d

tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSButton.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSPopup.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSProgress.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSSlider.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSSwitch.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSTab.cs [changed mode: 0644->0755]

index ca9279412832545d4686f7ec852ac9a32ad658d9..ff5a2ed00d66aeb6ae590c44de25710c9ee06f0a 100755 (executable)
@@ -18,7 +18,6 @@ namespace Tizen.NUI.Components.Tests
         private const string TAG = "Components";
         private bool _stateChangedEvent = false;
         private string _image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
-        private static bool _flagOnThemeChangedEvent = false;
 
         [SetUp]
         public void Init()
@@ -744,30 +743,6 @@ namespace Tizen.NUI.Components.Tests
             }
         }
 
-        [Test]
-        [Category("P1")]
-        [Description("Test OnThemeChangedEvent. Check whether OnThemeChangedEvent works or not.")]
-        [Property("SPEC", "Tizen.NUI.Components.Button.OnThemeChangedEvent M")]
-        [Property("SPEC_URL", " - ")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
-        public void OnThemeChangedEvent_CHECK_RETURN_VALUE()
-        {
-            try
-            {
-                _flagOnThemeChangedEvent = false;
-                StyleManager.Instance.Theme = "Family";
-                var button = new Button();
-                StyleManager.Instance.Theme = "Food";
-                Assert.IsNotNull(button, "Should be not null");
-                Assert.IsTrue(_flagOnThemeChangedEvent, "Should be true!");
-            }
-            catch (Exception e)
-            {
-                Assert.Fail("Caught Exception" + e.ToString());
-            }
-        }
-
         [Test]
         [Category("P1")]
         [Description("Test Button's icon part. Check whether null or not")]
@@ -895,11 +870,6 @@ namespace Tizen.NUI.Components.Tests
             {
                 return base.CreateViewStyle();
             }
-
-            protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
-            {
-                _flagOnThemeChangedEvent = true;
-            }
         }
 
         public class DefaultButtonStyle : StyleBase
old mode 100644 (file)
new mode 100755 (executable)
index 8475d73..8701845
@@ -17,7 +17,6 @@ namespace Tizen.NUI.Components.Tests
         private const string TAG = "Components";
         private string _image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
         private string _path = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
-        private static bool _flagOnThemeChangedEvent = false;
 
         [SetUp]
         public void Init()
@@ -510,30 +509,6 @@ namespace Tizen.NUI.Components.Tests
             }
         }
 
-        [Test]
-        [Category("P1")]
-        [Description("Test OnThemeChangedEvent. Check whether OnThemeChangedEvent works or not.")]
-        [Property("SPEC", "Tizen.NUI.Components.Popup.OnThemeChangedEvent M")]
-        [Property("SPEC_URL", " - ")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
-        public void OnThemeChangedEvent_CHECK_RETURN_VALUE()
-        {
-            try
-            {
-                _flagOnThemeChangedEvent = false;
-                StyleManager.Instance.Theme = "Family";
-                var popup = new MyPopup();
-                StyleManager.Instance.Theme = "Food";
-                Assert.IsNotNull(popup, "Should be not null");
-                Assert.IsTrue(_flagOnThemeChangedEvent, "Should be true!");
-            }
-            catch (Exception e)
-            {
-                Assert.Fail("Caught Exception" + e.ToString());
-            }
-        }
-
         public class MyPopup : Popup
         {
             public MyPopup() : base() {}\r
@@ -542,11 +517,6 @@ namespace Tizen.NUI.Components.Tests
             {
                 return base.CreateViewStyle();
             }
-
-            protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
-            {
-                _flagOnThemeChangedEvent = true;
-            }
         }
 
         public class DefaultPopupStyle : StyleBase
old mode 100644 (file)
new mode 100755 (executable)
index b1fa406..8c327f9
@@ -16,7 +16,6 @@ namespace Tizen.NUI.Components.Tests
     {
         private const string TAG = "Components";
         private string _image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "Tizen.NUI.Components.Tests.png";
-        private static bool _flagOnThemeChangedEvent = false;
 
         [SetUp]
         public void Init()
@@ -419,30 +418,6 @@ namespace Tizen.NUI.Components.Tests
             }
         }
 
-        [Test]
-        [Category("P1")]
-        [Description("Test OnThemeChangedEvent. Check whether OnThemeChangedEvent works or not.")]
-        [Property("SPEC", "Tizen.NUI.Components.Progress.OnThemeChangedEvent M")]
-        [Property("SPEC_URL", " - ")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
-        public void OnThemeChangedEvent_CHECK_RETURN_VALUE()
-        {
-            try
-            {
-                _flagOnThemeChangedEvent = false;
-                StyleManager.Instance.Theme = "Family";
-                var progress = new MyProgress();
-                StyleManager.Instance.Theme = "Food";
-                Assert.IsNotNull(progress, "Should be not null");
-                Assert.IsTrue(_flagOnThemeChangedEvent, "Should be true!");
-            }
-            catch (Exception e)
-            {
-                Assert.Fail("Caught Exception" + e.ToString());
-            }
-        }
-
         public class MyProgress : Progress
         {
             public MyProgress() : base()
@@ -457,11 +432,6 @@ namespace Tizen.NUI.Components.Tests
             {
                 base.ChangeImageState(statusType);
             }
-
-            protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
-            {
-                _flagOnThemeChangedEvent = true;
-            }
         }
 
         public class DefaultProgressStyle : StyleBase
old mode 100644 (file)
new mode 100755 (executable)
index 1655b40..cd51639
@@ -13,7 +13,6 @@ namespace Tizen.NUI.Components.Tests
     {
         private const string TAG = "TCT";
         private string _image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
-        private static bool _flagOnThemeChangedEvent = false;
 
         public SliderTests()
         {
@@ -563,30 +562,6 @@ namespace Tizen.NUI.Components.Tests
             }
         }
 
-        [Test]
-        [Category("P1")]
-        [Description("Test OnThemeChangedEvent. Check whether OnThemeChangedEvent works or not.")]
-        [Property("SPEC", "Tizen.NUI.Components.Slider.OnThemeChangedEvent M")]
-        [Property("SPEC_URL", " - ")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
-        public void OnThemeChangedEvent_CHECK_RETURN_VALUE()
-        {
-            try
-            {
-                _flagOnThemeChangedEvent = false;
-                StyleManager.Instance.Theme = "Family";
-                var slider = new Slider();
-                StyleManager.Instance.Theme = "Food";
-                Assert.IsNotNull(slider, "Should be not null");
-                Assert.IsTrue(_flagOnThemeChangedEvent, "Should be true!");
-            }
-            catch (Exception e)
-            {
-                Assert.Fail("Caught Exception" + e.ToString());
-            }
-        }
-
         public class MySlider : Slider
         {
             public MySlider() : base() {}\r
@@ -594,11 +569,6 @@ namespace Tizen.NUI.Components.Tests
             public ViewStyle CreateMyViewStyle()\r
             {\r
                 return base.CreateViewStyle();\r
-            }\r
-
-            protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
-            {
-                _flagOnThemeChangedEvent = true;
             }
         }
 
index 63fffc9126b191b88a9be4059666bfe40bb7ba2e..128250ef31abe800e9eedf1f11c7c66c62e06167 100755 (executable)
@@ -16,7 +16,6 @@ namespace Tizen.NUI.Components.Tests
     {
         private const string TAG = "Components";
         private string _image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
-        private static bool _flagOnThemeChangedEvent = false;
 
         [SetUp]
         public void Init()
@@ -264,30 +263,6 @@ namespace Tizen.NUI.Components.Tests
             }
         }
 
-        [Test]
-        [Category("P1")]
-        [Description("Test OnThemeChangedEvent. Check whether OnThemeChangedEvent works or not.")]
-        [Property("SPEC", "Tizen.NUI.Components.Switch.OnThemeChangedEvent M")]
-        [Property("SPEC_URL", " - ")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
-        public void OnThemeChangedEvent_CHECK_RETURN_VALUE()
-        {
-            try
-            {
-                _flagOnThemeChangedEvent = false;
-                StyleManager.Instance.Theme = "Family";
-                var _switch = new Switch();
-                StyleManager.Instance.Theme = "Food";
-                Assert.IsNotNull(_switch, "Should be not null");
-                Assert.IsTrue(_flagOnThemeChangedEvent, "Should be true!");
-            }
-            catch (Exception e)
-            {
-                Assert.Fail("Caught Exception" + e.ToString());
-            }
-        }
-
         [Test]
         [Category("P1")]
         [Description("Test Switch's track part. Check whether null or not")]
@@ -350,11 +325,6 @@ namespace Tizen.NUI.Components.Tests
             {
                 return base.CreateViewStyle();
             }
-
-            protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
-            {
-                _flagOnThemeChangedEvent = true;
-            }
         }
 
         public class DefaultSwitchStyle : StyleBase
old mode 100644 (file)
new mode 100755 (executable)
index 23be3ac..1ffffad
@@ -13,7 +13,6 @@ namespace Tizen.NUI.Components.Tests
     {
         private const string TAG = "Components";
         private bool _checkValue;
-        private static bool _flagOnThemeChangedEvent = true;
 
         [SetUp]
         public void Init()
@@ -615,30 +614,6 @@ namespace Tizen.NUI.Components.Tests
             }
         }
 
-        [Test]
-        [Category("P1")]
-        [Description("Test OnThemeChangedEvent. Check whether OnThemeChangedEvent works or not.")]
-        [Property("SPEC", "Tizen.NUI.Components.Tab.OnThemeChangedEvent M")]
-        [Property("SPEC_URL", " - ")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
-        public void OnThemeChangedEvent_CHECK_RETURN_VALUE()
-        {
-            try
-            {
-                _flagOnThemeChangedEvent = false;
-                StyleManager.Instance.Theme = "Family";
-                var tab = new Tab();
-                StyleManager.Instance.Theme = "Food";
-                Assert.IsNotNull(tab, "Should be not null");
-                Assert.IsTrue(_flagOnThemeChangedEvent, "Should be true!");
-            }
-            catch (Exception e)
-            {
-                Assert.Fail("Caught Exception" + e.ToString());
-            }
-        }
-
         public class MyTab : Tab
         {
             public bool flagOnUpdate = false;
@@ -661,11 +636,6 @@ namespace Tizen.NUI.Components.Tests
                 flagOnUpdate = true;
             }
 
-            protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
-            {
-                _flagOnThemeChangedEvent = true;
-            }
-
             protected override void LayoutChild()
             {
                 base.LayoutChild();