From 7b7db3c1cd148c34ae0b963cabaa32c556adb738 Mon Sep 17 00:00:00 2001 From: Nguyen Van Tan Date: Fri, 15 Dec 2023 08:24:16 +0700 Subject: [PATCH] [ACR-515] Remove Webview and Webview.Manual because they were deprecated Change-Id: I699085e826a41f1ef05611e626efb6cba60a96b6 (cherry picked from commit 88f4c5771ef28c8856b82ad24d4ec46b228cfa82) --- tct-suite-vs/CSharpTCT.sln | 41 +- tct-suite-vs/Tizen.WebView.Manual.Tests/Program.cs | 52 - .../Tizen.WebView.Manual.Tests.csproj | 40 - .../Tizen.WebView.Manual.Tests.sln | 92 -- .../res/context_menu.html | 17 - .../Tizen.WebView.Manual.Tests/res/tizen.png | Bin 3994 -> 0 bytes .../shared/res/Tizen.WebView.Manual.Tests.png | Bin 57662 -> 0 bytes .../testcase/TSContextMenu.cs | 267 ---- .../testcase/TSContextMenuItem.cs | 86 - .../testcase/TSContextMenuItemEventArgs.cs | 103 -- .../testcase/TSWebView.cs | 143 -- .../testcase/support/WebViewCommon.cs | 112 -- .../Tizen.WebView.Manual.Tests/tizen-manifest.xml | 16 - tct-suite-vs/Tizen.WebView.Tests/Program.cs | 61 - .../Tizen.WebView.Tests/Tizen.WebView.Tests.csproj | 40 - .../Tizen.WebView.Tests/Tizen.WebView.Tests.sln | 78 - .../res/add_js_interface_sample.html | 44 - .../res/form_submit_sample.html | 19 - .../Tizen.WebView.Tests/res/link_click_sample.html | 18 - tct-suite-vs/Tizen.WebView.Tests/res/sample.html | 13 - tct-suite-vs/Tizen.WebView.Tests/res/sample_1.html | 11 - tct-suite-vs/Tizen.WebView.Tests/res/sample_2.html | 11 - .../res/window_open_sample.html | 18 - .../shared/res/Tizen.WebView.Tests.png | Bin 57662 -> 0 bytes .../testcase/TSBackForwardList.cs | 271 ---- .../testcase/TSBackForwardListItem.cs | 147 -- .../Tizen.WebView.Tests/testcase/TSChromium.cs | 74 - .../Tizen.WebView.Tests/testcase/TSContext.cs | 127 -- .../testcase/TSCookieManager.cs | 140 -- .../testcase/TSJavaScriptMessage.cs | 271 ---- .../testcase/TSNavigationPolicyEventArgs.cs | 383 ----- .../testcase/TSPolicyDecisionEventArgs.cs | 194 --- .../testcase/TSResponsePolicyEventArgs.cs | 169 -- .../Tizen.WebView.Tests/testcase/TSSettings.cs | 141 -- .../testcase/TSSmartCallbackArgs.cs | 177 --- .../testcase/TSSmartCallbackLoadErrorArgs.cs | 181 --- .../Tizen.WebView.Tests/testcase/TSWebView.cs | 1675 -------------------- .../testcase/support/WebViewCommon.cs | 54 - .../Tizen.WebView.Tests/tizen-manifest.xml | 15 - 39 files changed, 2 insertions(+), 5299 deletions(-) delete mode 100755 tct-suite-vs/Tizen.WebView.Manual.Tests/Program.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Manual.Tests/Tizen.WebView.Manual.Tests.csproj delete mode 100755 tct-suite-vs/Tizen.WebView.Manual.Tests/Tizen.WebView.Manual.Tests.sln delete mode 100755 tct-suite-vs/Tizen.WebView.Manual.Tests/res/context_menu.html delete mode 100644 tct-suite-vs/Tizen.WebView.Manual.Tests/res/tizen.png delete mode 100755 tct-suite-vs/Tizen.WebView.Manual.Tests/shared/res/Tizen.WebView.Manual.Tests.png delete mode 100755 tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSContextMenu.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSContextMenuItem.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSContextMenuItemEventArgs.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSWebView.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/support/WebViewCommon.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Manual.Tests/tizen-manifest.xml delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/Program.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/Tizen.WebView.Tests.csproj delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/Tizen.WebView.Tests.sln delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/res/add_js_interface_sample.html delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/res/form_submit_sample.html delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/res/link_click_sample.html delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/res/sample.html delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/res/sample_1.html delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/res/sample_2.html delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/res/window_open_sample.html delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/shared/res/Tizen.WebView.Tests.png delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSBackForwardList.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSBackForwardListItem.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSChromium.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSContext.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSCookieManager.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSJavaScriptMessage.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSNavigationPolicyEventArgs.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSPolicyDecisionEventArgs.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSResponsePolicyEventArgs.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSSettings.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackArgs.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackLoadErrorArgs.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/TSWebView.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/testcase/support/WebViewCommon.cs delete mode 100755 tct-suite-vs/Tizen.WebView.Tests/tizen-manifest.xml diff --git a/tct-suite-vs/CSharpTCT.sln b/tct-suite-vs/CSharpTCT.sln index f1e0e9d..a10de32 100644 --- a/tct-suite-vs/CSharpTCT.sln +++ b/tct-suite-vs/CSharpTCT.sln @@ -1,6 +1,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.6.33829.357 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Applications.Tests", "Tizen.Applications.Tests\Tizen.Applications.Tests.csproj", "{F0D122C4-48E1-4037-A97D-F7BC75365C81}" EndProject @@ -214,8 +214,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Usb.Manual.Tests", "T EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Nlp.Tests", "Tizen.Nlp.Tests\Tizen.Nlp.Tests.csproj", "{12D898B5-41E2-4E2E-9697-70C7501E33EC}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.WebView.Tests", "Tizen.WebView.Tests\Tizen.WebView.Tests.csproj", "{CB2C92D4-36B8-445F-8090-082AD62137EE}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Connection.Tests", "Tizen.Connection.Tests\Tizen.Connection.Tests.csproj", "{13A7BAD5-3C3C-4385-A4F9-09E8DA2935F4}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Connection.Manual.Tests", "Tizen.Connection.Manual.Tests\Tizen.Connection.Manual.Tests.csproj", "{9374FA38-9FB6-4FFB-A42C-48DBA8078F3A}" @@ -242,8 +240,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Applications.EventMan EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Applications.EventManager.Manual.Tests", "Tizen.Applications.EventManager.Manual.Tests\Tizen.Applications.EventManager.Manual.Tests.csproj", "{C8796F73-3BF9-485B-8616-92B7E140A6BA}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.WebView.Manual.Tests", "Tizen.WebView.Manual.Tests\Tizen.WebView.Manual.Tests.csproj", "{0E4F1A1C-40DE-42E3-9D8E-DB148E70D981}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.NUI.Components.Tests", "Tizen.NUI.Components.Tests\Tizen.NUI.Components.Tests.csproj", "{76F45553-4F99-4605-8746-E315F6AF9614}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.NUI.Components.Manual.Tests", "Tizen.NUI.Components.Manual.Tests\Tizen.NUI.Components.Manual.Tests.csproj", "{6B88A41D-1DD9-416F-9B51-84189E7A1232}" @@ -494,12 +490,6 @@ Global {0C5D3A30-65AD-4419-9584-67D3D596131A}.NUI|Any CPU.ActiveCfg = Release|Any CPU {0C5D3A30-65AD-4419-9584-67D3D596131A}.Release|Any CPU.ActiveCfg = Release|Any CPU {0C5D3A30-65AD-4419-9584-67D3D596131A}.Release|Any CPU.Build.0 = Release|Any CPU - {B0360617-24BA-4449-85A5-80420150C84F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B0360617-24BA-4449-85A5-80420150C84F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B0360617-24BA-4449-85A5-80420150C84F}.NUI|Any CPU.ActiveCfg = Release|Any CPU - {B0360617-24BA-4449-85A5-80420150C84F}.NUI|Any CPU.Build.0 = Release|Any CPU - {B0360617-24BA-4449-85A5-80420150C84F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B0360617-24BA-4449-85A5-80420150C84F}.Release|Any CPU.Build.0 = Release|Any CPU {B4408568-4DBB-41F8-BB41-508A07614129}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B4408568-4DBB-41F8-BB41-508A07614129}.Debug|Any CPU.Build.0 = Debug|Any CPU {B4408568-4DBB-41F8-BB41-508A07614129}.NUI|Any CPU.ActiveCfg = Release|Any CPU @@ -570,21 +560,6 @@ Global {D09A0ACE-E070-4694-9E3C-F81F54C27A69}.NUI|Any CPU.ActiveCfg = Release|Any CPU {D09A0ACE-E070-4694-9E3C-F81F54C27A69}.Release|Any CPU.ActiveCfg = Release|Any CPU {D09A0ACE-E070-4694-9E3C-F81F54C27A69}.Release|Any CPU.Build.0 = Release|Any CPU - {552E1436-AF4D-4DAA-BA0A-CA43A050DEB0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {552E1436-AF4D-4DAA-BA0A-CA43A050DEB0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {552E1436-AF4D-4DAA-BA0A-CA43A050DEB0}.NUI|Any CPU.ActiveCfg = Release|Any CPU - {552E1436-AF4D-4DAA-BA0A-CA43A050DEB0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {552E1436-AF4D-4DAA-BA0A-CA43A050DEB0}.Release|Any CPU.Build.0 = Release|Any CPU - {22673A2C-2B03-4114-ADF3-B6B952F758C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {22673A2C-2B03-4114-ADF3-B6B952F758C9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {22673A2C-2B03-4114-ADF3-B6B952F758C9}.NUI|Any CPU.ActiveCfg = Release|Any CPU - {22673A2C-2B03-4114-ADF3-B6B952F758C9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {22673A2C-2B03-4114-ADF3-B6B952F758C9}.Release|Any CPU.Build.0 = Release|Any CPU - {6BA4E0F6-A125-4A12-AE89-30604126C90D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6BA4E0F6-A125-4A12-AE89-30604126C90D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6BA4E0F6-A125-4A12-AE89-30604126C90D}.NUI|Any CPU.ActiveCfg = Release|Any CPU - {6BA4E0F6-A125-4A12-AE89-30604126C90D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6BA4E0F6-A125-4A12-AE89-30604126C90D}.Release|Any CPU.Build.0 = Release|Any CPU {D23C0C2B-2361-42CA-8BC6-F2F9325A8158}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D23C0C2B-2361-42CA-8BC6-F2F9325A8158}.Debug|Any CPU.Build.0 = Debug|Any CPU {D23C0C2B-2361-42CA-8BC6-F2F9325A8158}.NUI|Any CPU.ActiveCfg = Release|Any CPU @@ -926,12 +901,6 @@ Global {12D898B5-41E2-4E2E-9697-70C7501E33EC}.NUI|Any CPU.Build.0 = Debug|Any CPU {12D898B5-41E2-4E2E-9697-70C7501E33EC}.Release|Any CPU.ActiveCfg = Release|Any CPU {12D898B5-41E2-4E2E-9697-70C7501E33EC}.Release|Any CPU.Build.0 = Release|Any CPU - {CB2C92D4-36B8-445F-8090-082AD62137EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CB2C92D4-36B8-445F-8090-082AD62137EE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CB2C92D4-36B8-445F-8090-082AD62137EE}.NUI|Any CPU.ActiveCfg = Debug|Any CPU - {CB2C92D4-36B8-445F-8090-082AD62137EE}.NUI|Any CPU.Build.0 = Debug|Any CPU - {CB2C92D4-36B8-445F-8090-082AD62137EE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CB2C92D4-36B8-445F-8090-082AD62137EE}.Release|Any CPU.Build.0 = Release|Any CPU {13A7BAD5-3C3C-4385-A4F9-09E8DA2935F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {13A7BAD5-3C3C-4385-A4F9-09E8DA2935F4}.Debug|Any CPU.Build.0 = Debug|Any CPU {13A7BAD5-3C3C-4385-A4F9-09E8DA2935F4}.NUI|Any CPU.ActiveCfg = Debug|Any CPU @@ -1010,12 +979,6 @@ Global {C8796F73-3BF9-485B-8616-92B7E140A6BA}.NUI|Any CPU.Build.0 = Debug|Any CPU {C8796F73-3BF9-485B-8616-92B7E140A6BA}.Release|Any CPU.ActiveCfg = Release|Any CPU {C8796F73-3BF9-485B-8616-92B7E140A6BA}.Release|Any CPU.Build.0 = Release|Any CPU - {0E4F1A1C-40DE-42E3-9D8E-DB148E70D981}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0E4F1A1C-40DE-42E3-9D8E-DB148E70D981}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0E4F1A1C-40DE-42E3-9D8E-DB148E70D981}.NUI|Any CPU.ActiveCfg = Debug|Any CPU - {0E4F1A1C-40DE-42E3-9D8E-DB148E70D981}.NUI|Any CPU.Build.0 = Debug|Any CPU - {0E4F1A1C-40DE-42E3-9D8E-DB148E70D981}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0E4F1A1C-40DE-42E3-9D8E-DB148E70D981}.Release|Any CPU.Build.0 = Release|Any CPU {76F45553-4F99-4605-8746-E315F6AF9614}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {76F45553-4F99-4605-8746-E315F6AF9614}.Debug|Any CPU.Build.0 = Debug|Any CPU {76F45553-4F99-4605-8746-E315F6AF9614}.NUI|Any CPU.ActiveCfg = Debug|Any CPU diff --git a/tct-suite-vs/Tizen.WebView.Manual.Tests/Program.cs b/tct-suite-vs/Tizen.WebView.Manual.Tests/Program.cs deleted file mode 100755 index b356830..0000000 --- a/tct-suite-vs/Tizen.WebView.Manual.Tests/Program.cs +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using System; -using NUnit.Framework; -using Xamarin.Forms; -using Tizen.WebView; - -namespace XamarinApplication.Tizen -{ - class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication - { - private Application _app; - protected override void OnCreate() - { - Console.WriteLine("TCT : OnCreate()"); - base.OnCreate(); - if (ManualTest.IsWearable()) - { - _app = new WearableTemplate.MainPage(); - } - else - { - _app = new ManualTemplate.MainPage(); - } - LoadApplication(_app); - } - - static void Main(string[] args) - { - Console.WriteLine("TCT : Main()"); - var app = new Program(); - global::Xamarin.Forms.Forms.Init(app); - Chromium.Initialize(); - app.Run(args); - Chromium.Shutdown(); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Manual.Tests/Tizen.WebView.Manual.Tests.csproj b/tct-suite-vs/Tizen.WebView.Manual.Tests/Tizen.WebView.Manual.Tests.csproj deleted file mode 100755 index 2dd4d7d..0000000 --- a/tct-suite-vs/Tizen.WebView.Manual.Tests/Tizen.WebView.Manual.Tests.csproj +++ /dev/null @@ -1,40 +0,0 @@ - - - - - Exe - net6.0-tizen8.0 - True - Tizen - - - - - true - - - - portable - - - None - - - - - - - - - - - Runtime - - - - - - - - - diff --git a/tct-suite-vs/Tizen.WebView.Manual.Tests/Tizen.WebView.Manual.Tests.sln b/tct-suite-vs/Tizen.WebView.Manual.Tests/Tizen.WebView.Manual.Tests.sln deleted file mode 100755 index e1cac60..0000000 --- a/tct-suite-vs/Tizen.WebView.Manual.Tests/Tizen.WebView.Manual.Tests.sln +++ /dev/null @@ -1,92 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26730.15 -MinimumVisualStudioVersion = 15.0.26124.0 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.WebView.Manual.Tests", "Tizen.WebView.Manual.Tests.csproj", "{D92BEEAC-3B2A-45F8-8C53-53B92550404A}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunit.framework", "..\nunit.framework\nunit.framework.csproj", "{B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunitlite", "..\nunitlite\nunitlite.csproj", "{FDB8025A-C029-461F-895E-287B4C65939B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ManualTemplate", "..\Template\ManualTemplate\ManualTemplate.csproj", "{269F89A7-E648-4811-8421-844E00ACF5F0}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ManualTemplateForWearable", "..\Template\ManualTemplateForWearable\ManualTemplateForWearable.csproj", "{D36CED01-29BD-4EB3-8903-62E0BF2A822D}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x64.ActiveCfg = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x64.Build.0 = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x86.ActiveCfg = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x86.Build.0 = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|Any CPU.Build.0 = Release|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x64.ActiveCfg = Release|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x64.Build.0 = Release|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x86.ActiveCfg = Release|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x86.Build.0 = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x64.ActiveCfg = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x64.Build.0 = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x86.ActiveCfg = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x86.Build.0 = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|Any CPU.Build.0 = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x64.ActiveCfg = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x64.Build.0 = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x86.ActiveCfg = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x86.Build.0 = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x64.ActiveCfg = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x64.Build.0 = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x86.ActiveCfg = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x86.Build.0 = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|Any CPU.Build.0 = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x64.ActiveCfg = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x64.Build.0 = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x86.ActiveCfg = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x86.Build.0 = Release|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Debug|x64.ActiveCfg = Debug|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Debug|x64.Build.0 = Debug|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Debug|x86.ActiveCfg = Debug|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Debug|x86.Build.0 = Debug|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Release|Any CPU.Build.0 = Release|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Release|x64.ActiveCfg = Release|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Release|x64.Build.0 = Release|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Release|x86.ActiveCfg = Release|Any CPU - {269F89A7-E648-4811-8421-844E00ACF5F0}.Release|x86.Build.0 = Release|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Debug|x64.ActiveCfg = Debug|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Debug|x64.Build.0 = Debug|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Debug|x86.ActiveCfg = Debug|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Debug|x86.Build.0 = Debug|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Release|Any CPU.Build.0 = Release|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Release|x64.ActiveCfg = Release|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Release|x64.Build.0 = Release|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Release|x86.ActiveCfg = Release|Any CPU - {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Release|x86.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {ED382B91-9930-40B6-B3D7-362304C78680} - EndGlobalSection -EndGlobal diff --git a/tct-suite-vs/Tizen.WebView.Manual.Tests/res/context_menu.html b/tct-suite-vs/Tizen.WebView.Manual.Tests/res/context_menu.html deleted file mode 100755 index c829c2a..0000000 --- a/tct-suite-vs/Tizen.WebView.Manual.Tests/res/context_menu.html +++ /dev/null @@ -1,17 +0,0 @@ - - - Testing Context Menu - - - - -

