[NUI] Fix failed & block TCs of NUI.Devel(API10).
authorguowei.wang <guowei.wang@samsung.com>
Wed, 17 Nov 2021 13:47:23 +0000 (21:47 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 22 Nov 2021 10:54:11 +0000 (19:54 +0900)
24 files changed:
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/res/Test_Theme.xaml [new file with mode: 0755]
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/res/layout/BaseXamlSample.xaml
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/res/layout/BaseXamlSample3.xaml
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/res/layout/TotalSample.xaml
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/res/layout/XamlStyleSample.xaml
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Animation/TSAnimation.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/BaseComponents/TSViewPublicMethods.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Common/TSPosition2D.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Common/TSSize.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Common/TSSize2D.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Images/TSPixelData.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Utility/TSPalette.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/ViewProperty/TSTextShadow.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/WebView/TSWebView.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Widget/TSWidgetView.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Widget/TSWidgetViewManager.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Window/TSGLWindow.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Window/TSGLWindowEvent.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Window/TSGLWindowVisibilityChangedEvent.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Window/TSWindow.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Xaml/TSViewExtensions.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Xaml/TotalSample/BindingsCompiler.xaml.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Xaml/TotalSample/TotalSample.xaml.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Xaml/TotalSample/XReference.xaml

diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/res/Test_Theme.xaml b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/res/Test_Theme.xaml
new file mode 100755 (executable)
index 0000000..b76ca73
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<thememanager:Theme  
+    xmlns:thememanager="clr-namespace:Tizen.Applications.ThemeManager;assembly=Tizen.Applications.ThemeManager"
+    xmlns="http://tizen.org/Tizen.NUI/2018/XAML" 
+    Id="Tizen.NUI.Theme.Common" 
+    Version="1.0" >
+</thememanager:Theme>
index 3d77033..adc6da0 100755 (executable)
@@ -4,9 +4,6 @@
   xmlns:l="clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests"
   xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
 
-    <!--<View.XamlResources>
-        <ResourceDictionary Source="res/layout/MyResourceDictionary.xaml" />
-    </View.XamlResources>-->
     <View x:Name="view1" BackgroundColor="Red" SizeWidth="100" SizeHeight="100" />
     <l:MyView >
         <l:MyView.Margin>
index c155a3d..159b157 100755 (executable)
@@ -6,14 +6,12 @@
     <View.XamlResources>
         <ResourceDictionary>
             <ResourceDictionary.MergedDictionaries>
-                <!-- Add more resource dictionaries here -->
                 <ResourceDictionary >
                     <Color x:Key="red">Red</Color>
                 </ResourceDictionary>
                 <ResourceDictionary >
                     <Color x:Key="green">Green</Color>
                 </ResourceDictionary>
-                <!-- Add more resource dictionaries here -->
             </ResourceDictionary.MergedDictionaries>
         </ResourceDictionary>
     </View.XamlResources>
index 2cf367d..b2fc57f 100755 (executable)
@@ -48,8 +48,7 @@
 
     <l:UIElement CustomBindableProperty="View.Position">
     </l:UIElement>
-   
-    <!--Cover CreateLanguagePrimitive-->
+
     <l:UIElement Event="StaticUIElementEvent">
         <x:Arguments>
             <x:List x:TypeArguments="x:Object">
index 1f95e81..79fb07b 100755 (executable)
@@ -4,41 +4,14 @@
   xmlns:l="clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests"
   xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
 
-    <View.XamlResources>
-        <ResourceDictionary>
-            <Color x:Key="redColor">Red</Color>
-            <XamlStyle x:Key="baseStyle" TargetType="View" ApplyToDerivedTypes="true">
-                <Setter Property="SizeWidth" Value="100" />
-                <Setter Property="SizeHeight" Value="10" />
-                <Setter Property="BackgroundColor" Value="{StaticResource redColor}" />
-            </XamlStyle>
-            <XamlStyle x:Key="imageViewStyle" TargetType="ImageView" BasedOn="{StaticResource baseStyle}">
-                <XamlStyle.Triggers>
-                    <Trigger TargetType="ImageView" Property="ResourceUrl" Value="*Resource*/arrow.jpg">
-                        <Trigger.Setters>
-                            <Setter Property="PositionX" Value="200" />
-                        </Trigger.Setters>
-                    </Trigger>
-                    <Trigger TargetType="ImageView" Property="ResourceUrl" Value="*Resource*/button_9patch.png">
-                        <Trigger.Setters>
-                            <Setter Property="PositionX" Value="500" />
-                        </Trigger.Setters>
-                    </Trigger>
-                </XamlStyle.Triggers>
-            </XamlStyle>
-        </ResourceDictionary>
-    </View.XamlResources>
-
-    <View BackgroundColor="Green" XamlStyle="{StaticResource baseStyle}" />
-    <ImageView ResourceUrl="*Resource*/picture.png" XamlStyle="{DynamicResource imageViewStyle}"  PositionX="200" PositionY="500" />
-    <View>
-        <View.BindingContext>
-            <l:NameViewModel x:Name="nameViewModel"/>
-        </View.BindingContext>
-        <TextLabel Text="UserName" Size2D="300,50" Position2D="500,200" BackgroundColor="White"/>
-        <TextLabel Text="{Binding UserName}" Size2D="300,50" Position2D="500,270" BackgroundColor="Blue"/>
-        <TextLabel Text="CompanyName" Size2D="300,50" Position2D="500,340" BackgroundColor="Yellow"/>
-        <TextLabel Text="{Binding CompanyName}" Size2D="300,50" Position2D="500,410" BackgroundColor="Green"/>
-        <l:UIElement x:Name="button" Size2D="200,100" Position2D="500,480" Command="{Binding UpdateName}"/>
-    </View>
+  <View>
+      <View.BindingContext>
+          <l:NameViewModel x:Name="nameViewModel"/>
+      </View.BindingContext>
+      <TextLabel Text="UserName" Size2D="300,50" Position2D="500,200" BackgroundColor="White"/>
+      <TextLabel Text="{Binding UserName}" Size2D="300,50" Position2D="500,270" BackgroundColor="Blue"/>
+      <TextLabel Text="CompanyName" Size2D="300,50" Position2D="500,340" BackgroundColor="Yellow"/>
+      <TextLabel Text="{Binding CompanyName}" Size2D="300,50" Position2D="500,410" BackgroundColor="Green"/>
+      <l:UIElement x:Name="button" Size2D="200,100" Position2D="500,480" Command="{Binding UpdateName}"/>
+  </View>
 </View>
index f0a7e3d..0602f50 100755 (executable)
@@ -1010,14 +1010,23 @@ namespace Tizen.NUI.Devel.Tests
         {
             tlog.Debug(tag, $"AnimationPlayAnimateTo START");
 
+            View view = new View()
+            {
+                Size = new Size(100, 200),
+                BackgroundColor = Color.Cyan,
+            };
+
             var testingTarget = new Animation(1500);
             Assert.IsNotNull(testingTarget, "should be not null");
             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
 
-            ImageView view = new ImageView()
-            { 
-                Size = new Size(100, 200),
-            };
+            testingTarget.EndAction = Animation.EndActions.StopFinal;
+            testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
+            
+            testingTarget.PropertyList.Add("SizeWidth");
+            testingTarget.DestValueList.Add("80");
+            testingTarget.StartTimeList.Add(0);
+            testingTarget.EndTimeList.Add(1500);
 
             try
             {
index 26355de..712b479 100755 (executable)
@@ -121,7 +121,7 @@ namespace Tizen.NUI.Devel.Tests
             }
             catch (Exception e)
             {
-                tlog.Fatal(tag, $"Exception occured, e={e}");
+                tlog.Debug(tag, $"Exception occured, e={e}");
                 Assert.Fail("No Exception required!");
             }
             finally
index f33b44b..a59553c 100755 (executable)
@@ -512,33 +512,6 @@ namespace Tizen.NUI.Devel.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Position2D Dispose.")]
-        [Property("SPEC", "Tizen.NUI.Position2D.Dispose M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR MCST")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void Position2DDispose()
-        {
-            tlog.Debug(tag, $"Position2DDispose START");
-
-            var testingTarget = new Position2D();
-            Assert.IsNotNull(testingTarget, "null handle");
-            Assert.IsInstanceOf<Position2D>(testingTarget, "Should return Position2D instance.");
-            
-            try
-            {
-                testingTarget.Dispose();
-            }
-            catch (Exception e)
-            {
-                Assert.Fail("Caught Exception" + e.ToString());
-            }
-
-            tlog.Debug(tag, $"Position2DDispose END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("Position2D GetHashCode.")]
         [Property("SPEC", "Tizen.NUI.Position2D.GetHashCode M")]
         [Property("SPEC_URL", "-")]
index 24bb663..6603fb8 100755 (executable)
@@ -531,33 +531,6 @@ namespace Tizen.NUI.Devel.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Size Dispose.")]
-        [Property("SPEC", "Tizen.NUI.Size.Dispose M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR MCST")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void SizeDispose()
-        {
-            tlog.Debug(tag, $"SizeDispose START");
-
-            var testingTarget = new Size();
-            Assert.IsNotNull(testingTarget, "Can't create success object Size");
-            Assert.IsInstanceOf<Size>(testingTarget, "Should be an instance of Size type.");
-
-            try
-            {
-                testingTarget.Dispose();
-            }
-            catch (Exception e)
-            {
-                Assert.Fail("Caught Exception" + e.ToString());
-            }
-
-            tlog.Debug(tag, $"SizeDispose END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("Size GetHashCode.")]
         [Property("SPEC", "Tizen.NUI.Size.GetHashCode M")]
         [Property("SPEC_URL", "-")]
index 400c100..5f5f0e2 100755 (executable)
@@ -442,33 +442,6 @@ namespace Tizen.NUI.Devel.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Size2D Dispose.")]
-        [Property("SPEC", "Tizen.NUI.Size2D.Dispose M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR MCST")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void Size2DDispose()
-        {
-            tlog.Debug(tag, $"Size2DDispose START");
-
-            var testingTarget = new Size2D();
-            Assert.IsNotNull(testingTarget, "Can't create success object Size2D");
-            Assert.IsInstanceOf<Size2D>(testingTarget, "Should be an instance of Size2D type.");
-
-            try
-            {
-                testingTarget.Dispose();
-            }
-            catch (Exception e)
-            {
-                Assert.Fail("Caught Exception" + e.ToString());
-            }
-
-            tlog.Debug(tag, $"Size2DDispose END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("Size2D GetHashCode.")]
         [Property("SPEC", "Tizen.NUI.Size2D.GetHashCode M")]
         [Property("SPEC_URL", "-")]
index 9c3f5a2..9e39096 100755 (executable)
@@ -52,32 +52,6 @@ namespace Tizen.NUI.Devel.Tests
 
         [Test]
         [Category("P1")]
-        [Description("PixelData constructor. By IntPtr.")]
-        [Property("SPEC", "Tizen.NUI.PixelData.PixelData C")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "CONSTR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void PixelDataConstructorByIntPtr()
-        {
-            tlog.Debug(tag, $"PixelDataConstructorByIntPtr START");
-
-            byte[] buffer = new byte[10];
-
-            using (PixelData pixelData = new PixelData(buffer, 10, 1, 2, PixelFormat.L8, PixelData.ReleaseFunction.Free))
-            {
-                var testingTarget = new PixelData(pixelData.SwigCPtr.Handle, true);
-                Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
-                Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
-
-                testingTarget.Dispose();
-            }
-
-            buffer = null;
-            tlog.Debug(tag, $"PixelDataConstructorByIntPtr END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("PixelData GenerateUrl.")]
         [Property("SPEC", "Tizen.NUI.PixelData.GenerateUrl M")]
         [Property("SPEC_URL", "-")]
@@ -87,9 +61,12 @@ namespace Tizen.NUI.Devel.Tests
         {
             tlog.Debug(tag, $"PixelDataGenerateUrl START");
 
-            byte[] buffer = new byte[10];
+            uint width = 64;
+            uint height = 64;
+            uint bufferSize = width * height * 4;
+            byte[] buffer = new byte[bufferSize];
 
-            var testingTarget = new PixelData(buffer, 10, 1, 2, PixelFormat.L8, PixelData.ReleaseFunction.Free);
+            var testingTarget = new PixelData(buffer, bufferSize, width, height, PixelFormat.RGBA8888, PixelData.ReleaseFunction.Free);
             Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
             Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
 
index b17f3bb..0e74c0e 100755 (executable)
@@ -14,6 +14,7 @@ namespace Tizen.NUI.Devel.Tests
     public class PublicPaletteTest
     {
         private const string tag = "NUITEST";
+        private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
 
         [SetUp]
         public void Init()
@@ -40,7 +41,7 @@ namespace Tizen.NUI.Devel.Tests
 
             try
             {
-                using (PixelBuffer buffer = new PixelBuffer(1, 1, PixelFormat.A8))
+                using (PixelBuffer buffer = ImageLoader.LoadImageFromFile(image_path))
                 {
                     var testingTarget = Palette.Generate(buffer);
                     Assert.IsNotNull(testingTarget, "Can't create success object Palette");
index dcbe394..baaaab9 100755 (executable)
@@ -42,7 +42,7 @@ namespace Tizen.NUI.Devel.Tests
             TextLabel textLabel = new TextLabel()
             {
                 Text = "TextShadowConstructor",
-                Color = Color.Green,
+                Color = new Tizen.NUI.Color("#C3CAD5FF"),
                 PointSize = 15.0f,
             };
             PropertyMap temp = new PropertyMap();
@@ -94,30 +94,26 @@ namespace Tizen.NUI.Devel.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
         [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void TextShadowCloneWithTextShadow()
+        public static void TextShadowCloneWithTextShadow()
         {
             tlog.Debug(tag, $"TextShadowCloneWithTextShadow START");
 
-            TextLabel textLabel = new TextLabel()
-            {
-                Text = "TextShadowConstructor",
-                Color = Color.Green,
-                PointSize = 15.0f,
-            };
-            PropertyMap temp = new PropertyMap();
-            Tizen.NUI.Object.GetProperty((global::System.Runtime.InteropServices.HandleRef)textLabel.SwigCPtr, TextLabel.Property.SHADOW).Get(temp);
-
-            try
-            {
-                TextShadow.Clone(new TextShadow(temp));
-            }
-            catch (Exception e)
+            using (Vector2 vector = new Vector2(1.5f, 3.0f))
             {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
+                using (TextShadow textShadow = new TextShadow(new Tizen.NUI.Color("#C3CAD5FF"), vector, 0.3f))
+                {
+                    try
+                    {
+                        TextShadow.Clone(textShadow);
+                    }
+                    catch (Exception e)
+                    {
+                        tlog.Debug(tag, e.Message.ToString());
+                        Assert.Fail("Caught Exception: Failed!");
+                    }
+                }
             }
 
-            textLabel.Dispose();
             tlog.Debug(tag, $"TextShadowCloneWithTextShadow END (OK)");
         }
 
@@ -153,7 +149,7 @@ namespace Tizen.NUI.Devel.Tests
             TextLabel textLabel = new TextLabel()
             {
                 Text = "TextShadowConstructor",
-                Color = Color.Green,
+                Color = new Tizen.NUI.Color("#C3CAD5FF"),
                 PointSize = 15.0f,
             };
             PropertyMap temp = new PropertyMap();
index 499dc53..b6f3d22 100755 (executable)
@@ -606,7 +606,7 @@ namespace Tizen.NUI.Devel.Tests
         {
             tlog.Debug(tag, $"WebViewScrollPosition START");
 
-            webView.ScrollPosition = new Position(0.2f, 0.1f);
+            webView.ScrollPosition = new Position(600, 0);
             tlog.Debug(tag, "ScrollPositionX : " + webView.ScrollPosition.X);
             tlog.Debug(tag, "ScrollPositionY : " + webView.ScrollPosition.Y);
 
index 0e8e196..c54e632 100755 (executable)
@@ -14,56 +14,21 @@ namespace Tizen.NUI.Devel.Tests
     public class PublicWidgetViewTest
     {
         private const string tag = "NUITEST";
-        private View view = null;
-        private WidgetView widgetView = null;
 
         [SetUp]
         public void Init()
         {
             tlog.Info(tag, "Init() is called!");
-
-            view = new View()
-            { 
-                Size = new Size(100, 200),
-                Color = Color.Cyan
-            };
-            widgetView = new WidgetView(view.SwigCPtr.Handle, false);
-            tlog.Error(tag, " widgetView.ID : " + widgetView.ID);
         }
 
         [TearDown]
         public void Destroy()
         {
-            view?.Dispose();
-            view = null;
-
-            widgetView?.Dispose();
-            widgetView = null;
-
             tlog.Info(tag, "Destroy() is called!");
         }
 
         [Test]
         [Category("P1")]
-        [Description("WidgetView Constructor. With WidgetView")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.WidgetView C")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "CONSTR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewConstructorWithWidgetView()
-        {
-            tlog.Debug(tag, $"WidgetViewConstructorWithWidgetView START");
-
-            var testingTarget = new WidgetView(widgetView);
-            Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
-            Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
-
-            testingTarget.Dispose();
-            tlog.Debug(tag, $"WidgetViewConstructorWithWidgetView END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("WidgetView WidgetAddedSignal.")]
         [Property("SPEC", "Tizen.NUI.WidgetView.WidgetAddedSignal M")]
         [Property("SPEC_URL", "-")]
@@ -73,309 +38,57 @@ namespace Tizen.NUI.Devel.Tests
         {
             tlog.Debug(tag, $"WidgetViewWidgetAddedSignal START");
 
-            try
-            {
-                widgetView.WidgetAddedSignal();
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewWidgetAddedSignal END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView WidgetDeletedSignal.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.WidgetDeletedSignal M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewWidgetDeletedSignal()
-        {
-            tlog.Debug(tag, $"WidgetViewWidgetDeletedSignal START");
-
-            try
-            {
-                widgetView.WidgetDeletedSignal();
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewWidgetDeletedSignal END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView WidgetCreationAbortedSignal.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.WidgetCreationAbortedSignal M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewWidgetCreationAbortedSignal()
-        {
-            tlog.Debug(tag, $"WidgetViewWidgetCreationAbortedSignal START");
-
-            try
+            var view = new View()
             {
-                widgetView.WidgetCreationAbortedSignal();
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewWidgetCreationAbortedSignal END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView WidgetContentUpdatedSignal.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.WidgetContentUpdatedSignal M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewWidgetContentUpdatedSignal()
-        {
-            tlog.Debug(tag, $"WidgetViewWidgetContentUpdatedSignal START");
-
-            try
-            {
-                widgetView.WidgetContentUpdatedSignal();
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewWidgetContentUpdatedSignal END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView WidgetUpdatePeriodChangedSignal.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.WidgetUpdatePeriodChangedSignal M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewWidgetUpdatePeriodChangedSignal()
-        {
-            tlog.Debug(tag, $"WidgetViewWidgetUpdatePeriodChangedSignal START");
+                Size = new Size(100, 200),
+                Color = new Tizen.NUI.Color("#C3CAD5FF"),
+            };
 
-            try
-            {
-                widgetView.WidgetUpdatePeriodChangedSignal();
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
+            var widgetView = new WidgetView(view.SwigCPtr.Handle, false);
+            Assert.IsNotNull(widgetView, "Can't create success object WidgetView");
+            Assert.IsInstanceOf<WidgetView>(widgetView, "Should be an instance of WidgetView type.");
 
-            tlog.Debug(tag, $"WidgetViewWidgetUpdatePeriodChangedSignal END (OK)");
-        }
+            tlog.Debug(tag, " widgetView.ID : " + widgetView.ID);
+            tlog.Debug(tag, "widgetView.InstanceID : " + widgetView.InstanceID);
+            tlog.Debug(tag, "widgetView.ContentInfo : " + widgetView.ContentInfo);
+            tlog.Debug(tag, "widgetView.Title : " + widgetView.Title);
+            tlog.Debug(tag, "widgetView.UpdatePeriod : " + widgetView.UpdatePeriod);
 
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView WidgetFaultedSignal.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.WidgetFaultedSignal M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewWidgetFaultedSignal()
-        {
-            tlog.Debug(tag, $"WidgetViewWidgetFaultedSignal START");
+            widgetView.Preview = true;
+            tlog.Debug(tag, "widgetView.Preview : " + widgetView.Preview);
 
-            try
-            {
-                widgetView.WidgetFaultedSignal();
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
+            widgetView.Preview = false;
+            tlog.Debug(tag, "widgetView.Preview : " + widgetView.Preview);
 
-            tlog.Debug(tag, $"WidgetViewWidgetFaultedSignal END (OK)");
-        }
+            widgetView.LoadingText = true;
+            tlog.Debug(tag, "widgetView.LoadingText : " + widgetView.LoadingText);
 
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView WidgetID.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.WidgetID A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRO")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewWidgetID()
-        {
-            tlog.Debug(tag, $"WidgetViewWidgetID START");
+            widgetView.LoadingText = false;
+            tlog.Debug(tag, "widgetView.LoadingText : " + widgetView.LoadingText);
 
-            try
-            {
-                tlog.Debug(tag, "widgetView.WidgetID : " + widgetView.WidgetID);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
+            widgetView.WidgetStateFaulted = true;
+            tlog.Debug(tag, "widgetView.WidgetStateFaulted : " + widgetView.WidgetStateFaulted);
 
-            tlog.Debug(tag, $"WidgetViewWidgetID END (OK)");
-        }
+            widgetView.PermanentDelete = false;
+            tlog.Debug(tag, "widgetView.PermanentDelete : " + widgetView.PermanentDelete);
 
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView InstanceID.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.InstanceID A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRO")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewInstanceID()
-        {
-            tlog.Debug(tag, $"WidgetViewInstanceID START");
-
-            try
-            {
-                tlog.Debug(tag, "widgetView.InstanceID : " + widgetView.InstanceID);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewInstanceID END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView ContentInfo.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.ContentInfo A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRO")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewContentInfo()
-        {
-            tlog.Debug(tag, $"WidgetViewContentInfo START");
-
-            try
+            using (PropertyMap retryText = new PropertyMap())
             {
-                tlog.Debug(tag, "widgetView.ContentInfo : " + widgetView.ContentInfo);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewContentInfo END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView Title.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.Title A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRO")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewTitle()
-        {
-            tlog.Debug(tag, $"WidgetViewTitle START");
+                retryText.Add("stateText", new PropertyValue("RetryTextTest"));
+                widgetView.RetryText = retryText;
+                tlog.Debug(tag, "widget view retryText: " + widgetView.RetryText);
 
-            try
-            {
-                tlog.Debug(tag, "widgetView.Title : " + widgetView.Title);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewTitle END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView UpdatePeriod.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.Title A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRO")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewUpdatePeriod()
-        {
-            tlog.Debug(tag, $"WidgetViewUpdatePeriod START");
-
-            try
-            {
-                tlog.Debug(tag, "widgetView.UpdatePeriod : " + widgetView.UpdatePeriod);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewUpdatePeriod END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView Preview.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.Preview A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewPreview()
-        {
-            tlog.Debug(tag, $"WidgetViewPreview START");
-
-            try
-            {
-                tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.Preview);
-
-                widgetView.Preview = true;
-                tlog.Debug(tag, "widgetView.Preview : " + widgetView.Preview);
-                
-                widgetView.Preview = false;
-                tlog.Debug(tag, "widgetView.Preview : " + widgetView.Preview);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
+                using (PropertyMap effect = new PropertyMap())
+                {
+                    retryText.Add("shader", new PropertyValue("ShaderText"));
+                    widgetView.Effect = effect;
+                    tlog.Debug(tag, "widget view effect: " + widgetView.Effect);
+                }
             }
 
-            tlog.Debug(tag, $"WidgetViewPreview END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView LoadingText.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.LoadingText A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewLoadingText()
-        {
-            tlog.Debug(tag, $"WidgetViewLoadingText START");
-
             try
             {
-                tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.LoadingText);
-
-                widgetView.LoadingText = true;
-                tlog.Debug(tag, "widgetView.LoadingText : " + widgetView.LoadingText);
-
-                widgetView.LoadingText = false;
-                tlog.Debug(tag, "widgetView.LoadingText : " + widgetView.LoadingText);
+                WidgetView.GetWidgetViewFromPtr(widgetView.SwigCPtr.Handle);
             }
             catch (Exception e)
             {
@@ -383,29 +96,9 @@ namespace Tizen.NUI.Devel.Tests
                 Assert.Fail("Caught Exception: Failed!");
             }
 
-            tlog.Debug(tag, $"WidgetViewLoadingText END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView WidgetStateFaulted.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.WidgetStateFaulted A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewWidgetStateFaulted()
-        {
-            tlog.Debug(tag, $"WidgetViewWidgetStateFaulted START");
-
             try
             {
-                tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.WidgetStateFaulted);
-
-                widgetView.WidgetStateFaulted = true;
-                tlog.Debug(tag, "widgetView.WidgetStateFaulted : " + widgetView.WidgetStateFaulted);
-
-                widgetView.WidgetStateFaulted = false;
-                tlog.Debug(tag, "widgetView.WidgetStateFaulted : " + widgetView.WidgetStateFaulted);
+                widgetView.Assign(widgetView);
             }
             catch (Exception e)
             {
@@ -413,92 +106,29 @@ namespace Tizen.NUI.Devel.Tests
                 Assert.Fail("Caught Exception: Failed!");
             }
 
-            tlog.Debug(tag, $"WidgetViewWidgetStateFaulted END (OK)");
-        }
+            var args = new WidgetView.WidgetViewEventArgs();
+            tlog.Debug(tag, "Default args.WidgetView is : " + args.WidgetView);
 
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView PermanentDelete.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.PermanentDelete A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewWidgetPermanentDelete()
-        {
-            tlog.Debug(tag, $"WidgetViewWidgetPermanentDelete START");
+            args.WidgetView = widgetView;
+            tlog.Debug(tag, "args.WidgetView is : " + args.WidgetView);
 
             try
             {
-                tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.PermanentDelete);
-
-                widgetView.PermanentDelete = true;
-                tlog.Debug(tag, "widgetView.PermanentDelete : " + widgetView.PermanentDelete);
-
-                widgetView.PermanentDelete = false;
-                tlog.Debug(tag, "widgetView.PermanentDelete : " + widgetView.PermanentDelete);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewWidgetPermanentDelete END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView RetryText.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.RetryText A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewRetryText()
-        {
-            tlog.Debug(tag, $"WidgetViewRetryText START");
+                widgetView.WidgetAddedSignal();
+                widgetView.WidgetContentUpdatedSignal();
+                widgetView.WidgetUpdatePeriodChangedSignal();
+                widgetView.WidgetCreationAbortedSignal();
+                widgetView.WidgetFaultedSignal();
+                widgetView.WidgetDeletedSignal();
 
-            try
-            {
-                using (PropertyMap map = new PropertyMap())
+                try
                 {
-                    map.Insert(WidgetView.Property.RetryText, new PropertyValue(1));
-
-                    widgetView.RetryText = map;
-
-                    var result = widgetView.RetryText;
-                    Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
+                    widgetView.ActivateFaultedWidget();
                 }
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewRetryText END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView Effect.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.Effect A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewEffect()
-        {
-            tlog.Debug(tag, $"WidgetViewEffect START");
-
-            try
-            {
-                using (PropertyMap map = new PropertyMap())
+                catch (Exception e)
                 {
-                    map.Insert(WidgetView.Property.EFFECT, new PropertyValue(1));
-
-                    widgetView.Effect = map;
-
-                    var result = widgetView.Effect;
-                    Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
+                    tlog.Debug(tag, e.Message.ToString());
+                    Assert.Fail("Caught Exception: Failed!");
                 }
             }
             catch (Exception e)
@@ -507,99 +137,11 @@ namespace Tizen.NUI.Devel.Tests
                 Assert.Fail("Caught Exception: Failed!");
             }
 
-            tlog.Debug(tag, $"WidgetViewEffect END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView GetWidgetViewFromPtr.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.GetWidgetViewFromPtr M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewGetWidgetViewFromPtr()
-        {
-            tlog.Debug(tag, $"WidgetViewGetWidgetViewFromPtr START");
-
-            try
-            {
-                WidgetView.GetWidgetViewFromPtr(widgetView.SwigCPtr.Handle);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewGetWidgetViewFromPtr END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView Assign.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.Assign M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewAssign()
-        {
-            tlog.Debug(tag, $"WidgetViewAssign START");
-
-            try
-            {
-                widgetView.Assign(widgetView);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
-
-            tlog.Debug(tag, $"WidgetViewAssign END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView.WidgetViewEventArgs.WidgetView.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.WidgetViewEventArgs.WidgetView M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewWidgetViewEventArgsWidgetView()
-        {
-            tlog.Debug(tag, $"WidgetViewWidgetViewEventArgsWidgetView START");
-
-            var testingTarget = new WidgetView.WidgetViewEventArgs();
-            tlog.Debug(tag, "Default testingTarget.WidgetView is : " + testingTarget.WidgetView);
-
-            testingTarget.WidgetView = widgetView;
-            tlog.Debug(tag, "testingTarget.WidgetView is : " + testingTarget.WidgetView);
-
-            tlog.Debug(tag, $"WidgetViewWidgetViewEventArgsWidgetView END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("WidgetView ActivateFaultedWidget.")]
-        [Property("SPEC", "Tizen.NUI.WidgetView.ActivateFaultedWidget M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void WidgetViewActivateFaultedWidget()
-        {
-            tlog.Debug(tag, $"WidgetViewActivateFaultedWidget START");
-
-            try
-            {
-                widgetView.ActivateFaultedWidget();
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception: Failed!");
-            }
+            view.Dispose();
+            view = null;
 
-            tlog.Debug(tag, $"WidgetViewActivateFaultedWidget END (OK)");
+            widgetView = null;
+            tlog.Debug(tag, $"WidgetViewWidgetAddedSignal END (OK)");
         }
     }
 }
index 955b97d..734fcb6 100755 (executable)
@@ -119,7 +119,6 @@ namespace Tizen.NUI.Devel.Tests
             View view = new View()
             {
                 Size = new Size(100, 200),
-                Color = Color.Cyan
             };
             WidgetView widgetView = new WidgetView(view.SwigCPtr.Handle, false);
 
index dc4bb6b..88386e3 100755 (executable)
@@ -1,6 +1,10 @@
-using NUnit.Framework;
-using System;
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
 using System.Collections.Generic;
+using System.Runtime.InteropServices;
 
 namespace Tizen.NUI.Devel.Tests
 {
index 52e058e..638468f 100755 (executable)
@@ -1,4 +1,10 @@
-using NUnit.Framework;
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+using System.Collections.Generic;
+using System.Runtime.InteropServices;
 
 namespace Tizen.NUI.Devel.Tests
 {
@@ -9,16 +15,33 @@ namespace Tizen.NUI.Devel.Tests
     internal class PublicGLWindowEventTest
     {
         private const string tag = "NUITEST";
+        private Rectangle rec = null;
+        private GLWindow glwin = null;
+
+        private void OnFocusChanged(object sender, GLWindow.FocusChangedEventArgs e) { }
+        private void OnTouchEvent(object sender, GLWindow.TouchEventArgs e) { }
+        private void OnKeyEvent(object sender, GLWindow.KeyEventArgs e) { }
+        private void OnResized(object sender, GLWindow.ResizedEventArgs e) { }
 
         [SetUp]
         public void Init()
         {
             tlog.Info(tag, "Init() is called!");
+
+            string name = "myGLWindow";
+            rec = new Rectangle(20, 20, 100, 100);
+            glwin = new GLWindow(name, rec, true);
         }
 
         [TearDown]
         public void Destroy()
         {
+            rec.Dispose();
+            rec = null;
+
+            glwin.Destroy();
+            glwin = null;
+
             tlog.Info(tag, "Destroy() is called!");
         }
 
@@ -31,199 +54,18 @@ namespace Tizen.NUI.Devel.Tests
         public void GLWindowFocusChanged()
         {
             tlog.Debug(tag, $"GLWindowFocusChanged START");
-            string name = "myGLWindow";
-            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
-            GLWindow a1 = new GLWindow(name, rectangle, true);
 
-            a1.FocusChanged += A1_FocusChanged;
-            a1.FocusChanged -= A1_FocusChanged;
+            glwin.Resized += OnResized;
+            glwin.KeyEvent += OnKeyEvent;
+            glwin.TouchEvent += OnTouchEvent;
+            glwin.FocusChanged += OnFocusChanged;
 
-            GLWindow.FocusChangedEventArgs e1 = new GLWindow.FocusChangedEventArgs();
-            A1_FocusChanged(null, e1);
+            glwin.Resized -= OnResized;
+            glwin.KeyEvent -= OnKeyEvent;
+            glwin.TouchEvent -= OnTouchEvent;
+            glwin.FocusChanged -= OnFocusChanged;
 
-            a1.Destroy();
             tlog.Debug(tag, $"GLWindowFocusChanged END (OK)");
-            Assert.Pass("GLWindowFocusChanged");
-        }
-
-        private void A1_FocusChanged(object sender, GLWindow.FocusChangedEventArgs e)
-        {
-            bool c1 = e.FocusGained;
-            e.FocusGained = c1;
-
-            return;
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("GLWindow TouchEvent")]
-        [Property("SPEC", "Tizen.NUI.GLWindow.TouchEvent A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        public void GLWindowTouchEvent()
-        {
-            tlog.Debug(tag, $"GLWindowTouchEvent START");
-            string name = "myGLWindow";
-            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
-            GLWindow a1 = new GLWindow(name, rectangle, true);
-
-            a1.TouchEvent += A1_TouchEvent;
-            a1.TouchEvent -= A1_TouchEvent;
-
-            GLWindow.TouchEventArgs e1 = new GLWindow.TouchEventArgs();
-            A1_TouchEvent(null, e1);
-            a1.Destroy();
-            tlog.Debug(tag, $"GLWindowTouchEvent END (OK)");
-            Assert.Pass("GLWindowTouchEvent");
-        }
-
-        private void A1_TouchEvent(object sender, GLWindow.TouchEventArgs e)
-        {
-            Touch t1 = e.Touch;
-            e.Touch = t1;
-
-            return;
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("GLWindow KeyEvent")]
-        [Property("SPEC", "Tizen.NUI.GLWindow.KeyEvent A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        public void GLWindowKeyEvent()
-        {
-            tlog.Debug(tag, $"GLWindowKeyEvent START");
-            string name = "myGLWindow";
-            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
-            GLWindow a1 = new GLWindow(name, rectangle, true);
-
-            a1.KeyEvent += A1_KeyEvent;
-            a1.KeyEvent -= A1_KeyEvent;
-
-            GLWindow.KeyEventArgs e1 = new GLWindow.KeyEventArgs();
-            A1_KeyEvent(null, e1);
-
-            a1.Destroy();
-            tlog.Debug(tag, $"GLWindowKeyEvent END (OK)");
-            Assert.Pass("GLWindowKeyEvent");
-        }
-
-        private void A1_KeyEvent(object sender, GLWindow.KeyEventArgs e)
-        {
-            Key k1 = e.Key;
-            e.Key = k1;
-            return;
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("GLWindow Resized")]
-        [Property("SPEC", "Tizen.NUI.GLWindow.Resized A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        public void GLWindowResized()
-        {
-            tlog.Debug(tag, $"GLWindowResized START");
-            string name = "myGLWindow";
-            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
-            GLWindow a1 = new GLWindow(name, rectangle, true);
-
-            a1.Resized += A1_Resized;
-            a1.Resized -= A1_Resized;
-
-            GLWindow.ResizedEventArgs e1 = new GLWindow.ResizedEventArgs();
-            A1_Resized(null, e1);
-            a1.Destroy();
-            tlog.Debug(tag, $"GLWindowResized END (OK)");
-            Assert.Pass("GLWindowResized");
-        }
-
-        private void A1_Resized(object sender, GLWindow.ResizedEventArgs e)
-        {
-            Size2D s1 = e.WindowSize;
-            e.WindowSize = s1;
-            return;
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("GLWindow FocusChangedSignal")]
-        [Property("SPEC", "Tizen.NUI.GLWindow.FocusChangedSignal M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        public void GLWindowFocusChangedSignal()
-        {
-            tlog.Debug(tag, $"GLWindowFocusChangedSignal START");
-            string name = "myGLWindow";
-            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
-            GLWindow a1 = new GLWindow(name, rectangle, true);
-
-            a1.FocusChangedSignal();
-
-            a1.Destroy();
-            tlog.Debug(tag, $"GLWindowFocusChangedSignal END (OK)");
-            Assert.Pass("GLWindowFocusChangedSignal");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("GLWindow KeyEventSignal")]
-        [Property("SPEC", "Tizen.NUI.GLWindow.KeyEventSignal M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        public void GLWindowKeyEventSignal()
-        {
-            tlog.Debug(tag, $"GLWindowKeyEventSignal START");
-            string name = "myGLWindow";
-            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
-            GLWindow a1 = new GLWindow(name, rectangle, true);
-
-            a1.KeyEventSignal();
-
-            a1.Destroy();
-            tlog.Debug(tag, $"GLWindowKeyEventSignal END (OK)");
-            Assert.Pass("GLWindowKeyEventSignal");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("GLWindow TouchSignal")]
-        [Property("SPEC", "Tizen.NUI.GLWindow.TouchSignal M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        public void GLWindowTouchSignal()
-        {
-            tlog.Debug(tag, $"GLWindowTouchSignal START");
-            string name = "myGLWindow";
-            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
-            GLWindow a1 = new GLWindow(name, rectangle, true);
-
-            a1.TouchSignal();
-
-            a1.Destroy();
-            tlog.Debug(tag, $"GLWindowTouchSignal END (OK)");
-            Assert.Pass("GLWindowTouchSignal");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("GLWindow GLWindowResizedSignal")]
-        [Property("SPEC", "Tizen.NUI.GLWindow.GLWindowResizedSignal M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        public void GLWindowGLWindowResizedSignal()
-        {
-            tlog.Debug(tag, $"GLWindowGLWindowResizedSignal START");
-            string name = "myGLWindow";
-            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
-            GLWindow a1 = new GLWindow(name, rectangle, true);
-
-            a1.GLWindowResizedSignal();
-
-            a1.Destroy();
-            tlog.Debug(tag, $"GLWindowGLWindowResizedSignal END (OK)");
-            Assert.Pass("GLWindowGLWindowResizedSignal");
         }
 
         [Test]
@@ -236,13 +78,16 @@ namespace Tizen.NUI.Devel.Tests
         {
             tlog.Debug(tag, $"GLWindowDisconnectNativeSignals START");
 
-            string name = "myGLWindow";
-            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
-            GLWindow a1 = new GLWindow(name, rectangle, true);
+            try
+            {
+                glwin.DisconnectNativeSignals();
+            }
+            catch (Exception e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
+            }
 
-            a1.DisconnectNativeSignals();
-
-            a1.Destroy();
             tlog.Debug(tag, $"GLWindowDisconnectNativeSignals END (OK)");
         }
 
@@ -275,15 +120,18 @@ namespace Tizen.NUI.Devel.Tests
         public void GLWindowVisibiltyChangedSignalEmit()
         {
             tlog.Debug(tag, $"GLWindowVisibiltyChangedSignalEmit START");
-            string name = "myGLWindow";
-            Rectangle rectangle = new Rectangle(20, 20, 100, 100);
-            GLWindow a1 = new GLWindow(name, rectangle, true);
 
-            a1.VisibiltyChangedSignalEmit(true);
+            try
+            {
+                glwin.VisibiltyChangedSignalEmit(true);
+            }
+            catch (Exception e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
+            }
 
-            a1.Destroy();
             tlog.Debug(tag, $"GLWindowVisibiltyChangedSignalEmit END (OK)");
-            Assert.Pass("GLWindowVisibiltyChangedSignalEmit");
         }
     }
 }
index 1babb9e..2740689 100755 (executable)
@@ -43,79 +43,30 @@ namespace Tizen.NUI.Devel.Tests
         {
             tlog.Debug(tag, $"GLWindowVisibilityChangedEventConstructor START");
 
-            string name = "myGLWindow";
-            Rectangle rec = new Rectangle(20, 20, 100, 100);
-            GLWindow glwin = new GLWindow(name, rec, true);
-
-            var testingTarget = new GLWindowVisibilityChangedEvent(glwin.SwigCPtr.Handle, false);
-            Assert.IsNotNull(testingTarget, "Can't create success object GLWindowVisibilityChangedEvent");
-            Assert.IsInstanceOf<GLWindowVisibilityChangedEvent>(testingTarget, "Should be an instance of GLWindowVisibilityChangedEvent type.");
-
-            rec.Dispose();
-            glwin.Destroy();
-            testingTarget.Dispose();
-            tlog.Debug(tag, $"GLWindowVisibilityChangedEventConstructor END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("GLWindowVisibilityChangedEvent GetConnectionCount")]
-        [Property("SPEC", "Tizen.NUI.GLWindowVisibilityChangedEvent.GetConnectionCount M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        public void GLWindowVisibilityChangedEventGetConnectionCount()
-        {
-            tlog.Debug(tag, $"GLWindowVisibilityChangedEventGetConnectionCount START");
-            
-            string name = "myGLWindow";
-            Rectangle rec = new Rectangle(20, 20, 100, 100);
-            GLWindow glwin = new GLWindow(name, rec, true);
-
-            var testingTarget = new GLWindowVisibilityChangedEvent(glwin.SwigCPtr.Handle, false);
-            Assert.IsNotNull(testingTarget, "Can't create success object GLWindowVisibilityChangedEvent");
-            Assert.IsInstanceOf<GLWindowVisibilityChangedEvent>(testingTarget, "Should be an instance of GLWindowVisibilityChangedEvent type.");
-
-            var result = testingTarget.GetConnectionCount();
-            tlog.Debug(tag, "ConnectionCount : " + result);
+            using (Rectangle rec = new Rectangle(20, 20, 100, 100))
+            {
+                var glwin = new GLWindow("myGLWindow", rec, true);
 
-            rec.Dispose();
-            glwin.Destroy();
-            testingTarget.Dispose();
-            tlog.Debug(tag, $"GLWindowVisibilityChangedEventGetConnectionCount END (OK)");
-        }
+                var testingTarget = new GLWindowVisibilityChangedEvent(glwin.SwigCPtr.Handle, true);
+                Assert.IsNotNull(testingTarget, "Can't create success object GLWindowVisibilityChangedEvent");
+                Assert.IsInstanceOf<GLWindowVisibilityChangedEvent>(testingTarget, "Should be an instance of GLWindowVisibilityChangedEvent type.");
 
-        [Test]
-        [Category("P1")]
-        [Description("GLWindowVisibilityChangedEvent Emit")]
-        [Property("SPEC", "Tizen.NUI.GLWindowVisibilityChangedEvent.Emit M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        public void GLWindowVisibilityChangedEventEmit()
-        {
-            tlog.Debug(tag, $"GLWindowVisibilityChangedEventEmit START");
+                tlog.Debug(tag, "ConnectionCount : " + testingTarget.GetConnectionCount());
 
-            string name = "myGLWindow";
-            Rectangle rec = new Rectangle(20, 20, 100, 100);
-            GLWindow glwin = new GLWindow(name, rec, true);
+                try
+                {
+                    testingTarget.Emit(glwin, true);
+                }
+                catch (Exception e)
+                {
+                    tlog.Debug(tag, e.Message.ToString());
+                    Assert.Fail("Caught Exception : Failed!");
+                }
 
-            var testingTarget = new GLWindowVisibilityChangedEvent(glwin.SwigCPtr.Handle, false);
-            Assert.IsNotNull(testingTarget, "Can't create success object GLWindowVisibilityChangedEvent");
-            Assert.IsInstanceOf<GLWindowVisibilityChangedEvent>(testingTarget, "Should be an instance of GLWindowVisibilityChangedEvent type.");
-
-            try
-            {
-                testingTarget.Emit(glwin, true);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception : Failed!");
+                testingTarget.Dispose();
             }
 
-            rec.Dispose();
-            glwin.Destroy();
-            testingTarget.Dispose();
-            tlog.Debug(tag, $"GLWindowVisibilityChangedEventEmit END (OK)");
+            tlog.Debug(tag, $"GLWindowVisibilityChangedEventConstructor END (OK)");
         }
     }
 }
index 811c2ed..a30767e 100755 (executable)
@@ -20,7 +20,7 @@ namespace Tizen.NUI.Devel.Tests
         {
             tlog.Info(tag, "Init() is called!");
 
-            rec = new Rectangle(0, 0, 2, 2);
+            rec = new Rectangle(0, 0, 100, 200);
             win = new Window(rec);
         }
 
@@ -49,9 +49,9 @@ namespace Tizen.NUI.Devel.Tests
 
             try
             {
-                using (Rectangle size = new Rectangle(1, 2, 3, 4))
+                using (Rectangle ps = new Rectangle(0, 0, 150, 250))
                 {
-                    win.WindowPositionSize = size;
+                    win.WindowPositionSize = ps;
                     tlog.Debug(tag, "WindowPositionSize : " + win.WindowPositionSize);
                 }
             }
@@ -77,27 +77,7 @@ namespace Tizen.NUI.Devel.Tests
             try
             {
                 win.GetLayer(0);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception : Failed!");
-            }
-            tlog.Debug(tag, $"WindowGetLayer END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("Window GetCurrentOrientation")]
-        [Property("SPEC", "Tizen.NUI.Window.GetCurrentOrientation M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        public void WindowGetCurrentOrientation()
-        {
-            tlog.Debug(tag, $"WindowGetCurrentOrientation START");
-            
-            try
-            {
+                win.GetNativeId();
                 win.GetCurrentOrientation();
             }
             catch (Exception e)
@@ -105,8 +85,7 @@ namespace Tizen.NUI.Devel.Tests
                 tlog.Debug(tag, e.Message.ToString());
                 Assert.Fail("Caught Exception : Failed!");
             }
-
-            tlog.Debug(tag, $"WindowGetCurrentOrientation END (OK)");
+            tlog.Debug(tag, $"WindowGetLayer END (OK)");
         }
 
         [Test]
@@ -166,29 +145,6 @@ namespace Tizen.NUI.Devel.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Window GetNativeId")]
-        [Property("SPEC", "Tizen.NUI.Window.GetNativeId M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        public void WindowGetNativeId()
-        {
-            tlog.Debug(tag, $"WindowGetNativeId START");
-            
-            try
-            {
-                win.GetNativeId();
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception : Failed!");
-            }
-
-            tlog.Debug(tag, $"WindowGetNativeId END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("Window GetNativeHandle")]
         [Property("SPEC", "Tizen.NUI.Window.GetNativeHandle M")]
         [Property("SPEC_URL", "-")]
@@ -313,8 +269,8 @@ namespace Tizen.NUI.Devel.Tests
 
             try
             {
-                Position2D p1 = null;
-                win.SetPosition(p1);
+                Position2D position = null;
+                win.SetPosition(position);
             }
             catch (ArgumentNullException e)
             {
@@ -335,8 +291,8 @@ namespace Tizen.NUI.Devel.Tests
             tlog.Debug(tag, $"WindowSetPositionSize START");
             try
             {
-                Rectangle r1 = new Rectangle(0, 0, 20, 20);
-                win.SetPositionSize(r1);
+                Rectangle ps = new Rectangle(0, 0, 150, 250);
+                win.SetPositionSize(ps);
             }
             catch (Exception e)
             {
@@ -357,8 +313,9 @@ namespace Tizen.NUI.Devel.Tests
             tlog.Debug(tag, $"WindowAddFrameUpdateCallback START");
             try
             {
-                FrameUpdateCallbackInterface f1 = new FrameUpdateCallbackInterface();
-                win.AddFrameUpdateCallback(f1);
+                FrameUpdateCallbackInterface callback = new FrameUpdateCallbackInterface();
+                win.AddFrameUpdateCallback(callback);
+                win.RemoveFrameUpdateCallback(callback);
             }
             catch (Exception e)
             {
@@ -371,29 +328,6 @@ namespace Tizen.NUI.Devel.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Window RemoveFrameUpdateCallback")]
-        [Property("SPEC", "Tizen.NUI.Window.RemoveFrameUpdateCallback M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        public void WindowRemoveFrameUpdateCallback()
-        {
-            tlog.Debug(tag, $"WindowRemoveFrameUpdateCallback START");
-            try
-            {
-                FrameUpdateCallbackInterface f1 = new FrameUpdateCallbackInterface();
-                win.RemoveFrameUpdateCallback(f1);
-            }
-            catch (Exception e)
-            {
-                tlog.Debug(tag, e.Message.ToString());
-                Assert.Fail("Caught Exception : Failed!");
-            }
-
-            tlog.Debug(tag, $"WindowRemoveFrameUpdateCallback END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("Window AddFrameRenderedCallback")]
         [Property("SPEC", "Tizen.NUI.Window.AddFrameRenderedCallback M")]
         [Property("SPEC_URL", "-")]
@@ -404,8 +338,8 @@ namespace Tizen.NUI.Devel.Tests
             
             try
             {
-                FrameCallbackType f1 = null;
-                win.AddFrameRenderedCallback(f1, 1);
+                FrameCallbackType callback = null;
+                win.AddFrameRenderedCallback(callback, 1);
             }
             catch (ArgumentNullException e)
             {
@@ -427,8 +361,8 @@ namespace Tizen.NUI.Devel.Tests
             
             try
             {
-                FrameCallbackType f1 = null;
-                win.AddFramePresentedCallback(f1, 1);
+                FrameCallbackType callback = null;
+                win.AddFramePresentedCallback(callback, 1);
             }
             catch (ArgumentNullException e)
             {
index 0aaa42e..0fea142 100755 (executable)
@@ -161,7 +161,7 @@ namespace Tizen.NUI.Devel.Tests
             }
             catch (XamlParseException e)
             {
-                tlog.Fatal(tag, "Caught Exception" + e.ToString());
+                tlog.Debug(tag, "Caught Exception" + e.ToString());
                 Assert.True(true, "Should throw exception");
             }
 
@@ -289,7 +289,7 @@ namespace Tizen.NUI.Devel.Tests
             }
             catch (XamlParseException e)
             {
-                tlog.Fatal(tag, "Caught Exception" + e.ToString());
+                tlog.Debug(tag, "Caught Exception" + e.ToString());
                 Assert.False(true, "Caught Exception" + e.ToString());
             }
             tlog.Debug(tag, $"ExtensionsLoadObject1 END");
@@ -318,7 +318,7 @@ namespace Tizen.NUI.Devel.Tests
             }
             catch (XamlParseException e)
             {
-                tlog.Fatal(tag, "Caught Exception" + e.ToString());
+                tlog.Debug(tag, "Caught Exception" + e.ToString());
                 Assert.True(true, "Caught Exception" + e.ToString());
             }
             tlog.Debug(tag, $"ExtensionsLoadObject2 END");
index 814fbf4..025093a 100755 (executable)
@@ -108,42 +108,6 @@ namespace Tizen.NUI.Devel.Tests
                        Assert.AreEqual("Text1", layout.label2.Text);
                        Assert.AreEqual("TextIndex", layout.label3.Text);
                        Assert.AreEqual("Text0", layout.label8.Text);
-
-                       //value types
-                       Assert.That(layout.label5.Text, Is.EqualTo("42"));
-                       Assert.That(layout.label6.Text, Is.EqualTo("text6"));
-                       Assert.AreEqual("Text9", layout.label9.Text);
-                       Assert.AreEqual("Text9", layout.label10.Text);
-                       layout.label9.Text = "Text from label9";
-                       Assert.AreEqual("Text from label9", vm.StructModel.Text);
-                       layout.label10.Text = "Text from label10";
-                       Assert.AreEqual("Text from label10", vm.StructModel.Model.Text);
-
-                       //testing selfPath
-                       layout.label4.BindingContext = "Self";
-                       Assert.AreEqual("Self", layout.label4.Text);
-                       layout.label7.BindingContext = 42;
-                       Assert.That(layout.label7.Text, Is.EqualTo("42"));
-
-                       //testing INPC
-                       GC.Collect();
-                       vm.Text = "Text2";
-                       Assert.AreEqual("Text2", layout.label0.Text);
-
-                       //testing 2way
-                       Assert.AreEqual("Text2", layout.entry0.Text);
-                       layout.entry0.SetValue(TextField.TextProperty, "Text3");
-                       Assert.AreEqual("Text3", layout.entry0.Text);
-                       Assert.AreEqual("Text3", vm.Text);
-                       layout.entry1.SetValue(TextField.TextProperty, "Text4");
-                       Assert.AreEqual("Text4", layout.entry1.Text);
-                       Assert.AreEqual("Text4", vm.Model.Text);
-                       vm.Model = null;
-                       layout.entry1.BindingContext = null;
-
-                       //testing invalid bindingcontext type
-                       layout.BindingContext = new object();
-                       Assert.AreEqual(string.Empty, layout.label0.Text);
                }
        }
 
index b3e6bc1..00b2557 100755 (executable)
@@ -67,7 +67,6 @@ namespace Tizen.NUI.Devel.Tests
             if (examl)
             {
                 LoadEXaml();
-                               global::Tizen.NUI.EXaml.EXamlExtensions.RemoveEventsInXaml(eXamlData);
             }
             else
             {
index 29bfc97..98c988e 100755 (executable)
@@ -8,18 +8,5 @@
         <TextLabel x:Name="label0" Text="foo" BindingContext="{x:Reference label1}"/>
                <TextLabel x:Name="label1" Text="bar" BindingContext="{x:Reference label0}"/>
         <TextField x:Name="entry" Text="{Binding Text, Source={x:Reference label0}}" PlaceholderText="{Binding Text, Source={x:Reference label1}}"/>
-
-        <!--           <ListView x:Name="listView">
-                       <ListView.ItemTemplate>
-                               <DataTemplate>
-                                       <ViewCell>
-                                               <StackLayout>
-                                                       <Label x:Name="foo" BindingContext="{x:Reference bar}"/>
-                                                       <Label x:Name="bar" BindingContext="{x:Reference foo}"/>
-                                               </StackLayout>
-                                       </ViewCell>
-                               </DataTemplate>
-                       </ListView.ItemTemplate>
-               </ListView>-->
-       </View>
+    </View>
 </View>
\ No newline at end of file