[NUI][NUI.Components.Devel] Fix failed isseus of NUI.Components.Devel.
authorguowei.wang <guowei.wang@samsung.com>
Thu, 1 Dec 2022 14:07:19 +0000 (22:07 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 17 Jan 2023 08:40:26 +0000 (17:40 +0900)
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Properties/Resources.Designer.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Properties/Resources.resx
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Tizen.NUI.Components.Devel.Tests.csproj
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSButton.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSDatePicker.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSImageScrollBar.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSPicker.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSTimePicker.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSToast.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/tizen-manifest.xml

index 0cfc862..4a35f79 100755 (executable)
@@ -39,7 +39,7 @@ namespace Tizen.NUI.Components.Devel.Tests.Properties {
         internal static global::System.Resources.ResourceManager ResourceManager {
             get {
                 if (object.ReferenceEquals(resourceMan, null)) {
-                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Tizen.NUI.Components.Tests.Properties.Resources", typeof(Resources).Assembly);
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Tizen.NUI.Components.Devel.Tests.Properties.Resources", typeof(Resources).Assembly);
                     resourceMan = temp;
                 }
                 return resourceMan;
index 16d0353..e4f604f 100755 (executable)
@@ -1,17 +1,17 @@
 <?xml version="1.0" encoding="utf-8"?>
 <root>
-  <!--
-    Microsoft ResX Schema
-
+  <!-- 
+    Microsoft ResX Schema 
+    
     Version 2.0
-
-    The primary goals of this format is to allow a simple XML format
-    that is mostly human readable. The generation and parsing of the
-    various data types are done through the TypeConverter classes
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
     associated with the data types.
-
+    
     Example:
-
+    
     ... ado.net/XML headers & schema ...
     <resheader name="resmimetype">text/microsoft-resx</resheader>
     <resheader name="version">2.0</resheader>
         <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
         <comment>This is a comment</comment>
     </data>
-
-    There are any number of "resheader" rows that contain simple
+                
+    There are any number of "resheader" rows that contain simple 
     name/value pairs.
-
-    Each data row contains a name, and value. The row also contains a
-    type or mimetype. Type corresponds to a .NET class that support
-    text/value conversion through the TypeConverter architecture.
-    Classes that don't support this are serialized and stored with the
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
     mimetype set.
-
-    The mimetype is used for serialized objects, and tells the
-    ResXResourceReader how to depersist the object. This is currently not
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
     extensible. For a given mimetype the value must be set accordingly:
-
-    Note - application/x-microsoft.net.object.binary.base64 is the format
-    that the ResXResourceWriter will generate, however the reader can
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
     read any of the formats listed below.
-
+    
     mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with
+    value   : The object must be serialized with 
             : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
             : and then encoded with base64 encoding.
-
+    
     mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with
+    value   : The object must be serialized with 
             : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
             : and then encoded with base64 encoding.
 
     mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array
+    value   : The object must be serialized into a byte array 
             : using a System.ComponentModel.TypeConverter
             : and then encoded with base64 encoding.
     -->
     <value />
     <comment>test</comment>
   </data>
+  <data name="TranslatableText" xml:space="preserve">
+    <value>Translatable</value>
+    <comment>Translatable</comment>
+  </data>
 </root>
\ No newline at end of file
index 58dd238..0860494 100755 (executable)
@@ -3,7 +3,7 @@
   <!-- Property Group for .NET Core Project -->
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <TargetFramework>tizen10.0</TargetFramework>
+    <TargetFramework>netcoreapp3.1</TargetFramework>
     <TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>
   </PropertyGroup>
 
index 1476f35..dc7691e 100755 (executable)
@@ -6,7 +6,7 @@ using Tizen.NUI.Components;
 using Tizen.NUI.BaseComponents;
 using System.Threading.Tasks;
 using System.Resources;
-
+using Tizen.NUI.Components.Devel.Tests.Properties;
 
 namespace Tizen.NUI.Components.Devel.Tests.testcase.Controls
 {
@@ -191,11 +191,11 @@ namespace Tizen.NUI.Components.Devel.Tests.testcase.Controls
 
             NUIApplication.GetDefaultWindow().GetDefaultLayer().Add(testingTarget);
 
-            NUIApplication.MultilingualResourceManager = new ResourceManager(typeof(NUIApplication));
+            NUIApplication.MultilingualResourceManager = Resources.ResourceManager;
 
             if (NUIApplication.MultilingualResourceManager != null)
             {
-                testingTarget.TranslatableText = "Test TranslatableText";
+                testingTarget.TranslatableText = "TranslatableText";
                 tlog.Debug(tag, "testingTarget.TranslatableText : " + testingTarget.TranslatableText);
             }
 
index 119cdd4..49ccb7d 100755 (executable)
@@ -90,7 +90,7 @@ namespace Tizen.NUI.Components.Devel.Tests
 
             try
             {
-                new DatePicker(Tizen.NUI.DefaultThemeCreator.DefaultId);
+                new DatePicker("Tizen.NUI.Components.DatePicker");
             }
             catch (Exception e)
             {
index 3a311f2..5fdacab 100755 (executable)
@@ -291,7 +291,7 @@ namespace Tizen.NUI.Components.Devel.Tests
 
             try
             {
-                new ScrollBar(Tizen.NUI.DefaultThemeCreator.DefaultId);
+                new ScrollBar("Tizen.NUI.Components.Scrollbar");
             }
             catch (Exception e)
             {
index 836f4f9..82461cb 100755 (executable)
@@ -109,7 +109,7 @@ namespace Tizen.NUI.Components.Devel.Tests
 
             try
             {
-                new Picker(Tizen.NUI.DefaultThemeCreator.DefaultId);
+                new Picker("Tizen.NUI.Components.Picker");
             }
             catch (Exception e)
             {
index fe4cd84..86b3c28 100755 (executable)
@@ -83,7 +83,7 @@ namespace Tizen.NUI.Components.Devel.Tests
 
             try
             {
-                new TimePicker(Tizen.NUI.DefaultThemeCreator.DefaultId);
+                new TimePicker("Tizen.NUI.Components.TimePicker");
             }
             catch (Exception e)
             {
index d7f23ac..ea2fe7e 100755 (executable)
@@ -237,9 +237,26 @@ namespace Tizen.NUI.Components.Devel.Tests
         {
             tlog.Debug(tag, $"ToastConstructorWithString START");
 
+            //Theme theme = new Theme()
+            //{
+            //    Id = Tizen.NUI.DefaultThemeCreator.DefaultId,
+            //    Version = Tizen.NUI.DefaultThemeCreator.DefaultVersion
+            //};
+
+            //theme.AddStyleWithoutClone("Tizen.NUI.Components.Toast", new ToastStyle()
+            //{
+
+            //    Duration = 500,
+            //    Text = new TextLabelStyle()
+            //    {
+            //        Size = new Size(2, 18),
+            //        PointSize = 15.0f
+            //    }
+            //});
+
             try
             {
-                new Toast(Tizen.NUI.DefaultThemeCreator.DefaultId);
+                new Toast("Tizen.NUI.Components.DialogPage.Scrim");
             }
             catch (Exception e)
             {
index a99dfde..6e854f1 100755 (executable)
@@ -1,9 +1,15 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest package="Tizen.NUI.Components.Devel.Tests" version="1.0.2" api-version="7" xmlns="http://tizen.org/ns/packages">
     <profile name="common" />
-    <ui-application appid="Tizen.NUI.Components.Devel.Tests" exec="Tizen.NUI.Components.Devel.Tests.dll" multiple="false" taskmanage="true" splash-screen-display="true" type="dotnet-nui" launch_mode="single">
-        <icon>Tizen.NUI.Components.Devel.Tests.png</icon>
-        <label>Tizen.NUI.Components.Devel.Tests</label>
+    <ui-application appid="Tizen.NUI.Components.Devel.Tests" 
+                                       exec="Tizen.NUI.Components.Devel.Tests.dll" 
+                                       multiple="false" 
+                                       taskmanage="true" 
+                                       splash-screen-display="true" 
+                                       type="dotnet-nui" 
+                                       launch_mode="single">
+    <icon>Tizen.NUI.Components.Devel.Tests.png</icon>
+    <label>Tizen.NUI.Components.Devel.Tests</label>
     </ui-application>
     <privileges>
         <privilege>http://tizen.org/privilege/appmanager.launch</privilege>