Context Menu Test Page

-

Please long press below image.

- Test image - - diff --git a/tct-suite-vs/Tizen.WebView.Manual.Tests/res/tizen.png b/tct-suite-vs/Tizen.WebView.Manual.Tests/res/tizen.png deleted file mode 100644 index 46b80abf2bf1905fe50be47c187d047ee013198f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3994 zcmaJ^c{o)4-_}aDEK`=m7z$x#Ft%YVWogJhWesCyEHR6jVI)RE%8;$>As$Id$P$uB zWY3f}OZMyu$=W+Tzo+N-{_*yn>zwmluKT_}pU?MmU)QGcKT^*oy0GuU&$5GM10K5-@0uMld{?>)F=D)TfAmHB+sy71k zpQP-}EP>~UWE@ZxtfGj4Dk%Zg)WAwGRW&sw1)wriNf`oV-D-+TFu1B3Tv;9X&jn&d zBV*m+)&@rZ#A2-wAWtfl1cyLqG#Z$u0w$6@AWE8=n!hxZl@(bCMaoqI6&;{Rph*2z zFu+kTWG@oci%0Q^Wd{2UpFrV`00BGKpfDO!3GsYHq= zkpw(vqXv|<^&()2G>Y8ccr!CNl0c!N2^bvG00CktfW5r1a7}$RLztnyih+iKzLJt5 zOyjJfhLM_~p_+!Oijolw`kQM&#Q5QH1nO@t_P<=%AGyD*fG4pc8{o)Z{y3}=nTQAe zT{7J3&$%f5QSTov_RqN}|B(w}B?I}@*#Fh&-&-vA{F?r2Th`)V0vMpi+3VF#m4csMWaGk%B{OF_%(n8-2txz1|29w|O8oi6>4-Px<>d+P(0?MLhhDM> z+g%x&6OwMV_r9W&a8+4_^S~gFipokCUisvqek(gWn66dpdLW{9`}<;>eVHdeXGdOs z{xZ@+B3~uDzCKju-PFm&p$tvRnZ(3qm=hNd-+pN2cv1CmNTEwdO;&vT3cwn=AF&GbZO-F zZSDpI^Q?&N*KD zB;O+Ij(wDDmrhm#v&ea$CAV;b=lF+E4tf@+L*}u$2s^f92yJA0p{Y;e)7sA5aQ6oW zpCN&->7pVdr(cfawBEk6{NZ$))36!?w3x_kGX!+9$xJNvXK zAeA7~KlNVRD3n91o$*1(a|E^Vot#oFGNbv+MTQpX^J}T*Sc#Ckm9860h_+!uSGof>6dK(%67ti+ zeP;5@Y-@Wv>WsX+NO`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rZA#!%*(2`)k=6wAKu_^Ck!LPEy>dTF;Eb;GrMz(MqCxk00lfV;|5y1uRL1|q`n zZLLwj^YhFCE}_nH<7>IO6Pi(dQGYNU(z#c;k=|3ElNBrhRo{fH_BWJv$;gMQ zQ#80kcOJN6G8rJ!K{nqfua>7KwUwbzjv(h}XzI&lcc>qdUZ|tPs9(#4(e-J>VPagvx(*w zf^%(AvWMB|i^oK3=_cb~t0E0}lN z*57pC<@ZaU?&)>)=w6vJ!fVD0w=;A79|3RxM-Gs#!r4a_E*kE!pTic3RpNV7%t-j) zAg|<{;n+GfLk}wOUNsWe;x^lBaF;{{{yd@lm%V=Re2(&^nX0#K#x`1qn8zSOdNd(FG9YUpuJ&?D{K=Igsi6N z(dqV2xxI(qD9db}Zl*qx4%?9#KK8udn;o?G!$KoN(u) zR?-QyMuK!-Z?FGF6w08yL2K!S6l1czB-d}~EbN3G)k$Fv4yF~{Z)CYj}Mb4T5IXeKMxAC!4y&*3w2xDfBh{Z4b2UT&br?C EA7ry5_W%F@ diff --git a/tct-suite-vs/Tizen.WebView.Manual.Tests/shared/res/Tizen.WebView.Manual.Tests.png b/tct-suite-vs/Tizen.WebView.Manual.Tests/shared/res/Tizen.WebView.Manual.Tests.png deleted file mode 100755 index 9765b1bda7e5bddf0925555ab204b887a873bf24..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57662 zcmdU&2Y{Bv)wXAQhoyJerGpfaq9DE5J1S~atXN|Avn3kQ*!`l$D2ie%v3Ct9iU9$! zARxVWkS4wCvh_dLJny{>uV6_upZ~zTGjrz5nKS2}_RLfEz7vl>A}6zMrgJXms3ZHI zY~lal(^KvD>g2b^T99$|k!M`zTvj!Ff*bL4ZRavixU^rt6HmP4s_U=1?vksn&O54K zzr3rjz3Spie}9p4H!U1_%FscltgqRlVCl}j$J~4S-;TNJ8N(x+7h3`nl`#k2P&{pByWKUm|WHre-Q&QDvN|NLL>eBs{vzbanwhZioN zJGS84sb!<)^<4YLj*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+T&6#DSD0;1`&kBdyQ56LC)MX~>1olS!p$pSkJiQ^PTspwbpG9e!D!m!-zBA%$k kZ}gYfNaCF}xV$|1>H6z0+kD tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.ContextMenuHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - WebView.ContextMenuCustomize contextMenuCustomize = (ContextMenu menu) => - { - bool isFailed = false; - foreach (ContextMenuItemTag tag in Enum.GetValues(typeof(ContextMenuItemTag))) - { - var count = menu.ItemCount; - var newItem = menu.AppendItem(tag, tag.ToString(), null, true); - - if (newItem == null || tag != newItem.ItemTag || menu.ItemCount - count != 1) - { - isFailed = true; - break; - } - } - - if (isFailed) - { - ManualTest.ConfirmFail("Failed to append item"); - } - else - { - ManualTest.Confirm(); - } - }; - _webView.SetContextMenuCustomizeDelegate(contextMenuCustomize); - - await ManualTest.WaitForConfirm(); - - /* POSTCONDITION */ - _webView.SetContextMenuCustomizeDelegate(null); - } - - [Test] - [Category("P1")] - [Description("Test: Gets the item of the context menu.")] - [Property("SPEC", "Tizen.WebView.ContextMenu.GetItemAtIndex M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - [Precondition(1, "Context menu is not supported on both TV and Wearable profile. So the testcase will be passed automatically after run if the profile is TV or Wearable.")] - [Step(1, "Click run TC.")] - [Step(2, "Long press image of test page.")] - [Step(3, "If there is no exception, test will be automatically passed.")] - [Postcondition(1, "NA")] - public async Task GetItemAtIndex_RETURN_VALUE() - { - /* PRECONDITION */ - if (WebViewCommon.IsTVProfile() || WebViewCommon.IsWearableProfile()) - { - Assert.Pass("Context menu is not supported on both TV and Wearable profile"); - } - - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.ContextMenuHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - WebView.ContextMenuCustomize contextMenuCustomize = (ContextMenu menu) => - { - Assert.IsTrue(menu.ItemCount > 0, "ContextMenu has no item"); - var item = menu.GetItemAtIndex(0); - if (item != null && item.GetType() == typeof(ContextMenuItem)) - { - ManualTest.Confirm(); - } - else - { - ManualTest.ConfirmFail("Item is invalid object"); - } - }; - _webView.SetContextMenuCustomizeDelegate(contextMenuCustomize); - - await ManualTest.WaitForConfirm(); - - /* POSTCONDITION */ - _webView.SetContextMenuCustomizeDelegate(null); - } - - [Test] - [Category("P1")] - [Description("Test: Removes the item from the context menu.")] - [Property("SPEC", "Tizen.WebView.ContextMenu.RemoveItem M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - [Precondition(1, "Context menu is not supported on both TV and Wearable profile. So the testcase will be passed automatically after run if the profile is TV or Wearable.")] - [Step(1, "Click run TC.")] - [Step(2, "Long press image of test page.")] - [Step(3, "If there is no exception, test will be automatically passed.")] - [Postcondition(1, "NA")] - public async Task RemoveItem_CHANGE_STATUS() - { - /* PRECONDITION */ - if (WebViewCommon.IsTVProfile() || WebViewCommon.IsWearableProfile()) - { - Assert.Pass("Context menu is not supported on both TV and Wearable profile"); - } - - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.ContextMenuHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - WebView.ContextMenuCustomize contextMenuCustomize = (ContextMenu menu) => - { - var count = menu.ItemCount; - Assert.IsTrue(count > 0, "There are no items in the context menu"); - menu.RemoveItem(menu.GetItemAtIndex(0)); - if (menu.ItemCount - count == -1) - { - ManualTest.Confirm(); - } - else - { - ManualTest.ConfirmFail("Failed to remove item"); - } - }; - _webView.SetContextMenuCustomizeDelegate(contextMenuCustomize); - - await ManualTest.WaitForConfirm(); - - /* POSTCONDITION */ - _webView.SetContextMenuCustomizeDelegate(null); - } - - [Test] - [Category("P1")] - [Description("Test: Gets the count of items in the context menu.")] - [Property("SPEC", "Tizen.WebView.ContextMenu.ItemCount A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - [Precondition(1, "Context menu is not supported on both TV and Wearable profile. So the testcase will be passed automatically after run if the profile is TV or Wearable.")] - [Step(1, "Click run TC.")] - [Step(2, "Long press image of test page.")] - [Step(3, "If there is no exception, test will be automatically passed.")] - [Postcondition(1, "NA")] - public async Task ItemCount_READ_ONLY() - { - /* PRECONDITION */ - if (WebViewCommon.IsTVProfile() || WebViewCommon.IsWearableProfile()) - { - Assert.Pass("Context menu is not supported on both TV and Wearable profile"); - } - - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.ContextMenuHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - WebView.ContextMenuCustomize contextMenuCustomize = (ContextMenu menu) => - { - if (menu.ItemCount > 0) - { - ManualTest.Confirm(); - } - else - { - ManualTest.ConfirmFail("There are no items in the context menu"); - } - }; - _webView.SetContextMenuCustomizeDelegate(contextMenuCustomize); - - await ManualTest.WaitForConfirm(); - - /* POSTCONDITION */ - _webView.SetContextMenuCustomizeDelegate(null); - } - }; -} diff --git a/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSContextMenuItem.cs b/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSContextMenuItem.cs deleted file mode 100755 index a62be69..0000000 --- a/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSContextMenuItem.cs +++ /dev/null @@ -1,86 +0,0 @@ -using System; -using System.Threading.Tasks; -using NUnit.Framework; -using NUnit.Framework.TUnit; - -namespace Tizen.WebView.Manual.Tests -{ - [TestFixture] - [Description("Tizen.WebView.ContextMenuItem test")] - class ContextMenuItemTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Preconditions for Tizen.WebView.ContextMenuItem TEST"); - _webView = WebViewCommon.GetWebViewPage(); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Postconditions for Tizen.WebView.ContextMenuItem TEST"); - WebViewCommon.RemoveWebViewPage(); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Test: Gets ItemTag property of ContextMenuItem.")] - [Property("SPEC", "Tizen.WebView.ContextMenuItem.ItemTag A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - [Precondition(1, "Context menu is not supported on both TV and Wearable profile. So the testcase will be passed automatically after run if the profile is TV or Wearable.")] - [Step(1, "Click run TC.")] - [Step(2, "Long press image of test page.")] - [Step(3, "If there is no exception, test will be automatically passed.")] - [Postcondition(1, "NA")] - public async Task ItemTag_READ_ONLY() - { - /* PRECONDITION */ - if (WebViewCommon.IsTVProfile() || WebViewCommon.IsWearableProfile()) - { - Assert.Pass("Context menu is not supported on both TV and Wearable profile"); - } - - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.ContextMenuHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - WebView.ContextMenuCustomize contextMenuCustomize = (ContextMenu menu) => - { - Assert.IsTrue(menu.ItemCount > 0, "ContextMenu has no item"); - var item = menu.GetItemAtIndex(0); - if (item != null && item.ItemTag.GetType() == typeof(ContextMenuItemTag)) - { - ManualTest.Confirm(); - } - else - { - ManualTest.ConfirmFail("ItemTag is invalid object"); - } - }; - _webView.SetContextMenuCustomizeDelegate(contextMenuCustomize); - - await ManualTest.WaitForConfirm(); - - /* POSTCONDITION */ - _webView.SetContextMenuCustomizeDelegate(null); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSContextMenuItemEventArgs.cs b/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSContextMenuItemEventArgs.cs deleted file mode 100755 index 313679f..0000000 --- a/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSContextMenuItemEventArgs.cs +++ /dev/null @@ -1,103 +0,0 @@ -using System; -using System.Threading.Tasks; -using NUnit.Framework; -using NUnit.Framework.TUnit; - -namespace Tizen.WebView.Manual.Tests -{ - [TestFixture] - [Description("Tizen.WebView.ContextMenuItemEventArgs test")] - class ContextMenuItemEventArgsTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Preconditions for Tizen.WebView.ContextMenuItemEventArgs TEST"); - _webView = WebViewCommon.GetWebViewPage(); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Postconditions for Tizen.WebView.ContextMenuItemEventArgs TEST"); - WebViewCommon.RemoveWebViewPage(); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Test: Gets Item property of ContextMenuItemEventArgs.")] - [Property("SPEC", "Tizen.WebView.ContextMenuItemEventArgs.Item A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - [Precondition(1, "Context menu is not supported on both TV and Wearable profile. So the testcase will be passed automatically after run if the profile is TV or Wearable.")] - [Step(1, "Click run TC.")] - [Step(2, "Long press image of test page.")] - [Step(3, "Select item of the context menu.")] - [Step(4, "If there is no exception, test will be automatically passed.")] - [Postcondition(1, "NA")] - public async Task Item_READ_ONLY() - { - /* PRECONDITION */ - if (WebViewCommon.IsTVProfile() || WebViewCommon.IsWearableProfile()) - { - Assert.Pass("Context menu is not supported on both TV and Wearable profile"); - } - - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.ContextMenuHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - WebView.ContextMenuCustomize contextMenuCustomize = (ContextMenu menu) => - { - var count = menu.ItemCount; - for (int i = 0; i < count; i++) - { - menu.RemoveItem(menu.GetItemAtIndex(0)); - } - - var newItem = menu.AppendItem(WebViewCommon.CustomItemTag, "Select me!!!", null, true); - if (newItem == null) - { - ManualTest.ConfirmFail("Failed to append item"); - } - }; - _webView.SetContextMenuCustomizeDelegate(contextMenuCustomize); - - /* TEST CODE */ - EventHandler onContextMenuItemSelected = (s, e) => - { - var item = e.Item; - if (item != null && item.GetType() == typeof(ContextMenuItem)) - { - ManualTest.Confirm(); - } - else - { - ManualTest.ConfirmFail("Seleted item is invalid object"); - } - }; - _webView.ContextMenuItemSelected += onContextMenuItemSelected; - - await ManualTest.WaitForConfirm(); - - /* POSTCONDITION */ - _webView.SetContextMenuCustomizeDelegate(null); - _webView.ContextMenuItemSelected -= onContextMenuItemSelected; - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSWebView.cs b/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSWebView.cs deleted file mode 100755 index 5b9b95e..0000000 --- a/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/TSWebView.cs +++ /dev/null @@ -1,143 +0,0 @@ -using System; -using System.Threading.Tasks; -using NUnit.Framework; -using NUnit.Framework.TUnit; - -namespace Tizen.WebView.Manual.Tests -{ - [TestFixture] - [Description("Tizen.WebView.WebView test")] - class WebViewTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Preconditions for Tizen.WebView.WebView TEST"); - _webView = WebViewCommon.GetWebViewPage(); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Postconditions for Tizen.WebView.WebView TEST"); - WebViewCommon.RemoveWebViewPage(); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Test: Sets the delegate for context menu customization.")] - [Property("SPEC", "Tizen.WebView.WebView.SetContextMenuCustomizeDelegate M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - [Precondition(1, "Context menu is not supported on both TV and Wearable profile. So the testcase will be passed automatically after run if the profile is TV or Wearable.")] - [Step(1, "Click run TC.")] - [Step(2, "Long press image of test page.")] - [Step(3, "If there is no exception, test will be automatically passed.")] - [Postcondition(1, "NA")] - public async Task SetContextMenuCustomizeDelegate_CHANGE_STATUS() - { - /* PRECONDITION */ - if (WebViewCommon.IsTVProfile() || WebViewCommon.IsWearableProfile()) - { - Assert.Pass("Context menu is not supported on both TV and Wearable profile"); - } - - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.ContextMenuHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - WebView.ContextMenuCustomize contextMenuCustomize = (ContextMenu menu) => - { - ManualTest.Confirm(); - }; - _webView.SetContextMenuCustomizeDelegate(contextMenuCustomize); - - await ManualTest.WaitForConfirm(); - - /* POSTCONDITION */ - _webView.SetContextMenuCustomizeDelegate(null); - } - - [Test] - [Category("P1")] - [Description("Test: Checks event that occurs when customized item is selected.")] - [Property("SPEC", "Tizen.WebView.WebView.ContextMenuItemSelected E")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - [Precondition(1, "Context menu is not supported on both TV and Wearable profile. So the testcase will be passed automatically after run if the profile is TV or Wearable.")] - [Step(1, "Click run TC.")] - [Step(2, "Long press image of test page.")] - [Step(3, "Select item of the context menu.")] - [Step(4, "If there is no exception, test will be automatically passed.")] - [Postcondition(1, "NA")] - public async Task ContextMenuItemSelected_CHECK_EVENT() - { - /* PRECONDITION */ - if (WebViewCommon.IsTVProfile() || WebViewCommon.IsWearableProfile()) - { - Assert.Pass("Context menu is not supported on both TV and Wearable profile"); - } - - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.ContextMenuHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - WebView.ContextMenuCustomize contextMenuCustomize = (ContextMenu menu) => - { - var count = menu.ItemCount; - for (int i = 0; i < count; i++) - { - menu.RemoveItem(menu.GetItemAtIndex(0)); - } - - var newItem = menu.AppendItem(WebViewCommon.CustomItemTag, "Select me!!!", null, true); - if (newItem == null) - { - ManualTest.ConfirmFail("Failed to append item"); - } - }; - _webView.SetContextMenuCustomizeDelegate(contextMenuCustomize); - - /* TEST CODE */ - EventHandler onContextMenuItemSelected = (s, e) => - { - ManualTest.Confirm(); - }; - _webView.ContextMenuItemSelected += onContextMenuItemSelected; - - await ManualTest.WaitForConfirm(); - - /* POSTCONDITION */ - _webView.SetContextMenuCustomizeDelegate(null); - _webView.ContextMenuItemSelected -= onContextMenuItemSelected; - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/support/WebViewCommon.cs b/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/support/WebViewCommon.cs deleted file mode 100755 index 71efc94..0000000 --- a/tct-suite-vs/Tizen.WebView.Manual.Tests/testcase/support/WebViewCommon.cs +++ /dev/null @@ -1,112 +0,0 @@ -using ElmSharp; -using Tizen.WebView; -using Tizen.System; - -namespace Tizen.WebView.Manual.Tests -{ - internal static class WebViewCommon - { - private static Window _window; - private static Box _box; - private static WebView _webView; - private static string _profile; - - public const string ContextMenuHtml = "file:///opt/usr/home/owner/share/res/context_menu.html"; - public const ContextMenuItemTag CustomItemTag = ContextMenuItemTag.BaseApplicationTag + 1; - - public static WebView GetWebViewPage() - { - if (_window == null) - { - Elementary.Initialize(); - - _window = new Window("Tizen.WebView.Test"); - _window.KeyGrab(EvasKeyEventArgs.PlatformBackButtonName, false); - _window.KeyUp += (s, e) => - { - if (e.KeyName == EvasKeyEventArgs.PlatformBackButtonName) - RemoveWebViewPage(); - - }; - _window.Show(); - - Background background = new Background(_window) - { - AlignmentX = -1, - AlignmentY = -1, - WeightX = 1, - WeightY = 1, - Color = Color.White - }; - background.Show(); - _window.AddResizeObject(background); - - Conformant conformant = new Conformant(_window); - conformant.Show(); - - _box = new Box(_window) - { - AlignmentX = -1, - AlignmentY = -1, - WeightX = 1, - WeightY = 1 - }; - _box.Show(); - conformant.SetContent(_box); - } - else - { - _window.Show(); - } - - _webView = new WebView(_window) - { - AlignmentX = -1, - AlignmentY = -1, - WeightX = 1, - WeightY = 1 - }; - _webView.Show(); - - _box.PackEnd(_webView); - - return _webView; - } - - public static void RemoveWebViewPage() - { - if (_webView != null) - { - _box.UnPack(_webView); - _webView.Unrealize(); - _webView = null; - } - _window.Hide(); - } - - public static bool IsTVProfile() - { - return string.Compare("tv", GetProfile()) == 0 ? true : false; - } - - public static bool IsMobileProfile() - { - return string.Compare("mobile", GetProfile()) == 0 ? true : false; - } - - public static bool IsWearableProfile() - { - return string.Compare("wearable", GetProfile()) == 0 ? true : false; - } - - private static string GetProfile() - { - if (string.IsNullOrEmpty(_profile)) - { - Information.TryGetValue("http://tizen.org/feature/profile", out _profile); - } - - return _profile; - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Manual.Tests/tizen-manifest.xml b/tct-suite-vs/Tizen.WebView.Manual.Tests/tizen-manifest.xml deleted file mode 100755 index 1a906e9..0000000 --- a/tct-suite-vs/Tizen.WebView.Manual.Tests/tizen-manifest.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - Tizen.WebView.Manual.Tests.png - - - - http://tizen.org/privilege/appmanager.launch - - diff --git a/tct-suite-vs/Tizen.WebView.Tests/Program.cs b/tct-suite-vs/Tizen.WebView.Tests/Program.cs deleted file mode 100755 index f6df9ae..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/Program.cs +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using System; -using NUnitLite.TUnit; -using AutoTemplate; -using System.Collections.Generic; -using Tizen.WebView; - -namespace XamarinForTizen.Tizen -{ - - class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication - { - private static App _app; - private static string[] _chromiumArgv = { "--renderer-process-limit=1" }; - - protected override void OnCreate() - { - base.OnCreate(); - - Console.WriteLine("TCT : OnCreate()"); - _app = new App(); - LoadApplication(_app); - - TRunner t = new TRunner(); - t.LoadTestsuite(); - t.Execute(); - } - - public static App getApp() - { - return _app; - } - static void Main(string[] args) - { - Console.WriteLine("TCT : Main()"); - var app = new Program(); - global::Xamarin.Forms.Forms.Init(app); - Chromium.Initialize(); - List argv = new List(_chromiumArgv); - argv.Insert(0, app.Name); - Chromium.SetArguments(argv.ToArray()); - app.Run(args); - Chromium.Shutdown(); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/Tizen.WebView.Tests.csproj b/tct-suite-vs/Tizen.WebView.Tests/Tizen.WebView.Tests.csproj deleted file mode 100755 index fb2e582..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/Tizen.WebView.Tests.csproj +++ /dev/null @@ -1,40 +0,0 @@ - - - - - Exe - net6.0-tizen8.0 - True - Tizen - - - - - true - - - - portable - - - None - - - - - - - - - - - Runtime - - - - - - - - - diff --git a/tct-suite-vs/Tizen.WebView.Tests/Tizen.WebView.Tests.sln b/tct-suite-vs/Tizen.WebView.Tests/Tizen.WebView.Tests.sln deleted file mode 100755 index c687114..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/Tizen.WebView.Tests.sln +++ /dev/null @@ -1,78 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26730.15 -MinimumVisualStudioVersion = 15.0.26124.0 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.WebView.Tests", "Tizen.WebView.Tests.csproj", "{D92BEEAC-3B2A-45F8-8C53-53B92550404A}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunit.framework", "..\nunit.framework\nunit.framework.csproj", "{B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunitlite", "..\nunitlite\nunitlite.csproj", "{FDB8025A-C029-461F-895E-287B4C65939B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoTemplate", "..\Template\AutoTemplate\AutoTemplate.csproj", "{B11ABB0C-C3C1-4B5C-8251-A15628A775F3}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x64.ActiveCfg = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x64.Build.0 = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x86.ActiveCfg = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x86.Build.0 = Debug|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|Any CPU.Build.0 = Release|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x64.ActiveCfg = Release|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x64.Build.0 = Release|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x86.ActiveCfg = Release|Any CPU - {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x86.Build.0 = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x64.ActiveCfg = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x64.Build.0 = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x86.ActiveCfg = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x86.Build.0 = Debug|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|Any CPU.Build.0 = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x64.ActiveCfg = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x64.Build.0 = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x86.ActiveCfg = Release|Any CPU - {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x86.Build.0 = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x64.ActiveCfg = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x64.Build.0 = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x86.ActiveCfg = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x86.Build.0 = Debug|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|Any CPU.Build.0 = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x64.ActiveCfg = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x64.Build.0 = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x86.ActiveCfg = Release|Any CPU - {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x86.Build.0 = Release|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Debug|x64.ActiveCfg = Debug|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Debug|x64.Build.0 = Debug|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Debug|x86.ActiveCfg = Debug|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Debug|x86.Build.0 = Debug|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Release|Any CPU.Build.0 = Release|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Release|x64.ActiveCfg = Release|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Release|x64.Build.0 = Release|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Release|x86.ActiveCfg = Release|Any CPU - {B11ABB0C-C3C1-4B5C-8251-A15628A775F3}.Release|x86.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {ED382B91-9930-40B6-B3D7-362304C78680} - EndGlobalSection -EndGlobal diff --git a/tct-suite-vs/Tizen.WebView.Tests/res/add_js_interface_sample.html b/tct-suite-vs/Tizen.WebView.Tests/res/add_js_interface_sample.html deleted file mode 100755 index e175d42..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/res/add_js_interface_sample.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - Testing Sample Page for Add JavaScript Interface - - - -

