[Applications][Non-ACR][Fix testcases for shareddata] 94/219994/7
authorJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 12 Dec 2019 07:57:12 +0000 (16:57 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 2 Jan 2020 08:05:59 +0000 (17:05 +0900)
Change-Id: Iebf3cbd9f9a62216d31a85930926a9540a2985a3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
tct-suite-vs/Resource/Tizen.Applications.Tests/BasicTpkApp01.tpk [new file with mode: 0644]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01.sln [new file with mode: 0644]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01.csproj [new file with mode: 0644]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01_App.cs [new file with mode: 0644]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/shared/res/BasicTpkApp01.png [new file with mode: 0644]
tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/tizen-manifest.xml [new file with mode: 0644]
tct-suite-vs/Tizen.Applications.Tests/testcase/TSApplicationInfo.cs

diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/BasicTpkApp01.tpk b/tct-suite-vs/Resource/Tizen.Applications.Tests/BasicTpkApp01.tpk
new file mode 100644 (file)
index 0000000..1a57029
Binary files /dev/null and b/tct-suite-vs/Resource/Tizen.Applications.Tests/BasicTpkApp01.tpk differ
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01.sln b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01.sln
new file mode 100644 (file)
index 0000000..3387825
--- /dev/null
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28307.852
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicTpkApp01", "BasicTpkApp01\BasicTpkApp01.csproj", "{822C6428-9561-4802-B0C1-E2793D3418AC}"
+EndProject
+Global
+        GlobalSection(SolutionConfigurationPlatforms) = preSolution
+                Debug|Any CPU = Debug|Any CPU
+                Release|Any CPU = Release|Any CPU
+        EndGlobalSection
+        GlobalSection(ProjectConfigurationPlatforms) = postSolution
+                {822C6428-9561-4802-B0C1-E2793D3418AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+                {822C6428-9561-4802-B0C1-E2793D3418AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+                {822C6428-9561-4802-B0C1-E2793D3418AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+                {822C6428-9561-4802-B0C1-E2793D3418AC}.Release|Any CPU.Build.0 = Release|Any CPU
+        EndGlobalSection
+        GlobalSection(SolutionProperties) = preSolution
+                HideSolutionNode = FALSE
+        EndGlobalSection
+        GlobalSection(ExtensibilityGlobals) = postSolution
+                SolutionGuid = {F2CBD2B9-D45F-48A5-85AC-830E3F4F9DB5}
+        EndGlobalSection
+EndGlobal
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01.csproj b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01.csproj
new file mode 100644 (file)
index 0000000..0f14756
--- /dev/null
@@ -0,0 +1,21 @@
+<Project Sdk="Tizen.NET.Sdk/1.0.3">
+
+  <PropertyGroup>
+    <OutputType>Exe</OutputType>
+    <TargetFramework>tizen70</TargetFramework>
+    <TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugType>portable</DebugType>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>None</DebugType>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <Folder Include="lib\"/>
+    <Folder Include="res\"/>
+  </ItemGroup>
+
+</Project>
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01_App.cs b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01_App.cs
new file mode 100644 (file)
index 0000000..e0a5a17
--- /dev/null
@@ -0,0 +1,62 @@
+using Tizen.Applications;
+using ElmSharp;
+
+namespace BasicTpkApp01
+{
+    class App : CoreUIApplication
+    {
+        protected override void OnCreate()
+        {
+            base.OnCreate();
+            Initialize();
+        }
+
+        void Initialize()
+        {
+            Window window = new Window("ElmSharpApp")
+            {
+                AvailableRotations = DisplayRotation.Degree_0 | DisplayRotation.Degree_180 | DisplayRotation.Degree_270 | DisplayRotation.Degree_90
+            };
+            window.BackButtonPressed += (s, e) =>
+            {
+                Exit();
+            };
+            window.Show();
+
+            var box = new Box(window)
+            {
+                AlignmentX = -1,
+                AlignmentY = -1,
+                WeightX = 1,
+                WeightY = 1,
+            };
+            box.Show();
+
+            var bg = new Background(window)
+            {
+                Color = Color.White
+            };
+            bg.SetContent(box);
+
+            var conformant = new Conformant(window);
+            conformant.Show();
+            conformant.SetContent(bg);
+
+            var label = new Label(window)
+            {
+                Text = "Hello, Tizen",
+                Color = Color.Black
+            };
+            label.Show();
+            box.PackEnd(label);
+        }
+
+        static void Main(string[] args)
+        {
+            Elementary.Initialize();
+            Elementary.ThemeOverlay();
+            App app = new App();
+            app.Run(args);
+        }
+    }
+}
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/shared/res/BasicTpkApp01.png b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/shared/res/BasicTpkApp01.png
new file mode 100644 (file)
index 0000000..9f3cb98
Binary files /dev/null and b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/shared/res/BasicTpkApp01.png differ
diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/tizen-manifest.xml b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/BasicTpkApp01/BasicTpkApp01/BasicTpkApp01/tizen-manifest.xml
new file mode 100644 (file)
index 0000000..3fcd0bd
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns="http://tizen.org/ns/packages" api-version="7" package="BasicTpkApp01" version="1.0.0">
+  <profile name="common" />
+  <ui-application appid="BasicTpkApp01" exec="BasicTpkApp01.dll" type="dotnet" multiple="false" taskmanage="true" nodisplay="false" launch_mode="single">
+    <label>BasicTpkApp01</label>
+    <icon>BasicTpkApp01.png</icon>
+    <metadata key="myMetaDataKey1" value="myMetaDataValue1"/>
+    <category name="myCategory1"/>
+    <category name="myCategory2"/>
+  </ui-application>
+  <privileges>
+    <privilege>http://tizen.org/privilege/mediastorage</privilege>
+    <privilege>http://tizen.org/privilege/appdir.shareddata</privilege>
+    <privilege>http://tizen.org/privilege/network.get</privilege>
+    <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
+    <privilege>http://tizen.org/privilege/haptic</privilege>
+    <privilege>http://tizen.org/privilege/display</privilege>
+    <privilege>http://tizen.org/privilege/notification</privilege>
+    <privilege>http://tizen.org/privilege/packagemanager.info</privilege>
+    <privilege>http://tizen.org/privilege/externalstorage</privilege>
+  </privileges>
+</manifest>
index 0dc57ef22a210686746e05b70c438fc00e78fe67..5cdf17a510295eae70a5b0b1316bea0406f5f7a2 100644 (file)
@@ -15,16 +15,16 @@ namespace Tizen.Applications.Tests
     public class ApplicationInfoTests
     {
         public ApplicationInfo _appInfor;
-        private const string AppId = "0pOuHwKNsr.BasicWebApp01";
-        private const string AppLocalLabel = "BasicWebApp01";
+        private const string AppId = "BasicTpkApp01";
+        private const string AppLocalLabel = "BasicTpkApp01";
         private const string MetaKey = "myMetaDataKey1";
         private const string CategoryName1 = "myCategory1";
         private const string CategoryName2 = "myCategory2";
-        private const string ExecutablePath = "/bin/0pOuHwKNsr.BasicWebApp01";
-        private const string IconPath = "/shared/res/0pOuHwKNsr.BasicWebApp01.png";
-        private const string AppType = "webapp";
-        private const string AppLabel = "BasicWebApp01";
-        private const string PackgeId = "0pOuHwKNsr";
+        private const string ExecutablePath = "/bin/BasicTpkApp01.dll";
+        private const string IconPath = "/shared/res/BasicTpkApp01.png";
+        private const string AppType = "dotnet";
+        private const string AppLabel = "BasicTpkApp01";
+        private const string PackgeId = "BasicTpkApp01";
         private const string SharedResourcePath = "/shared/res/";
         private const string SharedTrustedPath = "/shared/trusted/";
         private bool _flag;