summaryrefslogtreecommitdiff
path: root/ElmSharp.Test
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-06-01 06:58:40 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-06-01 06:58:40 +0000
commit2e64ba1ee3b6ff540e792d6ac53c3fef7e35a46c (patch)
tree00bc9fec90560bc250f01f46adf07f0a235ccf79 /ElmSharp.Test
parentbb988d6e3aeeeedd743dda62a7b1d20d1ae2870d (diff)
parent99b1a4659b1192e0c72d9a706a80c694635d5230 (diff)
downloadelm-sharp-2e64ba1ee3b6ff540e792d6ac53c3fef7e35a46c.tar.gz
elm-sharp-2e64ba1ee3b6ff540e792d6ac53c3fef7e35a46c.tar.bz2
elm-sharp-2e64ba1ee3b6ff540e792d6ac53c3fef7e35a46c.zip
Merge "Add some scenario for checking the clicked event of ToolbarItem" into tizensubmit/tizen/20170601.070258accepted/tizen/unified/20170602.154345
Diffstat (limited to 'ElmSharp.Test')
-rwxr-xr-xElmSharp.Test/TC/ToolbarTest3.cs21
1 files changed, 14 insertions, 7 deletions
diff --git a/ElmSharp.Test/TC/ToolbarTest3.cs b/ElmSharp.Test/TC/ToolbarTest3.cs
index 6261aed..5568088 100755
--- a/ElmSharp.Test/TC/ToolbarTest3.cs
+++ b/ElmSharp.Test/TC/ToolbarTest3.cs
@@ -52,13 +52,6 @@ namespace ElmSharp.Test
toolbar.Show();
outterBox.PackEnd(toolbar);
- for (int i = 0; i < 5; i++)
- {
- ToolbarItem item = toolbar.Append(string.Format("{0} home", i), "home");
- Color bgColor = Color.FromRgb(rnd.Next(255), rnd.Next(255), rnd.Next(255));
- item.SetPartColor("bg", bgColor);
- }
-
toolbar.Selected += (s, e) =>
{
e.Item.DeletePartColor("bg");
@@ -70,6 +63,20 @@ namespace ElmSharp.Test
};
lb.Show();
outterBox.PackEnd(lb);
+
+ for (int i = 0; i < 5; i++)
+ {
+ ToolbarItem item = toolbar.Append(string.Format("{0} home", i), "home");
+ Color bgColor = Color.FromRgb(rnd.Next(255), rnd.Next(255), rnd.Next(255));
+ item.SetPartColor("bg", bgColor);
+
+ item.Clicked += (s, e) =>
+ {
+ lb.Text = (s as ToolbarItem).Text+" clicked";
+ };
+ }
+
+
conformant.SetContent(outterBox);
}
}