Sample HTML for Add JavaScript Interface

-
-

- - diff --git a/tct-suite-vs/Tizen.WebView.Tests/res/form_submit_sample.html b/tct-suite-vs/Tizen.WebView.Tests/res/form_submit_sample.html deleted file mode 100755 index e385e28..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/res/form_submit_sample.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - Testing Sample Page - - - -
- - -
- - diff --git a/tct-suite-vs/Tizen.WebView.Tests/res/link_click_sample.html b/tct-suite-vs/Tizen.WebView.Tests/res/link_click_sample.html deleted file mode 100755 index 93eae9c..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/res/link_click_sample.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - Testing Sample Page - - - -

Sample HTML

-

This is sample html page to be used in test suite when loading of a page is required.

- link content - - diff --git a/tct-suite-vs/Tizen.WebView.Tests/res/sample.html b/tct-suite-vs/Tizen.WebView.Tests/res/sample.html deleted file mode 100755 index abdaacd..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/res/sample.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - Testing Sample Page - - -

Sample HTML

-

This is sample html page to be used in test suite when loading of a page is required.

-

test content

- - diff --git a/tct-suite-vs/Tizen.WebView.Tests/res/sample_1.html b/tct-suite-vs/Tizen.WebView.Tests/res/sample_1.html deleted file mode 100755 index d407ab1..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/res/sample_1.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - Testing Sample Page 1 - - -

Sample HTML 1

- - diff --git a/tct-suite-vs/Tizen.WebView.Tests/res/sample_2.html b/tct-suite-vs/Tizen.WebView.Tests/res/sample_2.html deleted file mode 100755 index c11b4ba..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/res/sample_2.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - Testing Sample Page 2 - - -

Sample HTML 2

- - diff --git a/tct-suite-vs/Tizen.WebView.Tests/res/window_open_sample.html b/tct-suite-vs/Tizen.WebView.Tests/res/window_open_sample.html deleted file mode 100755 index f78ba57..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/res/window_open_sample.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - Testing Sample Page - - - -

Sample HTML

-

This is sample html page to be used in test suite when loading of a page is required.

-

test content

