[NUI][Non-ACR] Fixed Button Selectable issue 02/239202/2
authorzhouleonlei <zhouleon.lei@samsung.com>
Wed, 22 Jul 2020 11:06:58 +0000 (19:06 +0800)
committerzhou lei <zhouleon.lei@samsung.com>
Wed, 22 Jul 2020 11:12:26 +0000 (11:12 +0000)
In Button, "IsSelectable" is the precondition of "IsSelected".
If "IsSelectable" is false, it will be invalid when setting value(true or false) to "IsSelected"

Change-Id: I2b22d0efe6e97d666b85982087e19de384b8adca

tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSButton.cs

index 8c8e50294246522d2a9682278d37d381691fca29..51556993c62352a2238dfba7d687dc571f080fc2 100755 (executable)
@@ -555,6 +555,7 @@ namespace Tizen.NUI.Components.Tests
             Assert.IsNotNull(button, "Should be not null");
             Assert.IsInstanceOf<Components.Button>(button, "Should be equal!");
 
+            button.IsSelectable = true;
             button.IsSelected = true;
             Assert.AreEqual(true, button.IsSelected, "Retrieved IsSelected should be equal to set value");
             button.IsSelected = false;
@@ -666,6 +667,7 @@ namespace Tizen.NUI.Components.Tests
             Assert.IsInstanceOf<Components.Button>(button, "Should be equal!");
 
             button.StateChangedEvent += OnStateChangedEvent;
+            button.IsSelectable = true;
             button.IsSelected = true;
             Assert.AreEqual(true, _stateChangedEvent, "Should be equal!");
             button.StateChangedEvent -= OnStateChangedEvent;