aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-10-19 16:58:44 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-10-19 16:58:44 +0200
commit04e3244be1bda2377ca26edc00ebd4866add7d39 (patch)
treea6e6791ec255dadff55deb7aa841d8e0bd0f90ee
parentf5f814e551005979e9e0c0003bde3d6bde67df01 (diff)
improved test for spinner and focus
-rw-r--r--Tests/GOLIBTests.cs16
-rwxr-xr-xTests/Interfaces/testSpinner.goml4
2 files changed, 20 insertions, 0 deletions
diff --git a/Tests/GOLIBTests.cs b/Tests/GOLIBTests.cs
index e84c18fc..2c1563ed 100644
--- a/Tests/GOLIBTests.cs
+++ b/Tests/GOLIBTests.cs
@@ -93,6 +93,22 @@ namespace test
public string update = "";
#endregion
+ public int intValue = 25;
+
+ public int IntValue {
+ get {
+ return intValue;
+ }
+ set {
+ intValue = value;
+ NotifyValueChanged ("IntValue", intValue);
+ }
+ }
+ void onSpinnerValueChange(object sender, ValueChangeEventArgs e){
+ if (e.MemberName != "Value")
+ return;
+ intValue = Convert.ToInt32(e.NewValue);
+ }
public List<String> TestList = new List<string>( new string[]
{
"string 1",
diff --git a/Tests/Interfaces/testSpinner.goml b/Tests/Interfaces/testSpinner.goml
index 48791ba5..d80f5c29 100755
--- a/Tests/Interfaces/testSpinner.goml
+++ b/Tests/Interfaces/testSpinner.goml
@@ -2,6 +2,10 @@
<VerticalStack Name="TopContainer" Width="400" Height="-1"
Margin="20" Background="DarkGray">
+ <HorizontalStack Fit="true">
+ <Spinner Value="{IntValue}" ValueChanged="onSpinnerValueChange"/>
<Spinner Value="5"/>
<Spinner Value="5"/>
+ <Button></Button>
+ </HorizontalStack>
</VerticalStack> \ No newline at end of file