- - diff --git a/tct-suite-vs/Tizen.WebView.Tests/shared/res/Tizen.WebView.Tests.png b/tct-suite-vs/Tizen.WebView.Tests/shared/res/Tizen.WebView.Tests.png deleted file mode 100755 index 9765b1bda7e5bddf0925555ab204b887a873bf24..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57662 zcmdU&2Y{Bv)wXAQhoyJerGpfaq9DE5J1S~atXN|Avn3kQ*!`l$D2ie%v3Ct9iU9$! zARxVWkS4wCvh_dLJny{>uV6_upZ~zTGjrz5nKS2}_RLfEz7vl>A}6zMrgJXms3ZHI zY~lal(^KvD>g2b^T99$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f`F% zHdQ=f(Z}d*jOItM8iUb8Z}}A?4*G$d%7-CwdC7^%U_{O~AjjFw?|;~{!}Bd4Aemyn zzb!scrN07Q`iG)_lb}jLQd`!VcPK4UMIq`6?FY>(F@k_}g5RW$5yke+hYkW}9Kd?XEQzUukRQ0^7NMWv|@x zwG+T&6#DSD0;1`&kBdyQ56LC)MX~>1olS!p$pSkJiQ^PTspwbpG9e!D!m!-zBA%$k kZ}gYfNaCF}xV$|1>H6z0+kD tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - var backforwardlist = _webView.GetBackForwardList(); - Assert.IsInstanceOf(backforwardlist, "Get BackForwardList method failed"); - - Assert.AreEqual(1, backforwardlist.Count, "Fail to get BackForwardList Count"); - } - - [Test] - [Category("P1")] - [Description("Gets the Current Item of Back Forward List")] - [Property("SPEC", "Tizen.WebView.BackForwardList.CurrentItem A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task CurrentItem_READ_ONLY() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - var backforwardlist = _webView.GetBackForwardList(); - Assert.IsInstanceOf(backforwardlist, "GetBackForwardList method failed"); - - var currentItem = backforwardlist.CurrentItem; - Assert.IsInstanceOf(currentItem, "Get Current BackForwardListItem property failed"); - Assert.AreEqual(WebViewCommon.SampleHtml, currentItem.Url, "URL should be same"); - } - - [Test] - [Category("P1")] - [Description("Gets Previous Item of Back Forward List")] - [Property("SPEC", "Tizen.WebView.BackForwardList.PreviousItem A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task PreviousItem_READ_ONLY() - { - /* PRECONDITION */ - TaskCompletionSource tcsFisrt = new TaskCompletionSource(false); - EventHandler onLoadFinishedFirst = (s, e) => { tcsFisrt.TrySetResult(true); }; - EventHandler onLoadErrorFirst = (s, e) => { tcsFisrt.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedFirst; - _webView.LoadError += onLoadErrorFirst; - - _webView.LoadUrl(WebViewCommon.SampleHtml1); - var result = await tcsFisrt.Task; - - _webView.LoadFinished -= onLoadFinishedFirst; - _webView.LoadError -= onLoadErrorFirst; - - Assert.IsTrue(result, "LoadUrl method failed for the first page"); - - TaskCompletionSource tcsSecond = new TaskCompletionSource(false); - EventHandler onLoadFinishedSecond = (s, e) => { tcsSecond.TrySetResult(true); }; - EventHandler onLoadErrorSecond = (s, e) => { tcsSecond.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedSecond; - _webView.LoadError += onLoadErrorSecond; - - _webView.LoadUrl(WebViewCommon.SampleHtml2); - result = await tcsSecond.Task; - - _webView.LoadFinished -= onLoadFinishedSecond; - _webView.LoadError -= onLoadErrorSecond; - - Assert.IsTrue(result, "LoadUrl method failed for the second page"); - - /* TEST CODE */ - var backforwardlist = _webView.GetBackForwardList(); - Assert.IsInstanceOf(backforwardlist, "GetBackForwardList method failed"); - - var previousItem = backforwardlist.PreviousItem; - Assert.IsInstanceOf(previousItem, "Get Previous BackForwardList Item property failed"); - Assert.AreEqual(WebViewCommon.SampleHtml1, previousItem.Url, "URL should be same with the first page"); - } - - [Test] - [Category("P1")] - [Description("Gets the copy of Back Items")] - [Property("SPEC", "Tizen.WebView.BackForwardList.BackItems M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task BackItems_RETURN_VALUE() - { - /* PRECONDITION */ - TaskCompletionSource tcsFisrt = new TaskCompletionSource(false); - EventHandler onLoadFinishedFirst = (s, e) => { tcsFisrt.TrySetResult(true); }; - EventHandler onLoadErrorFirst = (s, e) => { tcsFisrt.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedFirst; - _webView.LoadError += onLoadErrorFirst; - - _webView.LoadUrl(WebViewCommon.SampleHtml1); - var result = await tcsFisrt.Task; - - _webView.LoadFinished -= onLoadFinishedFirst; - _webView.LoadError -= onLoadErrorFirst; - - Assert.IsTrue(result, "LoadUrl method failed for the first page"); - - TaskCompletionSource tcsSecond = new TaskCompletionSource(false); - EventHandler onLoadFinishedSecond = (s, e) => { tcsSecond.TrySetResult(true); }; - EventHandler onLoadErrorSecond = (s, e) => { tcsSecond.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedSecond; - _webView.LoadError += onLoadErrorSecond; - - _webView.LoadUrl(WebViewCommon.SampleHtml2); - result = await tcsSecond.Task; - - _webView.LoadFinished -= onLoadFinishedSecond; - _webView.LoadError -= onLoadErrorSecond; - - Assert.IsTrue(result, "LoadUrl method failed for the second page"); - - /* TEST CODE */ - var backforwardlist = _webView.GetBackForwardList(); - Assert.IsInstanceOf(backforwardlist, "GetBackForwardList method failed"); - - var backItems = backforwardlist.BackItems(-1); - Assert.AreEqual(1, backItems.Count, "The count of backItems should be 1"); - } - - [Test] - [Category("P1")] - [Description("Gets the copy of Forward Items")] - [Property("SPEC", "Tizen.WebView.BackForwardList.ForwardItems M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task ForwardItems_RETURN_VALUE() - { - /* PRECONDITION */ - TaskCompletionSource tcsFisrt = new TaskCompletionSource(false); - EventHandler onLoadFinishedFirst = (s, e) => { tcsFisrt.TrySetResult(true); }; - EventHandler onLoadErrorFirst = (s, e) => { tcsFisrt.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedFirst; - _webView.LoadError += onLoadErrorFirst; - - _webView.LoadUrl(WebViewCommon.SampleHtml1); - var result = await tcsFisrt.Task; - - _webView.LoadFinished -= onLoadFinishedFirst; - _webView.LoadError -= onLoadErrorFirst; - - Assert.IsTrue(result, "LoadUrl method failed for the first page"); - - TaskCompletionSource tcsSecond = new TaskCompletionSource(false); - EventHandler onLoadFinishedSecond = (s, e) => { tcsSecond.TrySetResult(true); }; - EventHandler onLoadErrorSecond = (s, e) => { tcsSecond.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedSecond; - _webView.LoadError += onLoadErrorSecond; - - _webView.LoadUrl(WebViewCommon.SampleHtml2); - result = await tcsSecond.Task; - - _webView.LoadFinished -= onLoadFinishedSecond; - _webView.LoadError -= onLoadErrorSecond; - - Assert.IsTrue(result, "LoadUrl method failed for the second page"); - - TaskCompletionSource tcsGoBack = new TaskCompletionSource(false); - EventHandler onLoadFinishedGoBack = (s, e) => { tcsGoBack.TrySetResult(true); }; - EventHandler onLoadErrorGoBack = (s, e) => { tcsGoBack.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedGoBack; - _webView.LoadError += onLoadErrorGoBack; - - _webView.GoBack(); - result = await tcsGoBack.Task; - - _webView.LoadFinished -= onLoadFinishedGoBack; - _webView.LoadError -= onLoadErrorGoBack; - - Assert.IsTrue(result, "GoBack method failed"); - - /* TEST CODE */ - var backforwardlist = _webView.GetBackForwardList(); - Assert.IsInstanceOf(backforwardlist, "GetBackForwardList method failed"); - - var forwardItems = backforwardlist.ForwardItems(-1); - Assert.AreEqual(1, forwardItems.Count, "The count of forwardItems should be 1"); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSBackForwardListItem.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSBackForwardListItem.cs deleted file mode 100755 index 608bb57..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSBackForwardListItem.cs +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using System.Threading.Tasks; - -namespace Tizen.WebView.Tests -{ - - [TestFixture] - [Description("Tizen.WebView.BackForwardListItem Tests")] - class BackForwardListItemTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.BackForwardListItem Tests"); - _webView = new WebView(WebViewCommon.GetMainWindow()); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for Tizen.WebView.BackForwardListItem Tests"); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Gets the url of Current Back Forward List Item")] - [Property("SPEC", "Tizen.WebView.BackForwardListItem.Url A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task Url_READ_ONLY() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - var backforwardlist = _webView.GetBackForwardList(); - Assert.IsInstanceOf(backforwardlist, "GetBackForwardList method failed"); - - var currentItem = backforwardlist.CurrentItem; - Assert.IsInstanceOf(currentItem, "Get Current BackForwardListItem property failed"); - Assert.AreEqual(WebViewCommon.SampleHtml, currentItem.Url, "URL should be same"); - } - - [Test] - [Category("P1")] - [Description("Gets the original url of Current Back Forward List Item")] - [Property("SPEC", "Tizen.WebView.BackForwardListItem.OriginalUrl A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task OriginalUrl_READ_ONLY() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - var backforwardlist = _webView.GetBackForwardList(); - Assert.IsInstanceOf(backforwardlist, "GetBackForwardList method failed"); - - var currentItem = backforwardlist.CurrentItem; - Assert.IsInstanceOf(currentItem, "Get Current BackForwardListItem property failed"); - Assert.AreEqual(WebViewCommon.SampleHtml, currentItem.OriginalUrl, "Original URL should be same"); - } - - [Test] - [Category("P1")] - [Description("Gets the Title of Current Back Forward List Item")] - [Property("SPEC", "Tizen.WebView.BackForwardListItem.Title A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task Title_READ_ONLY() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - var backforwardlist = _webView.GetBackForwardList(); - Assert.IsInstanceOf(backforwardlist, "GetBackForwardList method failed"); - - var currentItem = backforwardlist.CurrentItem; - Assert.IsInstanceOf(currentItem, "Get Current BackForwardListItem property failed"); - Assert.AreEqual(WebViewCommon.SampleHtmlTitle, currentItem.Title, "Title should be same"); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSChromium.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSChromium.cs deleted file mode 100755 index e1229a0..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSChromium.cs +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using NUnit.Framework; -using NUnit.Framework.TUnit; - -namespace Tizen.WebView.Tests -{ - - [TestFixture] - [Description("Tizen.WebView.Chromium Tests")] - public class ChromiumTests { - private static int _init = 0; - private static int _shutdown = 0; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.Chromium Tests"); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for Tizen.WebView.Chromium Tests"); - } - - [Test] - [Category("P1")] - [Description("Initializes Chromium's instance")] - [Property("SPEC", "Tizen.WebView.Chromium.Initialize M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void Initialize_RETURN_VALUE() - { - _init = Chromium.Initialize(); - Assert.IsTrue(_init > 0, "Initialize method failed, reference count: " + _init); - - _shutdown = Chromium.Shutdown(); - Assert.AreEqual(_shutdown, _init - 1, "Shutdown method failed, Initialize: " + _init + " Shutdown: " + _shutdown); - } - - [Test] - [Category("P1")] - [Description("Shutdown Chromium's instance")] - [Property("SPEC", "Tizen.WebView.Chromium.Shutdown M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void Shutdown_RETURN_VALUE() - { - /* TEST CODE */ - _init = Chromium.Initialize(); - Assert.IsTrue(_init > 0, "Initialize method failed, reference count: " + _init); - - _shutdown = Chromium.Shutdown(); - Assert.AreEqual(_shutdown, _init - 1, "Shutdown method failed, Initialize: " + _init + " Shutdown: " + _shutdown); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSContext.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSContext.cs deleted file mode 100755 index 274607a..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSContext.cs +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; - -namespace Tizen.WebView.Tests -{ - - [TestFixture] - [Description("Tizen.WebView.Context Tests")] - public class ContextTests { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.Context Tests"); - _webView = new WebView(WebViewCommon.GetMainWindow()); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for Tizen.WebView.Context Tests"); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Checks default cache model for the context")] - [Property("SPEC", "Tizen.WebView.Context.CacheModel A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PDV")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void CacheModel_CHECK_DEFAULT() - { - /* TEST CODE */ - var context = _webView.GetContext(); - Assert.IsInstanceOf(context, "GetContext method failed"); - - Assert.IsInstanceOf(context.CacheModel); - Assert.AreEqual((int)CacheModel.DocumentViewer, (int)context.CacheModel, "Default cache model should be DocumentViewer"); - } - - [Test] - [Category("P1")] - [Description("Gets and sets cache model for the context")] - [Property("SPEC", "Tizen.WebView.Context.CacheModel A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW, PRE")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void CacheModel_GET_SET_ALL() - { - /* TEST CODE */ - var context = _webView.GetContext(); - Assert.IsInstanceOf(context, "GetContext method failed"); - - context.CacheModel = CacheModel.DocumentViewer; - Assert.IsInstanceOf(context.CacheModel); - Assert.AreEqual((int)CacheModel.DocumentViewer, (int)context.CacheModel, "CacheModel should be DocumentViewer"); - - context.CacheModel = CacheModel.DocumentBrowser; - Assert.IsInstanceOf(context.CacheModel); - Assert.AreEqual((int)CacheModel.DocumentBrowser, (int)context.CacheModel, "CacheModel should be DocumentBrowser"); - - context.CacheModel = CacheModel.PrimaryWebBrowser; - Assert.IsInstanceOf(context.CacheModel); - Assert.AreEqual((int)CacheModel.PrimaryWebBrowser, (int)context.CacheModel, "CacheModel should be PrimaryWebBrowser"); - } - - [Test] - [Category("P1")] - [Description("Gets cookie manager instance for the context")] - [Property("SPEC", "Tizen.WebView.Context.GetCookieManager M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void GetCookieManager_RETURN_VALUE() - { - /* TEST CODE */ - var context = _webView.GetContext(); - Assert.IsInstanceOf(context, "GetContext method failed"); - - var cookieManager = context.GetCookieManager(); - Assert.IsInstanceOf(cookieManager, "GetCookieManager method failed"); - } - - [Test] - [Category("P1")] - [Description("Clears the resource cache for the context")] - [Property("SPEC", "Tizen.WebView.Context.ClearResourceCache M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public void ClearResourceCache_CHANGE_STATUS() - { - /* TEST CODE */ - var context = _webView.GetContext(); - Assert.IsInstanceOf(context, "GetContext method failed"); - - try - { - context.ClearResourceCache(); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSCookieManager.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSCookieManager.cs deleted file mode 100755 index 1a4e8c5..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSCookieManager.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using System.Threading.Tasks; - -namespace Tizen.WebView.Tests -{ - [TestFixture] - [Description("Tizen.WebView.CookieManager Tests")] - public class CookieManagerTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.CookieManager Tests"); - _webView = new WebView(WebViewCommon.GetMainWindow()); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for Tizen.WebView.CookieManager Tests"); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Sets the cookie acceptance policy")] - [Property("SPEC", "Tizen.WebView.CookieManager.SetCookieAcceptPolicy M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MAE")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void SetCookieAcceptPolicy_ENUM_ALL() - { - /* TEST CODE */ - var cookieManager = _webView.GetContext().GetCookieManager(); - Assert.IsNotNull(cookieManager, "GetCookieManager returns NULL"); - Assert.IsInstanceOf(cookieManager, "GetCookieManager method failed"); - - // TODO: GetCookieAcceptPolicyAsync is not implemented yet. - // Need verification after we've implemented it. - try - { - cookieManager.SetCookieAcceptPolicy(CookieAcceptPolicy.Always); - - cookieManager.SetCookieAcceptPolicy(CookieAcceptPolicy.Never); - - cookieManager.SetCookieAcceptPolicy(CookieAcceptPolicy.NoThirdParty); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - - [Test] - [Category("P1")] - [Description("Deletes all the cookies of a manager")] - [Property("SPEC", "Tizen.WebView.CookieManager.ClearCookies M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task ClearCookies_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.TestUrl); - await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(tcs.Task.Result, "LoadUrl method failed"); - - /* TEST CODE */ - var cookieManager = _webView.GetContext().GetCookieManager(); - Assert.IsNotNull(cookieManager, "GetCookieManager returns NULL"); - Assert.IsInstanceOf(cookieManager, "GetCookieManager method failed"); - - try - { - cookieManager.ClearCookies(); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - - [Test] - [Category("P1")] - [Description("Sets the storage where non-session cookies are stored persistently")] - [Property("SPEC", "Tizen.WebView.CookieManager.SetPersistentStorage M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MAE")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void SetPersistentStorage_ENUM_ALL() - { - /* TEST CODE */ - var cookieManager = _webView.GetContext().GetCookieManager(); - Assert.IsInstanceOf(cookieManager, "GetCookieManager method failed"); - string path = Applications.Application.Current.DirectoryInfo.Data + "mycookiestoragedir"; - - try - { - cookieManager.SetPersistentStorage(path, CookiePersistentStorage.Text); - - cookieManager.SetPersistentStorage(path, CookiePersistentStorage.SqlLite); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSJavaScriptMessage.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSJavaScriptMessage.cs deleted file mode 100755 index 6fb14cc..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSJavaScriptMessage.cs +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using System.Threading.Tasks; - -namespace Tizen.WebView.Tests -{ - - [TestFixture] - [Description("Tizen.WebView.JavaScriptMessage Tests")] - public class JavaScriptMessageTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.JavaScriptMessage Tests"); - _webView = new WebView(WebViewCommon.GetMainWindow()); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for Tizen.WebView.JavaScriptMessage Tests"); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Gets the name of JavaScript message")] - [Property("SPEC", "Tizen.WebView.JavaScriptMessage.Name A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Name_READ_ONLY() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - TaskCompletionSource tcsForCallback = new TaskCompletionSource(false); - JavaScriptMessageHandler handler = (message) => - { - if (message.Name is string && message.Name.Equals("MyJavaScriptInterfaceForName")) - { - tcsForCallback.TrySetResult(true); - } - tcsForCallback.TrySetResult(false); - }; - _webView.AddJavaScriptMessageHandler("MyJavaScriptInterfaceForName", handler); - - _webView.LoadUrl(WebViewCommon.AddJavaScriptInterfaceSampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - _webView.Eval("callForName();"); - result = await tcsForCallback.Task; - - Assert.IsTrue(result, "JavaScript handler should be invoked with valid name"); - } - - [Test] - [Category("P1")] - [Description("Gets the body of JavaScript message as integer type")] - [Property("SPEC", "Tizen.WebView.JavaScriptMessage.GetBodyAsInteger M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task GetBodyAsInteger_RETURN_VALUE() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - TaskCompletionSource tcsForCallback = new TaskCompletionSource(false); - JavaScriptMessageHandler handler = (message) => - { - if (message.Name.Equals("MyJavaScriptInterfaceWithInteger")) - { - var body = message.GetBodyAsInteger(); - if (body.GetType() == typeof(int) && body == 10) - { - tcsForCallback.TrySetResult(true); - } - } - tcsForCallback.TrySetResult(false); - }; - _webView.AddJavaScriptMessageHandler("MyJavaScriptInterfaceWithInteger", handler); - - _webView.LoadUrl(WebViewCommon.AddJavaScriptInterfaceSampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - _webView.Eval("callWithInteger();"); - result = await tcsForCallback.Task; - - Assert.IsTrue(result, "GetBodyAsInteger should return valid body value"); - } - - [Test] - [Category("P1")] - [Description("Gets the body of JavaScript message as double type")] - [Property("SPEC", "Tizen.WebView.JavaScriptMessage.GetBodyAsDouble M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task GetBodyAsDouble_RETURN_VALUE() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - TaskCompletionSource tcsForCallback = new TaskCompletionSource(false); - JavaScriptMessageHandler handler = (message) => - { - if (message.Name.Equals("MyJavaScriptInterfaceWithDouble")) - { - var body = message.GetBodyAsDouble(); - if (body.GetType() == typeof(double) && body == 0.1) - { - tcsForCallback.TrySetResult(true); - } - } - tcsForCallback.TrySetResult(false); - }; - _webView.AddJavaScriptMessageHandler("MyJavaScriptInterfaceWithDouble", handler); - - _webView.LoadUrl(WebViewCommon.AddJavaScriptInterfaceSampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - _webView.Eval("callWithDouble();"); - result = await tcsForCallback.Task; - - Assert.IsTrue(result, "GetBodyAsDouble should return valid body value"); - } - - [Test] - [Category("P1")] - [Description("Gets the body of JavaScript message as boolean type")] - [Property("SPEC", "Tizen.WebView.JavaScriptMessage.GetBodyAsBoolean M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task GetBodyAsBoolean_RETURN_VALUE() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - TaskCompletionSource tcsForCallback = new TaskCompletionSource(false); - JavaScriptMessageHandler handler = (message) => - { - if (message.Name.Equals("MyJavaScriptInterfaceWithBoolean")) - { - var body = message.GetBodyAsBoolean(); - if (body.GetType() == typeof(bool) && body == true) - { - tcsForCallback.TrySetResult(true); - } - } - tcsForCallback.TrySetResult(false); - }; - _webView.AddJavaScriptMessageHandler("MyJavaScriptInterfaceWithBoolean", handler); - - _webView.LoadUrl(WebViewCommon.AddJavaScriptInterfaceSampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - _webView.Eval("callWithBoolean();"); - result = await tcsForCallback.Task; - - Assert.IsTrue(result, "GetBodyAsBoolean should return valid body value"); - } - - [Test] - [Category("P1")] - [Description("Gets the body of JavaScript message as string type")] - [Property("SPEC", "Tizen.WebView.JavaScriptMessage.GetBodyAsString M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task GetBodyAsString_RETURN_VALUE() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - TaskCompletionSource tcsForCallback = new TaskCompletionSource(false); - JavaScriptMessageHandler handler = (message) => - { - if (message.Name.Equals("MyJavaScriptInterfaceWithString")) - { - var body = message.GetBodyAsString(); - if (body.GetType() == typeof(string) && body.Equals("Test message")) - { - tcsForCallback.TrySetResult(true); - } - } - tcsForCallback.TrySetResult(false); - }; - _webView.AddJavaScriptMessageHandler("MyJavaScriptInterfaceWithString", handler); - - _webView.LoadUrl(WebViewCommon.AddJavaScriptInterfaceSampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - _webView.Eval("callWithString();"); - result = await tcsForCallback.Task; - - Assert.IsTrue(result, "GetBodyAsString should return valid body value"); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSNavigationPolicyEventArgs.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSNavigationPolicyEventArgs.cs deleted file mode 100755 index d14e97c..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSNavigationPolicyEventArgs.cs +++ /dev/null @@ -1,383 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; - -namespace Tizen.WebView.Tests -{ - - [TestFixture] - [Description("Tizen.WebView.NavigationPolicyEventArgs Tests")] - class NavigationPolicyEventArgsTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.NavigationPolicyEventArgs Tests"); - _webView = new WebView(WebViewCommon.GetMainWindow()); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for Tizen.WebView.NavigationPolicyEventArgs Tests"); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Gets the Cookie of Navigation Policy event")] - [Property("SPEC", "Tizen.WebView.NavigationPolicyEventArgs.Cookie A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Cookie_READ_ONLY() - { - /* TEST CODE */ - string cookie = string.Empty; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onNavigationPolicyDecide = (s, e) => - { - cookie = e.Cookie; - cookie = cookie.Replace(WebViewCommon.HeaderTerminator, ""); - e.Use(); - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - var httpHeaders = new Dictionary(); - httpHeaders.Add("Cookie", WebViewCommon.TestCookie); - _webView.SetUrlRequest(WebViewCommon.TestUrl, HttpMethod.Get, httpHeaders, null); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "LoadUrl method failed"); - Assert.AreEqual(WebViewCommon.TestCookie, cookie, "Cookie should be valid string object"); - } - - [Test] - [Category("P1")] - [Description("Checks whether the NavigationType of Navigation Policy event is NavigationType.Other")] - [Property("SPEC", "Tizen.WebView.NavigationPolicyEventArgs.NavigationType A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRE")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task NavigationType_GET_OTHER() - { - /* TEST CODE */ - NavigationType type = NavigationType.BackForward; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onNavigationPolicyDecide = (s, e) => - { - type = e.NavigationType; - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "LoadUrl method failed"); - Assert.AreEqual(NavigationType.Other, type, "NavigationType should be NavigationType.Other"); - } - - [Test] - [Category("P1")] - [Description("Checks whether the NavigationType of Navigation Policy event is NavigationType.BackForward")] - [Property("SPEC", "Tizen.WebView.NavigationPolicyEventArgs.NavigationType A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRE")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task NavigationType_GET_BACKFOWARD() - { - /* PRECONDITION */ - TaskCompletionSource tcsFisrt = new TaskCompletionSource(false); - EventHandler onLoadFinishedFirst = (s, e) => { tcsFisrt.TrySetResult(true); }; - EventHandler onLoadErrorFirst = (s, e) => { tcsFisrt.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedFirst; - _webView.LoadError += onLoadErrorFirst; - - _webView.LoadUrl(WebViewCommon.SampleHtml1); - var result = await tcsFisrt.Task; - - _webView.LoadFinished -= onLoadFinishedFirst; - _webView.LoadError -= onLoadErrorFirst; - - Assert.IsTrue(result, "LoadUrl method failed for the first page"); - - TaskCompletionSource tcsSecond = new TaskCompletionSource(false); - EventHandler onLoadFinishedSecond = (s, e) => { tcsSecond.TrySetResult(true); }; - EventHandler onLoadErrorSecond = (s, e) => { tcsSecond.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedSecond; - _webView.LoadError += onLoadErrorSecond; - - _webView.LoadUrl(WebViewCommon.SampleHtml2); - result = await tcsSecond.Task; - - _webView.LoadFinished -= onLoadFinishedSecond; - _webView.LoadError -= onLoadErrorSecond; - - Assert.IsTrue(result, "LoadUrl method failed for the second page"); - - /* TEST CODE */ - NavigationType type = NavigationType.Other; - TaskCompletionSource tcsGoBack = new TaskCompletionSource(false); - EventHandler onLoadFinishedGoBack = (s, e) => { tcsGoBack.TrySetResult(true); }; - EventHandler onLoadErrorGoBack = (s, e) => { tcsGoBack.TrySetResult(false); }; - EventHandler onNavigationPolicyDecide = (s, e) => - { - type = e.NavigationType; - }; - - _webView.LoadFinished += onLoadFinishedGoBack; - _webView.LoadError += onLoadErrorGoBack; - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - _webView.GoBack(); - result = await tcsGoBack.Task; - - _webView.LoadFinished -= onLoadFinishedGoBack; - _webView.LoadError -= onLoadErrorGoBack; - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "GoBack method failed"); - Assert.AreEqual(NavigationType.BackForward, type, "NavigationType should be NavigationType.BackForward"); - } - - [Test] - [Category("P1")] - [Description("Checks whether the NavigationType of Navigation Policy event is NavigationType.Reload")] - [Property("SPEC", "Tizen.WebView.NavigationPolicyEventArgs.NavigationType A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRE")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task NavigationType_GET_RELOAD() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml1); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - NavigationType type = NavigationType.Other; - TaskCompletionSource tcsReload = new TaskCompletionSource(false); - EventHandler onLoadFinishedReload = (s, e) => { tcsReload.TrySetResult(true); }; - EventHandler onLoadErrorReload = (s, e) => { tcsReload.TrySetResult(false); }; - EventHandler onNavigationPolicyDecide = (s, e) => - { - type = e.NavigationType; - }; - - _webView.LoadFinished += onLoadFinishedReload; - _webView.LoadError += onLoadErrorReload; - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - _webView.Reload(); - result = await tcsReload.Task; - - _webView.LoadFinished -= onLoadFinishedReload; - _webView.LoadError -= onLoadErrorReload; - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "Reload method failed"); - Assert.AreEqual(NavigationType.Reload, type, "NavigationType should be NavigationType.Reload"); - } - - [Test] - [Category("P1")] - [Description("Checks whether the NavigationType of Navigation Policy event is NavigationType.LinkClicked")] - [Property("SPEC", "Tizen.WebView.NavigationPolicyEventArgs.NavigationType A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRE")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task NavigationType_GET_LINKCLICKED() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onNavigationPolicyDecide = (s, e) => - { - if (e.NavigationType == NavigationType.LinkClicked) - { - tcs.TrySetResult(true); - } - }; - - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - _webView.LoadUrl(WebViewCommon.LinkClickSampleHtml); - var result = await tcs.Task; - - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "NavigationType should be NavigationType.LinkClicked"); - } - - [Test] - [Category("P1")] - [Description("Checks whether the NavigationType of Navigation Policy event is NavigationType.FormSubmitted")] - [Property("SPEC", "Tizen.WebView.NavigationPolicyEventArgs.NavigationType A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRE")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task NavigationType_GET_FORMSUBMITTED() - { - /* PRECONDITION */ - TaskCompletionSource tcsForm = new TaskCompletionSource(false); - EventHandler onLoadFinishedForm = (s, e) => { tcsForm.TrySetResult(true); }; - EventHandler onLoadErrorForm = (s, e) => { tcsForm.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedForm; - _webView.LoadError += onLoadErrorForm; - - _webView.LoadUrl(WebViewCommon.FormSubmitSampleHtml); - var result = await tcsForm.Task; - - _webView.LoadFinished -= onLoadFinishedForm; - _webView.LoadError -= onLoadErrorForm; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onNavigationPolicyDecide = (s, e) => - { - if (e.NavigationType == NavigationType.FormSubmitted) - { - tcs.TrySetResult(true); - } - }; - - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - _webView.Eval("submitForm()"); - result = await tcs.Task; - - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "NavigationType should be NavigationType.FormSubmitted"); - } - - [Test] - [Category("P1")] - [Description("Checks whether the NavigationType of Navigation Policy event is NavigationType.FormResubmitted")] - [Property("SPEC", "Tizen.WebView.NavigationPolicyEventArgs.NavigationType A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRE")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task NavigationType_GET_FORMRESUBMITTED() - { - /* PRECONDITION */ - TaskCompletionSource tcsForm = new TaskCompletionSource(false); - EventHandler onLoadFinishedForm = (s, e) => { tcsForm.TrySetResult(true); }; - EventHandler onLoadErrorForm = (s, e) => { tcsForm.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedForm; - _webView.LoadError += onLoadErrorForm; - - _webView.LoadUrl(WebViewCommon.FormSubmitSampleHtml); - var result = await tcsForm.Task; - - _webView.LoadFinished -= onLoadFinishedForm; - _webView.LoadError -= onLoadErrorForm; - - Assert.IsTrue(result, "LoadUrl method failed"); - - TaskCompletionSource tcsEval = new TaskCompletionSource(false); - EventHandler onLoadFinishedEval = (s, e) => { tcsEval.TrySetResult(true); }; - EventHandler onLoadErrorEval = (s, e) => { tcsEval.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedEval; - _webView.LoadError += onLoadErrorEval; - - _webView.Eval("submitForm()"); - result = await tcsEval.Task; - - _webView.LoadFinished -= onLoadFinishedEval; - _webView.LoadError -= onLoadErrorEval; - - Assert.IsTrue(result, "Eval method failed"); - - TaskCompletionSource tcsGoBack = new TaskCompletionSource(false); - EventHandler onLoadFinishedGoBack = (s, e) => { tcsGoBack.TrySetResult(true); }; - EventHandler onLoadErrorGoBack = (s, e) => { tcsGoBack.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedGoBack; - _webView.LoadError += onLoadErrorGoBack; - - _webView.GoBack(); - result = await tcsGoBack.Task; - - _webView.LoadFinished -= onLoadFinishedGoBack; - _webView.LoadError -= onLoadErrorGoBack; - - Assert.IsTrue(result, "GoBack method failed"); - - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onNavigationPolicyDecide = (s, e) => - { - Log.Debug("TCT", "NavigationType: " + e.NavigationType.ToString()); - if (e.NavigationType == NavigationType.FormResubmitted) - { - tcs.TrySetResult(true); - } - }; - - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - _webView.GoForward(); - result = await tcs.Task; - - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "NavigationType should be NavigationType.FormResubmitted"); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSPolicyDecisionEventArgs.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSPolicyDecisionEventArgs.cs deleted file mode 100755 index 31c3f36..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSPolicyDecisionEventArgs.cs +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using System.Threading.Tasks; - -namespace Tizen.WebView.Tests -{ - - [TestFixture] - [Description("Tizen.WebView.PolicyDecisionEventArgs Tests")] - public class PolicyDecisionEventArgsTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.PolicyDecisionEventArgs Tests"); - _webView = new WebView(WebViewCommon.GetMainWindow()); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for Tizen.WebView.PolicyDecisionEventArgs Tests"); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Ask to ignore the current Policy Decision event")] - [Property("SPEC", "Tizen.WebView.PolicyDecisionEventArgs.Ignore M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Ignore_CHANGE_STATUS() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onNavigationPolicyDecide = (s, e) => - { - try - { - e.Ignore(); - } - catch - { - tcs.TrySetResult(false); - } - tcs.TrySetResult(true); - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "Page loading should be finished without any error"); - } - - [Test] - [Category("P1")] - [Description("Ask to use the current Policy Decision event")] - [Property("SPEC", "Tizen.WebView.PolicyDecisionEventArgs.Use M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Use_CHANGE_STATUS() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onNavigationPolicyDecide = (s, e) => - { - try - { - e.Use(); - } - catch - { - tcs.TrySetResult(false); - } - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "Page loading should be finished without any error"); - } - - [Test] - [Category("P1")] - [Description("Gets the Scheme of Policy Decision event")] - [Property("SPEC", "Tizen.WebView.PolicyDecisionEventArgs.Scheme A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Scheme_READ_ONLY() - { - /* TEST CODE */ - string scheme = string.Empty; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onNavigationPolicyDecide = (s, e) => - { - scheme = e.Scheme; - e.Use(); - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "LoadUrl method failed"); - Assert.AreEqual(WebViewCommon.FileScheme, scheme, "Scheme should be valid string object"); - } - - [Test] - [Category("P1")] - [Description("Gets the Url of Policy Decision event")] - [Property("SPEC", "Tizen.WebView.PolicyDecisionEventArgs.Url A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Url_READ_ONLY() - { - /* TEST CODE */ - string url = string.Empty; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onNavigationPolicyDecide = (s, e) => - { - url = e.Url; - e.Use(); - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "LoadUrl method failed"); - Assert.AreEqual(WebViewCommon.SampleHtml, url, "Url should be valid string object"); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSResponsePolicyEventArgs.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSResponsePolicyEventArgs.cs deleted file mode 100755 index af83b86..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSResponsePolicyEventArgs.cs +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using System.Threading.Tasks; - -namespace Tizen.WebView.Tests -{ - - [TestFixture] - [Description("Tizen.WebView.ResponsePolicyEventArgs Tests")] - class ResponsePolicyEventArgsTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.ResponsePolicyEventArgs Tests"); - _webView = new WebView(WebViewCommon.GetMainWindow()); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for Tizen.WebView.ResponsePolicyEventArgs Tests"); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Gets the Cookie of Response Policy event")] - [Property("SPEC", "Tizen.WebView.ResponsePolicyEventArgs.Cookie A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Cookie_READ_ONLY() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onResponsePolicyDecide = (s, e) => - { - var cookie = e.Cookie; - if (cookie.GetType() != typeof(string)) - { - tcs.TrySetResult(false); - } - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.ResponsePolicyDecideRequested += onResponsePolicyDecide; - - _webView.LoadUrl(WebViewCommon.TestUrl); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.ResponsePolicyDecideRequested -= onResponsePolicyDecide; - - Assert.IsTrue(result, "Cookie should be valid string object"); - } - - [Test] - [Category("P1")] - [Description("Gets the IsDownload of Response Policy event")] - [Property("SPEC", "Tizen.WebView.ResponsePolicyEventArgs.IsDownload A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task IsDownload_READ_ONLY() - { - /* TEST CODE */ - bool isDownload = true; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onResponsePolicyDecide = (s, e) => - { - isDownload = e.IsDownload; - e.Use(); - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.ResponsePolicyDecideRequested += onResponsePolicyDecide; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.ResponsePolicyDecideRequested -= onResponsePolicyDecide; - - Assert.IsTrue(result, "LoadUrl method failed"); - Assert.IsFalse(isDownload, "IsDownload should be false"); - - TaskCompletionSource tcsDownload = new TaskCompletionSource(false); - EventHandler onResponsePolicyDecideDownload = (s, e) => - { - isDownload = e.IsDownload; - e.Use(); - tcsDownload.TrySetResult(true); - }; - - _webView.ResponsePolicyDecideRequested += onResponsePolicyDecideDownload; - - _webView.LoadUrl(WebViewCommon.TestUrlForDownload); - result = await tcsDownload.Task; - - _webView.ResponsePolicyDecideRequested -= onResponsePolicyDecideDownload; - - Assert.IsTrue(result, "ResponsePolicyDecideRequested should be invoked"); - Assert.IsTrue(isDownload, "IsDownload should be true"); - } - - [Test] - [Category("P1")] - [Description("Gets the StatusCode of Response Policy event")] - [Property("SPEC", "Tizen.WebView.ResponsePolicyEventArgs.StatusCode A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task StatusCode_READ_ONLY() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onResponsePolicyDecide = (s, e) => - { - if (e.StatusCode != 200) - { - tcs.TrySetResult(false); - } - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.ResponsePolicyDecideRequested += onResponsePolicyDecide; - - _webView.LoadUrl(WebViewCommon.TestUrl); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.ResponsePolicyDecideRequested -= onResponsePolicyDecide; - - Assert.IsTrue(result, "StatusCode should be 200 OK"); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSettings.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSettings.cs deleted file mode 100755 index 6158151..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSettings.cs +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using NUnit.Framework; -using NUnit.Framework.TUnit; - -namespace Tizen.WebView.Tests -{ - - [TestFixture] - [Description("Tizen.WebView.Settings Tests")] - public class SettingsTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.Settings Tests"); - _webView = new WebView(WebViewCommon.GetMainWindow()); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for Tizen.WebView.Settings Tests"); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Gets and sets whether JavaScript can be executable")] - [Property("SPEC", "Tizen.WebView.Settings.JavaScriptEnabled A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void JavaScriptEnabled_READ_WRITE() - { - /* TEST CODE */ - var settings = _webView.GetSettings(); - Assert.IsInstanceOf(settings, "GetSettings method failed"); - - - settings.JavaScriptEnabled = false; - Assert.IsFalse(settings.JavaScriptEnabled, "Fail to get/set JavaScriptEnabled as false"); - - settings.JavaScriptEnabled = true; - Assert.IsTrue(settings.JavaScriptEnabled, "Fail to get/set JavaScriptEnabled as true"); - } - - [Test] - [Category("P1")] - [Description("Gets and sets whether images can be loaded automatically")] - [Property("SPEC", "Tizen.WebView.Settings.LoadImageAutomatically A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void LoadImageAutomatically_READ_WRITE() - { - /* TEST CODE */ - var settings = _webView.GetSettings(); - Assert.IsInstanceOf(settings, "GetSettings method failed"); - - settings.LoadImageAutomatically = true; - Assert.IsTrue(settings.LoadImageAutomatically, "Fail to get/set LoadImageAutomatically"); - - settings.LoadImageAutomatically = false; - Assert.IsFalse(settings.LoadImageAutomatically, "Fail to get/set LoadImageAutomatically"); - } - - [Test] - [Category("P1")] - [Description("Gets and sets default text encoding name")] - [Property("SPEC", "Tizen.WebView.Settings.DefaultTextEncodingName A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void DefaultTextEncodingName_READ_WRITE() - { - /* TEST CODE */ - var settings = _webView.GetSettings(); - Assert.IsInstanceOf(settings, "GetSettings method failed"); - - const string encodingName = "utf-8"; - settings.DefaultTextEncodingName = encodingName; - Assert.True(settings.DefaultTextEncodingName.Length > 0, "Fail to get/set DefaultTextEncodingName"); - Assert.AreEqual(encodingName, settings.DefaultTextEncodingName, "Fail to get/set DefaultTextEncodingName"); - } - - [Test] - [Category("P1")] - [Description("Gets and sets default font size of a pixel")] - [Property("SPEC", "Tizen.WebView.Settings.DefaultFontSize A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void DefaultFontSize_READ_WRITE() - { - /* TEST CODE */ - var settings = _webView.GetSettings(); - Assert.IsInstanceOf(settings, "GetSettings method failed"); - - const int fontSize = 10; - settings.DefaultFontSize = fontSize; - Assert.AreEqual(fontSize, settings.DefaultFontSize, "Fail to get/set DefaultFontSize"); - } - - [Test] - [Category("P1")] - [Description("Gets and sets scripts can open windows")] - [Property("SPEC", "Tizen.WebView.Settings.ScriptsCanOpenWindows A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public void ScriptsCanOpenWindows_READ_WRITE() - { - /* TEST CODE */ - var settings = _webView.GetSettings(); - Assert.IsInstanceOf(settings, "GetSettings method failed"); - - settings.ScriptsCanOpenWindows = true; - Assert.IsTrue(settings.ScriptsCanOpenWindows, "Fail to get/set ScriptCanOpenWindows"); - - settings.ScriptsCanOpenWindows = false; - Assert.IsFalse(settings.ScriptsCanOpenWindows, "Fail to get/set ScriptCanOpenWindows"); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackArgs.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackArgs.cs deleted file mode 100755 index 6438ee1..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackArgs.cs +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using System.Threading.Tasks; - -namespace Tizen.WebView.Tests -{ - - [TestFixture] - [Description("Tizen.WebView.SmartCallbackArgs Tests")] - public class SmartCallbackArgsTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.SmartCallbackArgs Tests"); - _webView = new WebView(WebViewCommon.GetMainWindow()); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for Tizen.WebView.SmartCallbackArgs Tests"); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Gets the parameter of callback as boolean type")] - [Property("SPEC", "Tizen.WebView.SmartCallbackArgs.GetAsBoolean M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task GetAsBoolean_RETURN_VALUE() - { - /* TEST CODE */ - bool arg = false; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onTitleChanged = (s, e) => { - arg = e.GetAsBoolean(); - }; - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.TitleChanged += onTitleChanged; - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.TitleChanged -= onTitleChanged; - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - Assert.IsTrue(arg, "GetAsBoolean should return valid value"); - } - - [Test] - [Category("P1")] - [Description("Gets the parameter of callback as double type")] - [Property("SPEC", "Tizen.WebView.SmartCallbackArgs.GetAsDouble M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task GetAsDouble_RETURN_VALUE() - { - /* TEST CODE */ - double arg = 0d; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onTitleChanged = (s, e) => { - arg = e.GetAsDouble(); - }; - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.TitleChanged += onTitleChanged; - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.TitleChanged -= onTitleChanged; - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - Assert.AreNotEqual(0d, arg, "GetAsDouble should return valid value"); - } - - [Test] - [Category("P1")] - [Description("Gets the parameter of callback as integer type")] - [Property("SPEC", "Tizen.WebView.SmartCallbackArgs.GetAsInteger M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task GetAsInteger_RETURN_VALUE() - { - /* TEST CODE */ - int arg = 0; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onTitleChanged = (s, e) => { - arg = e.GetAsInteger(); - }; - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.TitleChanged += onTitleChanged; - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.TitleChanged -= onTitleChanged; - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - Assert.AreNotEqual(0, arg, "GetAsInteger should return valid value"); - } - - [Test] - [Category("P1")] - [Description("Gets the parameter of callback as string type")] - [Property("SPEC", "Tizen.WebView.SmartCallbackArgs.GetAsString M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task GetAsString_RETURN_VALUE() - { - /* TEST CODE */ - string arg = string.Empty; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onTitleChanged = (s, e) => { - arg = e.GetAsString(); - }; - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.TitleChanged += onTitleChanged; - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.TitleChanged -= onTitleChanged; - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - Assert.AreEqual(WebViewCommon.SampleHtmlTitle, arg, "GetAsString should return valid value"); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackLoadErrorArgs.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackLoadErrorArgs.cs deleted file mode 100755 index b3548f1..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSSmartCallbackLoadErrorArgs.cs +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using System.Threading.Tasks; - -namespace Tizen.WebView.Tests -{ - - [TestFixture] - [Description("Tizen.WebView.SmartCallbackLoadErrorArgs Tests")] - public class SmartCallbackLoadErrorArgsTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.SmartCallbackLoadErrorArgs Tests"); - _webView = new WebView(WebViewCommon.GetMainWindow()); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for Tizen.WebView.SmartCallbackLoadErrorArgs Tests"); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Gets the URL of load error callback")] - [Property("SPEC", "Tizen.WebView.SmartCallbackLoadErrorArgs.Url A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Url_READ_ONLY() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onLoadError = (s, e) => - { - var url = e.Url; - if (url is string && url.Equals(WebViewCommon.TestUrlForError)) - { - tcs.TrySetResult(true); - } - tcs.TrySetResult(false); - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.TestUrlForError); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "Url should be valid value"); - } - - [Test] - [Category("P1")] - [Description("Gets the error code of load error callback")] - [Property("SPEC", "Tizen.WebView.SmartCallbackLoadErrorArgs.Code A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Code_READ_ONLY() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onLoadError = (s, e) => - { - var code = e.Code; - if (code.GetType() == typeof(LoadErrorCode) && (code.Equals(LoadErrorCode.CantLookupHost) || code.Equals(LoadErrorCode.Unknown))) - { - tcs.TrySetResult(true); - } - tcs.TrySetResult(false); - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.TestUrlForError); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "Code should be valid value"); - } - - [Test] - [Category("P1")] - [Description("Gets the description of load error callback")] - [Property("SPEC", "Tizen.WebView.SmartCallbackLoadErrorArgs.Description A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Description_READ_ONLY() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onLoadError = (s, e) => - { - var description = e.Description; - if (description is string) - { - tcs.TrySetResult(true); - } - tcs.TrySetResult(false); - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.TestUrlForError); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "Description should be valid value"); - } - - [Test] - [Category("P1")] - [Description("Gets the cancellation or not of load error callback")] - [Property("SPEC", "Tizen.WebView.SmartCallbackLoadErrorArgs.Cancellation A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Cancellation_READ_ONLY() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onLoadError = (s, e) => - { - var cancellation = e.Cancellation; - if (cancellation.GetType() == typeof(bool)) - { - tcs.TrySetResult(true); - } - tcs.TrySetResult(false); - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.TestUrlForError); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "Cancellation should be valid value"); - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSWebView.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/TSWebView.cs deleted file mode 100755 index 8b1ba33..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/TSWebView.cs +++ /dev/null @@ -1,1675 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using ElmSharp; -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; - -namespace Tizen.WebView.Tests -{ - [TestFixture] - [Description("Tizen.WebView.WebView Tests")] - public class WebViewTests - { - private WebView _webView; - - [SetUp] - public void Init() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for Tizen.WebView.WebView Tests"); - _webView = new WebView(WebViewCommon.GetMainWindow()); - } - - [TearDown] - public void Destroy() - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions forTizen.WebView.WebView Tests"); - _webView = null; - } - - [Test] - [Category("P1")] - [Description("Event that occurs when load started")] - [Property("SPEC", "Tizen.WebView.WebView.LoadStarted E")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task LoadStarted_CHECK_EVENT() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadStarted = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadStarted += onLoadStarted; - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadStarted -= onLoadStarted; - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadStarted event should be invoked"); - } - - [Test] - [Category("P1")] - [Description("Event that occurs when load finished")] - [Property("SPEC", "Tizen.WebView.WebView.LoadFinished E")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task LoadFinished_CHECK_EVENT() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadFinished event should be invoked"); - } - - [Test] - [Category("P1")] - [Description("Event that occurs when load error")] - [Property("SPEC", "Tizen.WebView.WebView.LoadError E")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task LoadError_CHECK_EVENT() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(true); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.TestUrlForError); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadError event should be invoked"); - } - - [Test] - [Category("P1")] - [Description("Event that occurs when title of main frame was changed")] - [Property("SPEC", "Tizen.WebView.WebView.TitleChanged E")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task TitleChanged_CHECK_EVENT() - { - /* TEST CODE */ - string title = string.Empty; - EventHandler onTitleChanged = (s, e) => { - title = e.GetAsString(); - }; - - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.TitleChanged += onTitleChanged; - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.TitleChanged -= onTitleChanged; - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - Assert.AreEqual(_webView.Title, title, "Received title should be same with WebView.Title"); - } - - [Test] - [Category("P1")] - [Description("Event that occurs when navigation policy decide requested")] - [Property("SPEC", "Tizen.WebView.WebView.NavigationPolicyDecideRequested E")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task NavigationPolicyDecideRequested_CHECK_EVENT() - { - /* TEST CODE */ - bool occurred = false; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onNavigationPolicyDecide = (s, e) => - { - try - { - occurred = true; - e.Use(); - } - catch - { - tcs.TrySetResult(false); - } - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.NavigationPolicyDecideRequested += onNavigationPolicyDecide; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.NavigationPolicyDecideRequested -= onNavigationPolicyDecide; - - Assert.IsTrue(result, "Page loading should be finished without any error"); - Assert.IsTrue(occurred, "Event should be occured"); - } - - [Test] - [Category("P1")] - [Description("Event that occurs when response policy decide requested")] - [Property("SPEC", "Tizen.WebView.WebView.ResponsePolicyDecideRequested E")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task ResponsePolicyDecideRequested_CHECK_EVENT() - { - /* TEST CODE */ - bool occurred = false; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onResponsePolicyDecide = (s, e) => - { - try - { - occurred = true; - e.Use(); - } - catch - { - tcs.TrySetResult(false); - } - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.ResponsePolicyDecideRequested += onResponsePolicyDecide; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.ResponsePolicyDecideRequested -= onResponsePolicyDecide; - - Assert.IsTrue(result, "Page loading should be finished without any error"); - Assert.IsTrue(occurred, "Event should be occured"); - } - - [Test] - [Category("P1")] - [Description("Event that occurs when new window policy decide requested")] - [Property("SPEC", "Tizen.WebView.WebView.NewWindowPolicyDecideRequested E")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task NewWindowPolicyDecideRequested_CHECK_EVENT() - { - /* TEST CODE */ - bool occurred = false; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onNewWindowPolicyDecide = (s, e) => - { - try - { - occurred = true; - e.Use(); - } - catch - { - tcs.TrySetResult(false); - } - }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - _webView.NewWindowPolicyDecideRequested += onNewWindowPolicyDecide; - - _webView.LoadUrl(WebViewCommon.WindowOpenSampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - _webView.NewWindowPolicyDecideRequested -= onNewWindowPolicyDecide; - - Assert.IsTrue(result, "Page loading should be finished without any error"); - Assert.IsTrue(occurred, "Event should be occured"); - } - - [Test] - [Category("P1")] - [Description("Event that occurs when URL of main frame was changed")] - [Property("SPEC", "Tizen.WebView.WebView.UrlChanged E")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task UrlChanged_CHECK_EVENT() - { - /* TEST CODE */ - string url = string.Empty; - EventHandler onUrlChanged = (s, e) => { - url = e.GetAsString(); - }; - - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.UrlChanged += onUrlChanged; - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.UrlChanged -= onUrlChanged; - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - Assert.AreEqual(_webView.Url, url, "Received URL should be same with WebView.Url"); - } - - [Test] - [Category("P1")] - [Description("Gets current URL of the main frame")] - [Property("SPEC", "Tizen.WebView.WebView.Url A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Url_READ_ONLY() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - var url = _webView.Url; - Assert.IsInstanceOf(url, "Get Url should return object string"); - Assert.AreEqual(WebViewCommon.SampleHtml, url, "Fail to get Url should return valid url"); - } - - [Test] - [Category("P1")] - [Description("Gets current title of the main frame")] - [Property("SPEC", "Tizen.WebView.WebView.Title A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Title_READ_ONLY() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - var title = _webView.Title; - Assert.IsInstanceOf(title, "Get Title should return object string"); - Assert.AreEqual(WebViewCommon.SampleHtmlTitle, title, "Get Title should return valid title"); - } - - [Test] - [Category("P1")] - [Description("Gets and sets user agent string of this view")] - [Property("SPEC", "Tizen.WebView.WebView.UserAgent A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void UserAgent_READ_WRITE() - { - /* TEST CODE */ - _webView.UserAgent = WebViewCommon.TestUserAgent; - var userAgent = _webView.UserAgent; - Assert.IsInstanceOf(userAgent, "Get UserAgent should return object string"); - Assert.AreEqual(WebViewCommon.TestUserAgent, userAgent, "Get UserAgent should return valid user agent"); - } - - [Test] - [Category("P1")] - [Description("Checks whether a view has the focus")] - [Property("SPEC", "Tizen.WebView.WebView.HasFocus A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task HasFocus_READ_ONLY() - { - /* PRECONDITION */ - - - /* TEST CODE */ - var hasFocus = _webView.HasFocus; - Assert.IsInstanceOf(hasFocus, "Get HasFocus should return object bool"); - Assert.IsFalse(hasFocus, "HasFocus should be false before load content"); - - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => - { - _webView.SetFocus(true); - tcs.TrySetResult(true); - }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - hasFocus = _webView.HasFocus; - Assert.IsInstanceOf(hasFocus, "Get HasFocus should return object bool"); - Assert.IsTrue(hasFocus, "HasFocus should be true after load content"); - } - - [Test] - [Category("P1")] - [Description("Create a WebView object")] - [Property("SPEC", "Tizen.WebView.WebView.WebView C")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "CONSTR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void WebView_INIT_WITH_PARENT() - { - /* TEST CODE */ - var webView = new WebView(WebViewCommon.GetMainWindow()); - Assert.IsNotNull(webView, "WebView object is null after initialization"); - Assert.IsInstanceOf(webView, "Should return WebView instance"); - } - - [Test] - [Category("P1")] - [Description("Gets the Context object of this view")] - [Property("SPEC", "Tizen.WebView.WebView.GetContext M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void GetContext_RETURN_VALUE() - { - /* TEST CODE */ - var context = _webView.GetContext(); - Assert.IsInstanceOf(context, "GetContext method failed"); - } - - [Test] - [Category("P1")] - [Description("Gets the Settings object of this view")] - [Property("SPEC", "Tizen.WebView.WebView.GetSettings M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public void GetSettings_RETURN_VALUE() - { - /* TEST CODE */ - var settings = _webView.GetSettings(); - Assert.IsInstanceOf(settings, "GetSettings method failed"); - } - - [Test] - [Category("P1")] - [Description("Gets the BackForwardList object of this view")] - [Property("SPEC", "Tizen.WebView.WebView.GetBackForwardList M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task GetBackForwardList_RETURN_VALUE() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - var backforwardlist = _webView.GetBackForwardList(); - Assert.IsInstanceOf(backforwardlist, "GetBackForwardList method failed"); - - var currentItem = backforwardlist.CurrentItem; - Assert.IsInstanceOf(currentItem, "Get Current BackForwardListItem property failed"); - Assert.AreEqual(WebViewCommon.SampleHtml, currentItem.Url, "URL should be same"); - } - - [Test] - [Category("P1")] - [Description("Clears the BackForwardList of this view")] - [Property("SPEC", "Tizen.WebView.WebView.ClearBackForwardList M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task ClearBackForwardList_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcsFisrt = new TaskCompletionSource(false); - EventHandler onLoadFinishedFirst = (s, e) => { tcsFisrt.TrySetResult(true); }; - EventHandler onLoadErrorFirst = (s, e) => { tcsFisrt.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedFirst; - _webView.LoadError += onLoadErrorFirst; - - _webView.LoadUrl(WebViewCommon.SampleHtml1); - var result = await tcsFisrt.Task; - - _webView.LoadFinished -= onLoadFinishedFirst; - _webView.LoadError -= onLoadErrorFirst; - - Assert.IsTrue(result, "LoadUrl method failed for the first page"); - - TaskCompletionSource tcsSecond = new TaskCompletionSource(false); - EventHandler onLoadFinishedSecond = (s, e) => { tcsSecond.TrySetResult(true); }; - EventHandler onLoadErrorSecond = (s, e) => { tcsSecond.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedSecond; - _webView.LoadError += onLoadErrorSecond; - - _webView.LoadUrl(WebViewCommon.SampleHtml2); - result = await tcsSecond.Task; - - _webView.LoadFinished -= onLoadFinishedSecond; - _webView.LoadError -= onLoadErrorSecond; - - Assert.IsTrue(result, "LoadUrl method failed for the second page"); - - /* TEST CODE */ - _webView.ClearBackForwardList(); - - var backForwardList = _webView.GetBackForwardList(); - Assert.IsInstanceOf(backForwardList, "GetBackForwardList method failed"); - Assert.AreEqual(1, backForwardList.Count, "Fail to Clear BackForwardList"); - } - - [Test] - [Category("P1")] - [Description("Asks the object to load the given URL")] - [Property("SPEC", "Tizen.WebView.WebView.LoadUrl M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task LoadUrl_CHANGE_STATUS() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - } - - [Test] - [Category("P1")] - [Description("Loads the specified html string as the content of the view")] - [Property("SPEC", "Tizen.WebView.WebView.LoadHtml M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task LoadHtml_CHANGE_STATUS() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadHtml(WebViewCommon.TestHtml, WebViewCommon.TestUrl); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadHtml method failed"); - Assert.AreEqual(WebViewCommon.TestUrl, _webView.Title, "Title should be same with base URL"); - } - - [Test] - [Category("P1")] - [Description("Asks the main frame to stop loading")] - [Property("SPEC", "Tizen.WebView.WebView.StopLoading M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task StopLoading_CHANGE_STATUS() - { - /* TEST CODE */ - var isCancellation = false; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadStarted = (s, e) => { _webView.StopLoading(); }; - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(false); }; - EventHandler onLoadError = (s, e) => { - isCancellation = e.Cancellation; - tcs.TrySetResult(true); - }; - - _webView.LoadStarted += onLoadStarted; - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.TestUrl); - var result = await tcs.Task; - - _webView.LoadStarted -= onLoadStarted; - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadError should be invoked"); - Assert.IsTrue(isCancellation, "Cancellation should be true"); - } - - [Test] - [Category("P1")] - [Description("Asks the main frame to reload the current document")] - [Property("SPEC", "Tizen.WebView.WebView.Reload M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Reload_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - TaskCompletionSource tcsReload = new TaskCompletionSource(false); - EventHandler onLoadFinishedReload = (s, e) => { tcsReload.TrySetResult(true); }; - EventHandler onLoadErrorReload = (s, e) => { tcsReload.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedReload; - _webView.LoadError += onLoadErrorReload; - - _webView.Reload(); - result = await tcsReload.Task; - - _webView.LoadFinished -= onLoadFinishedReload; - _webView.LoadError -= onLoadErrorReload; - - Assert.IsTrue(result, "Reload method failed"); - } - - [Test] - [Category("P1")] - [Description("Asks the main frame to navigate back in history")] - [Property("SPEC", "Tizen.WebView.WebView.GoBack M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task GoBack_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcsFisrt = new TaskCompletionSource(false); - EventHandler onLoadFinishedFirst = (s, e) => { tcsFisrt.TrySetResult(true); }; - EventHandler onLoadErrorFirst = (s, e) => { tcsFisrt.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedFirst; - _webView.LoadError += onLoadErrorFirst; - - _webView.LoadUrl(WebViewCommon.SampleHtml1); - var result = await tcsFisrt.Task; - - _webView.LoadFinished -= onLoadFinishedFirst; - _webView.LoadError -= onLoadErrorFirst; - - Assert.IsTrue(result, "LoadUrl method failed for the first page"); - - TaskCompletionSource tcsSecond = new TaskCompletionSource(false); - EventHandler onLoadFinishedSecond = (s, e) => { tcsSecond.TrySetResult(true); }; - EventHandler onLoadErrorSecond = (s, e) => { tcsSecond.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedSecond; - _webView.LoadError += onLoadErrorSecond; - - _webView.LoadUrl(WebViewCommon.SampleHtml2); - result = await tcsSecond.Task; - - _webView.LoadFinished -= onLoadFinishedSecond; - _webView.LoadError -= onLoadErrorSecond; - - Assert.IsTrue(result, "LoadUrl method failed for the second page"); - - /* TEST CODE */ - TaskCompletionSource tcsGoBack = new TaskCompletionSource(false); - EventHandler onLoadFinishedGoBack = (s, e) => { tcsGoBack.TrySetResult(true); }; - EventHandler onLoadErrorGoBack = (s, e) => { tcsGoBack.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedGoBack; - _webView.LoadError += onLoadErrorGoBack; - - _webView.GoBack(); - result = await tcsGoBack.Task; - - _webView.LoadFinished -= onLoadFinishedGoBack; - _webView.LoadError -= onLoadErrorGoBack; - - Assert.IsTrue(result, "GoBack method failed"); - Assert.AreEqual(WebViewCommon.SampleHtml1, _webView.Url, "URL should be same with the first page"); - } - - [Test] - [Category("P1")] - [Description("Asks the main frame to navigate forward in history")] - [Property("SPEC", "Tizen.WebView.WebView.GoForward M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task GoForward_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcsFisrt = new TaskCompletionSource(false); - EventHandler onLoadFinishedFirst = (s, e) => { tcsFisrt.TrySetResult(true); }; - EventHandler onLoadErrorFirst = (s, e) => { tcsFisrt.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedFirst; - _webView.LoadError += onLoadErrorFirst; - - _webView.LoadUrl(WebViewCommon.SampleHtml1); - var result = await tcsFisrt.Task; - - _webView.LoadFinished -= onLoadFinishedFirst; - _webView.LoadError -= onLoadErrorFirst; - - Assert.IsTrue(result, "LoadUrl method failed for the first page"); - - TaskCompletionSource tcsSecond = new TaskCompletionSource(false); - EventHandler onLoadFinishedSecond = (s, e) => { tcsSecond.TrySetResult(true); }; - EventHandler onLoadErrorSecond = (s, e) => { tcsSecond.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedSecond; - _webView.LoadError += onLoadErrorSecond; - - _webView.LoadUrl(WebViewCommon.SampleHtml2); - result = await tcsSecond.Task; - - _webView.LoadFinished -= onLoadFinishedSecond; - _webView.LoadError -= onLoadErrorSecond; - - Assert.IsTrue(result, "LoadUrl method failed for the second page"); - - TaskCompletionSource tcsGoBack = new TaskCompletionSource(false); - EventHandler onLoadFinishedGoBack = (s, e) => { tcsGoBack.TrySetResult(true); }; - EventHandler onLoadErrorGoBack = (s, e) => { tcsGoBack.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedGoBack; - _webView.LoadError += onLoadErrorGoBack; - - _webView.GoBack(); - result = await tcsGoBack.Task; - - _webView.LoadFinished -= onLoadFinishedGoBack; - _webView.LoadError -= onLoadErrorGoBack; - - Assert.IsTrue(result, "GoBack method failed"); - - /* TEST CODE */ - TaskCompletionSource tcsGoForward = new TaskCompletionSource(false); - EventHandler onLoadFinishedGoForward = (s, e) => { tcsGoForward.TrySetResult(true); }; - EventHandler onLoadErrorGoForward = (s, e) => { tcsGoForward.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedGoForward; - _webView.LoadError += onLoadErrorGoForward; - - _webView.GoForward(); - result = await tcsGoForward.Task; - - _webView.LoadFinished -= onLoadFinishedGoForward; - _webView.LoadError -= onLoadErrorGoForward; - - Assert.IsTrue(result, "GoForward method failed"); - Assert.AreEqual(WebViewCommon.SampleHtml2, _webView.Url, "URL should be same with the second page"); - } - - [Test] - [Category("P1")] - [Description("Checks whether it is possible to navigate backwards one item in history")] - [Property("SPEC", "Tizen.WebView.WebView.CanGoBack M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task CanGoBack_RETURN_VALUE() - { - /* PRECONDITION */ - TaskCompletionSource tcsFisrt = new TaskCompletionSource(false); - EventHandler onLoadFinishedFirst = (s, e) => { tcsFisrt.TrySetResult(true); }; - EventHandler onLoadErrorFirst = (s, e) => { tcsFisrt.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedFirst; - _webView.LoadError += onLoadErrorFirst; - - _webView.LoadUrl(WebViewCommon.SampleHtml1); - var result = await tcsFisrt.Task; - - _webView.LoadFinished -= onLoadFinishedFirst; - _webView.LoadError -= onLoadErrorFirst; - - Assert.IsTrue(result, "LoadUrl method failed for the first page"); - - TaskCompletionSource tcsSecond = new TaskCompletionSource(false); - EventHandler onLoadFinishedSecond = (s, e) => { tcsSecond.TrySetResult(true); }; - EventHandler onLoadErrorSecond = (s, e) => { tcsSecond.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedSecond; - _webView.LoadError += onLoadErrorSecond; - - _webView.LoadUrl(WebViewCommon.SampleHtml2); - result = await tcsSecond.Task; - - _webView.LoadFinished -= onLoadFinishedSecond; - _webView.LoadError -= onLoadErrorSecond; - - Assert.IsTrue(result, "LoadUrl method failed for the second page"); - - /* TEST CODE */ - var canGoBack = _webView.CanGoBack(); - Assert.IsInstanceOf(canGoBack, "CanGoBack should return object boolean"); - Assert.IsTrue(canGoBack, "CanGoBack should return valid value"); - } - - [Test] - [Category("P1")] - [Description("Checks whether it is possible to navigate forwards one item in history")] - [Property("SPEC", "Tizen.WebView.WebView.CanGoForward M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task CanGoForward_RETURN_VALUE() - { - /* PRECONDITION */ - TaskCompletionSource tcsFisrt = new TaskCompletionSource(false); - EventHandler onLoadFinishedFirst = (s, e) => { tcsFisrt.TrySetResult(true); }; - EventHandler onLoadErrorFirst = (s, e) => { tcsFisrt.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedFirst; - _webView.LoadError += onLoadErrorFirst; - - _webView.LoadUrl(WebViewCommon.SampleHtml1); - var result = await tcsFisrt.Task; - - _webView.LoadFinished -= onLoadFinishedFirst; - _webView.LoadError -= onLoadErrorFirst; - - Assert.IsTrue(result, "LoadUrl method failed for the first page"); - - TaskCompletionSource tcsSecond = new TaskCompletionSource(false); - EventHandler onLoadFinishedSecond = (s, e) => { tcsSecond.TrySetResult(true); }; - EventHandler onLoadErrorSecond = (s, e) => { tcsSecond.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedSecond; - _webView.LoadError += onLoadErrorSecond; - - _webView.LoadUrl(WebViewCommon.SampleHtml2); - result = await tcsSecond.Task; - - _webView.LoadFinished -= onLoadFinishedSecond; - _webView.LoadError -= onLoadErrorSecond; - - Assert.IsTrue(result, "LoadUrl method failed for the second page"); - - TaskCompletionSource tcsGoBack = new TaskCompletionSource(false); - EventHandler onLoadFinishedGoBack = (s, e) => { tcsGoBack.TrySetResult(true); }; - EventHandler onLoadErrorGoBack = (s, e) => { tcsGoBack.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinishedGoBack; - _webView.LoadError += onLoadErrorGoBack; - - _webView.GoBack(); - result = await tcsGoBack.Task; - - _webView.LoadFinished -= onLoadFinishedGoBack; - _webView.LoadError -= onLoadErrorGoBack; - - Assert.IsTrue(result, "GoBack method failed"); - - /* TEST CODE */ - var canGoForward = _webView.CanGoForward(); - Assert.IsInstanceOf(canGoForward, "CanGoForward should return object boolean"); - Assert.IsTrue(canGoForward, "CanGoForward should return valid value"); - } - - [Test] - [Category("P1")] - [Description("Injects the supplied javascript message handler into the view")] - [Property("SPEC", "Tizen.WebView.WebView.AddJavaScriptMessageHandler M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR, MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task AddJavaScriptMessageHandler_RETURN_VALUE_CHANGE_STATUS() - { - /* TEST CODE */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - TaskCompletionSource tcsForCallback = new TaskCompletionSource(false); - JavaScriptMessageHandler handler = (message) => - { - if (message.Name.Equals("MyJavaScriptInterfaceForCommon") && message.GetBodyAsString().Equals("Test message")) - { - tcsForCallback.TrySetResult(true); - } - tcsForCallback.TrySetResult(false); - }; - var ret = _webView.AddJavaScriptMessageHandler("MyJavaScriptInterfaceForCommon", handler); - Assert.IsInstanceOf(ret, "AddJavaScriptMessageHandler should return object bool"); - Assert.IsTrue(ret, "AddJavaScriptMessageHandler method failed"); - - _webView.LoadUrl(WebViewCommon.AddJavaScriptInterfaceSampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - _webView.Eval("callForCommon();"); - result = await tcsForCallback.Task; - - Assert.IsTrue(result, "JavaScript handler should be invoked with valid name"); - } - - [Test] - [Category("P1")] - [Description("Requests the execution of given name and result to the JavaScript runtime")] - [Property("SPEC", "Tizen.WebView.WebView.EvalWithResult M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task EvalWithResult_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.AddJavaScriptInterfaceSampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - try - { - _webView.EvalWithResult("sendResult", "Result"); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - - [Test] - [Category("P1")] - [Description("Requests the execution of the given script")] - [Property("SPEC", "Tizen.WebView.WebView.Eval M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task Eval_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - try - { - _webView.Eval(WebViewCommon.TestScript); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - - [Test] - [Category("P1")] - [Description("Requests the execution of the given script and gets the result of evaluation")] - [Property("SPEC", "Tizen.WebView.WebView.EvalAsync M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task EvalAsync_RETURN_VALUE() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - string returnValue = ""; - try - { - returnValue = await _webView.EvalAsync(WebViewCommon.TestScript); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - - Assert.AreEqual("test content", returnValue, WebViewCommon.ReturnOfTestScript); - } - - [Test] - [Category("P2")] - [Description("Checks whether EvalAsync throws ArgumentException when script is null")] - [Property("SPEC", "Tizen.WebView.WebView.EvalAsync M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MEX")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task EvalAsync_ARGUMENT_EXCEPTION_NULL_SCRIPT() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - Assert.ThrowsAsync(async () => await _webView.EvalAsync(null), "ArgumentException should be thrown"); - } - - [Test] - [Category("P2")] - [Description("Checks whether EvalAsync throws ArgumentException when script is empty")] - [Property("SPEC", "Tizen.WebView.WebView.EvalAsync M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MEX")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task EvalAsync_ARGUMENT_EXCEPTION_EMPTY_SCRIPT() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - Assert.ThrowsAsync(async () => await _webView.EvalAsync(""), "ArgumentException should be thrown"); - } - - [Test] - [Category("P1")] - [Description("Requests to set or unset a view as the currently focused one")] - [Property("SPEC", "Tizen.WebView.WebView.SetFocus M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task SetFocus_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - _webView.SetFocus(true); - Assert.IsTrue(_webView.HasFocus, "Fail to set focus as true"); - _webView.SetFocus(false); - Assert.IsFalse(_webView.HasFocus, "Fail to set focus as false"); - } - - [Test] - [Category("P1")] - [Description("Gets the Contents Size of this view")] - [Property("SPEC", "Tizen.WebView.WebView.ContentsSize A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task ContentsSize_READ_ONLY() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - await Task.Delay(2000); - - /* TEST CODE */ - var contentSize = _webView.ContentsSize; - Assert.AreNotEqual(0, contentSize.Height, "Height of content size should be nonzero"); - Assert.AreNotEqual(0, contentSize.Width, "Width of content size should be nonzero"); - } - - [Test] - [Category("P1")] - [Description("Exits the Full Screen of this view")] - [Property("SPEC", "Tizen.WebView.WebView.ExitFullscreen M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task ExitFullscreen_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - try - { - _webView.ExitFullscreen(); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - - [Test] - [Category("P1")] - [Description("Sends the orientation of the device")] - [Property("SPEC", "Tizen.WebView.WebView.SendOrientation M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MAE")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task SendOrientation_ENUM_ALL() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - - try - { - foreach(Orientation orientation in Enum.GetValues(typeof(Orientation))) - { - _webView.SendOrientation(orientation); - } - - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - - [Test] - [Category("P1")] - [Description("Suspends the operation associated with the view")] - [Property("SPEC", "Tizen.WebView.WebView.Suspend M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task Suspend_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - try - { - _webView.Suspend(); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - - [Test] - [Category("P1")] - [Description("Resumes the operation associated with the view")] - [Property("SPEC", "Tizen.WebView.WebView.Resume M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task Resume_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - try - { - _webView.Resume(); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - - [Test] - [Category("P1")] - [Description("Gets the Load Progress of this view")] - [Property("SPEC", "Tizen.WebView.WebView.LoadProgress A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task LoadProgress_READ_ONLY() - { - /* TEST CODE */ - double progress = 0; - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadStarted = (s, e) => { progress = _webView.LoadProgress; }; - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadStarted += onLoadStarted; - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadStarted -= onLoadStarted; - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - Assert.AreNotEqual(0, progress, "Fail to get Load Progress"); - } - - [Test] - [Category("P1")] - [Description("Gets the Scale of this view")] - [Property("SPEC", "Tizen.WebView.WebView.Scale A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task Scale_READ_ONLY() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - Assert.AreNotEqual(0, _webView.Scale, "Fail to get scale"); - } - - [Test] - [Category("P1")] - [Description("Sets the Scale for this view")] - [Property("SPEC", "Tizen.WebView.WebView.SetScale M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task SetScale_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - double scaleFactor = 2.0; - Point scrollTo; - scrollTo.X = 5; - scrollTo.Y = 5; - - _webView.SetScale(scaleFactor, scrollTo); - await Task.Delay(1000); - - Assert.AreEqual(2.0, _webView.Scale, "Fail to set scale"); - } - - [Test] - [Category("P1")] - [Description("Enables the visibility of this view")] - [Property("SPEC", "Tizen.WebView.WebView.SetViewVisibility M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task SetViewVisibility_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - try - { - _webView.SetViewVisibility(true); - - _webView.SetViewVisibility(false); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - - [Test] - [Category("P1")] - [Description("Gets and sets user agent string of this view")] - [Property("SPEC", "Tizen.WebView.WebView.ScrollPosition A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task ScrollPosition_READ_WRITE() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - Point scrollPos; - scrollPos.X = 5; - scrollPos.Y = 10; - - _webView.ScrollPosition = scrollPos; - await Task.Delay(1000); - - Assert.AreEqual(scrollPos, _webView.ScrollPosition, "Get ScrollPos should return valid scroll position"); - } - - [Test] - [Category("P1")] - [Description("Sets the Scroll By for this view")] - [Property("SPEC", "Tizen.WebView.WebView.ScrollBy M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task ScrollBy_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - Point initialPos = _webView.ScrollPosition; - Point scrollBy; - scrollBy.X = 5; - scrollBy.Y = 10; - - _webView.ScrollBy(scrollBy); - await Task.Delay(1000); - - Point scrollPos = _webView.ScrollPosition; - Assert.AreEqual(initialPos.X + scrollBy.X, scrollPos.X, "X of scroll position should be valid"); - Assert.AreEqual(initialPos.Y + scrollBy.Y, scrollPos.Y, "Y of scroll position should be valid"); - } - - [Test] - [Category("P1")] - [Description("Finds the text entered for this view")] - [Property("SPEC", "Tizen.WebView.WebView.FindText M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MAE")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public async Task FindText_ENUM_ALL() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - try - { - foreach (FindOption option in Enum.GetValues(typeof(FindOption))) - { - _webView.FindText("sample", option, 0); - } - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - - [Test] - [Category("P1")] - [Description("Sets the url request for this view")] - [Property("SPEC", "Tizen.WebView.WebView.SetUrlRequest M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MAE")] - [Property("AUTHOR", "Basavaraj P S, basavaraj.ps@samsung.com")] - public void SetUrlRequest_ENUM_ALL() - { - /* TEST CODE */ - var httpHeaders = new Dictionary(); - httpHeaders.Add("Accept", "*/*"); - try - { - foreach(HttpMethod method in Enum.GetValues(typeof(HttpMethod))) - { - _webView.SetUrlRequest(WebViewCommon.TestUrl, method, httpHeaders, null); - } - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - } - - [Test] - [Category("P1")] - [Description("Sets the delegate for context menu customization")] - [Property("SPEC", "Tizen.WebView.WebView.SetContextMenuCustomizeDelegate M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MCST")] - [Property("AUTHOR", "Youngha Jung, yh106.jung@samsung.com")] - public async Task SetContextMenuCustomizeDelegate_CHANGE_STATUS() - { - /* PRECONDITION */ - TaskCompletionSource tcs = new TaskCompletionSource(false); - EventHandler onLoadFinished = (s, e) => { tcs.TrySetResult(true); }; - EventHandler onLoadError = (s, e) => { tcs.TrySetResult(false); }; - - _webView.LoadFinished += onLoadFinished; - _webView.LoadError += onLoadError; - - _webView.LoadUrl(WebViewCommon.SampleHtml); - var result = await tcs.Task; - - _webView.LoadFinished -= onLoadFinished; - _webView.LoadError -= onLoadError; - - Assert.IsTrue(result, "LoadUrl method failed"); - - /* TEST CODE */ - WebView.ContextMenuCustomize contextMenuCustomize = (ContextMenu menu) => - { - Assert.True(false, "Delegate must not be invoked in this testcase"); - }; - try - { - _webView.SetContextMenuCustomizeDelegate(contextMenuCustomize); - } - catch (Exception e) - { - Assert.True(false, e.Message); - } - - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/testcase/support/WebViewCommon.cs b/tct-suite-vs/Tizen.WebView.Tests/testcase/support/WebViewCommon.cs deleted file mode 100755 index ba8aced..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/testcase/support/WebViewCommon.cs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -using ElmSharp; - -namespace Tizen.WebView.Tests -{ - internal static class WebViewCommon - { - public const string SampleHtml = "file:///opt/usr/home/owner/share/res/sample.html"; - public const string SampleHtml1 = "file:///opt/usr/home/owner/share/res/sample_1.html"; - public const string SampleHtml2 = "file:///opt/usr/home/owner/share/res/sample_2.html"; - public const string AddJavaScriptInterfaceSampleHtml = "file:///opt/usr/home/owner/share/res/add_js_interface_sample.html"; - public const string WindowOpenSampleHtml = "file:///opt/usr/home/owner/share/res/window_open_sample.html"; - public const string LinkClickSampleHtml = "file:///opt/usr/home/owner/share/res/link_click_sample.html"; - public const string FormSubmitSampleHtml = "file:///opt/usr/home/owner/share/res/form_submit_sample.html"; - public const string SampleHtmlTitle = "Testing Sample Page"; - public const string HeaderTerminator = "\r\r"; - public const string FileScheme = "file"; - - public const string TestUrl = "https://www.tizen.org/"; - public const string TestUrlForError = "http://page_that_does_not_exist/"; - public const string TestUrlForDownload = "http://download.tizen.org/sdk/samples/online/Native/MN_app-common/MN_app-common.zip"; - public const string TestUserAgent = "Mozilla/5.0 (Unknown; Linux armv7l) AppleWebKit/538.1 (KHTML, like Gecko) Version/5.0 Safari/538.1"; - public const string TestHtml = ""; - public const string TestScript = "document.getElementById('getParaContent').innerHTML"; - public const string ReturnOfTestScript = "The result of evaluation should be same with expected value"; - public const string TestCookie = "foo=bar"; - - private static Window _instance; - - public static Window GetMainWindow() - { - if (_instance == null) - { - _instance = new Window("WebView Auto Tests"); - } - return _instance; - } - } -} diff --git a/tct-suite-vs/Tizen.WebView.Tests/tizen-manifest.xml b/tct-suite-vs/Tizen.WebView.Tests/tizen-manifest.xml deleted file mode 100755 index ac0f635..0000000 --- a/tct-suite-vs/Tizen.WebView.Tests/tizen-manifest.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Tizen.WebView.Tests.png - - - - - - http://tizen.org/privilege/appmanager.launch - http://tizen.org/privilege/internet - - - -- 2.7.4