<?xml version="1.0" encoding="UTF-8" ?>
-<View x:Class="Tizen.NUI.BaseComponents.View"
+<View x:Class="Tizen.NUI.Devel.Tests.BaseXamlSample"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:l="clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<?xml version="1.0" encoding="UTF-8" ?>
-<Layer x:Class="Tizen.NUI.Layer"
+<Layer x:Class="Tizen.NUI.Devel.Tests.BaseXamlSample3"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:l="using:Tizen.NUI.Devel.Tests"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
public MyCustomAlgorithmInterface() : base()
{ }
- public override View GetNextFocusableView(View current, View proposed, View.FocusDirection direction)
+ public override View GetNextFocusableView(View current, View proposed, View.FocusDirection direction, string deviceName = "")
{
- return base.GetNextFocusableView(current, proposed, direction);
+ return base.GetNextFocusableView(current, proposed, direction, deviceName);
}
}
[Property("AUTHOR", "guowei.wang@samsung.com")]
public async Task WebPolicyDecisionMakerUrl()
{
- tlog.Debug(tag, $"WebViewResponsePolicyDecidedEventArgsConstructor START");
+ tlog.Debug(tag, $"ResponsePolicyDecided START");
var testingTarget = new Tizen.NUI.BaseComponents.WebView(runtimeArgs)
{
tlog.Debug(tag, $"WebPolicyDecisionMakerUrl END (OK)");
}
- private void OnResponsePolicyDecided(object sender, WebViewResponsePolicyDecidedEventArgs e)
+ private void OnResponsePolicyDecided(object sender, WebViewPolicyDecidedEventArgs e)
{
tlog.Info(tag, $"response policy decided, Url: {e.ResponsePolicyDecisionMaker.Url}");
tlog.Info(tag, $"response policy decided, Cookie: {e.ResponsePolicyDecisionMaker.Cookie}");
[Test]
[Category("P1")]
- [Description("WebViewResponsePolicyDecidedEventArgs constructor.")]
- [Property("SPEC", "Tizen.NUI.WebViewResponsePolicyDecidedEventArgs.WebViewResponsePolicyDecidedEventArgs C")]
+ [Description("WebViewPolicyDecidedEventArgs constructor.")]
+ [Property("SPEC", "Tizen.NUI.WebViewPolicyDecidedEventArgs.WebViewPolicyDecidedEventArgs C")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("COVPARAM", "")]
[Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WebViewResponsePolicyDecidedEventArgsConstructor()
+ public void WebViewPolicyDecidedEventArgsConstructor()
{
- tlog.Debug(tag, $"WebViewResponsePolicyDecidedEventArgsConstructor START");
+ tlog.Debug(tag, $"WebViewPolicyDecidedEventArgsConstructor START");
using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
{
WebPolicyDecisionMaker maker = new WebPolicyDecisionMaker(webview.SwigCPtr.Handle, false);
- var testingTarget = new WebViewResponsePolicyDecidedEventArgs(maker);
+ var testingTarget = new WebViewPolicyDecidedEventArgs(maker);
Assert.IsNotNull(testingTarget, "null handle");
- Assert.IsInstanceOf<WebViewResponsePolicyDecidedEventArgs>(testingTarget, "Should return WebViewResponsePolicyDecidedEventArgs instance.");
+ Assert.IsInstanceOf<WebViewPolicyDecidedEventArgs>(testingTarget, "Should return WebViewPolicyDecidedEventArgs instance.");
maker.Dispose();
}
- tlog.Debug(tag, $"WebViewResponsePolicyDecidedEventArgsConstructor END (OK)");
+ tlog.Debug(tag, $"WebViewPolicyDecidedEventArgsConstructor END (OK)");
}
[Test]
[Category("P1")]
- [Description("WebViewResponsePolicyDecidedEventArgs ResponsePolicyDecisionMaker.")]
- [Property("SPEC", "Tizen.NUI.WebViewResponsePolicyDecidedEventArgs.ResponsePolicyDecisionMaker A")]
+ [Description("WebViewPolicyDecidedEventArgs ResponsePolicyDecisionMaker.")]
+ [Property("SPEC", "Tizen.NUI.WebViewPolicyDecidedEventArgs.ResponsePolicyDecisionMaker A")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("COVPARAM", "")]
[Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WebViewResponsePolicyDecidedEventArgsResponsePolicyDecisionMaker()
+ public void WebViewPolicyDecidedEventArgsResponsePolicyDecisionMaker()
{
- tlog.Debug(tag, $"WebViewResponsePolicyDecidedEventArgsResponsePolicyDecisionMaker START");
+ tlog.Debug(tag, $"WebViewPolicyDecidedEventArgsResponsePolicyDecisionMaker START");
using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
{
WebPolicyDecisionMaker maker = new WebPolicyDecisionMaker(webview.SwigCPtr.Handle, false);
- var testingTarget = new WebViewResponsePolicyDecidedEventArgs(maker);
+ var testingTarget = new WebViewPolicyDecidedEventArgs(maker);
Assert.IsNotNull(testingTarget, "null handle");
- Assert.IsInstanceOf<WebViewResponsePolicyDecidedEventArgs>(testingTarget, "Should return WebViewResponsePolicyDecidedEventArgs instance.");
+ Assert.IsInstanceOf<WebViewPolicyDecidedEventArgs>(testingTarget, "Should return WebViewPolicyDecidedEventArgs instance.");
var result = testingTarget.ResponsePolicyDecisionMaker;
tlog.Debug(tag, "ResponsePolicyDecisionMaker : " + result);
maker.Dispose();
}
- tlog.Debug(tag, $"WebViewResponsePolicyDecidedEventArgsResponsePolicyDecisionMaker END (OK)");
+ tlog.Debug(tag, $"WebViewPolicyDecidedEventArgsResponsePolicyDecisionMaker END (OK)");
}
}
}
try
{
- string widgetName = null;
- WidgetApplication.WidgetCreateFunction(ref widgetName);
+ Widget widget = new Widget();
+ global::System.IntPtr widgetPtr = widget.GetIntPtr();
+ WidgetApplication.WidgetCreateFunction(ref widgetPtr);
}
catch (Exception e)
{
try
{
var rl = new ResourcesLoader();
- var ret = rl.GetResource("layout/TotalSample.xaml", typeof(UIElement).Assembly, null);
+ var ret = rl.GetResource("layout/TotalSample.xaml", typeof(UIElement).Assembly, null, null);
Assert.IsNotNull(ret, "Should not be null");
}
catch (Exception e)
[Test]
[Category("P1")]
- [Description("Accessibility GetStatus.")]
- [Property("SPEC", "Tizen.NUI.Accessibility.GetStatus M")]
+ [Description("Accessibility IsEnabled.")]
+ [Property("SPEC", "Tizen.NUI.Accessibility.IsEnabled A")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
+ [Property("CRITERIA", "PRO")]
[Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityGetStatus()
+ public void AccessibilityIsEnabled()
{
- tlog.Debug(tag, $"AccessibilityGetStatus START");
+ tlog.Debug(tag, $"AccessibilityIsEnabled START");
try
{
- var result = Accessibility.Accessibility.GetStatus();
+ var result = Accessibility.Accessibility.IsEnabled;
tlog.Debug(tag, "Status : " + result);
}
catch (Exception e)
Assert.Fail("Caught Exception : Failed!");
}
- tlog.Debug(tag, $"AccessibilityGetStatus END (OK)");
+ tlog.Debug(tag, $"AccessibilityIsEnabled END (OK)");
}
[Test]
[Test]
[Category("P1")]
- [Description("View IsResourcesCreated.")]
- [Property("SPEC", "Tizen.NUI.View.IsResourcesCreated A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewIsResourcesCreated()
- {
- tlog.Debug(tag, $"ViewIsResourcesCreated START");
-
- var testingTarget = new MyView()
- {
- Layout = new LinearLayout(),
- };
- Assert.IsNotNull(testingTarget, "null handle");
- Assert.IsInstanceOf<View>(testingTarget, "Should return View instance.");
-
- var result = testingTarget.IsResourcesCreated;
- tlog.Debug(tag, "IsResourcesCreated : " + result);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"ViewIsResourcesCreated END (OK)");
- }
-
- [Test]
- [Category("P1")]
[Description("View KeyInputFocus.")]
[Property("SPEC", "Tizen.NUI.View.KeyInputFocus A")]
[Property("SPEC_URL", "-")]
private string url = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/picture.png";
private string lottiePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/lottie.json";
- internal class MyAddressCollection : AddressCollection
+ internal class MyView : View
{
- public MyAddressCollection(IntPtr collection) : base(collection)
+ public MyView() : base()
{ }
- public void OnReleaseHandle()
+ public string GetAccessibilityAttributes(string key)
{
- base.ReleaseHandle();
+ return AccessibilityAttributes[key];
}
- }
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewAccessibility.Address constructor.")]
- [Property("SPEC", "Tizen.NUI.ViewAccessibility.Address.Address C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewAccessibilityAddressConstructor()
- {
- tlog.Debug(tag, $"ViewAccessibilityAddressConstructor START");
-
- var testingTarget = new Address("ViewAccessibility", lottiePath);
- Assert.IsNotNull(testingTarget, "Can't create success object Address");
- Assert.IsInstanceOf<Address>(testingTarget, "Should be an instance of Address type.");
-
- tlog.Debug(tag, $"ViewAccessibilityAddressConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewAccessibility.AddressCollection constructor.")]
- [Property("SPEC", "Tizen.NUI.ViewAccessibility.AddressCollection.Address C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewAccessibilityAddressCollectionConstructor()
- {
- tlog.Debug(tag, $"ViewAccessibilityAddressCollectionConstructor START");
-
- using (View view = new ImageView())
+ public void SetAccessibilityAttributes(string key, string value)
{
- var testingTarget = new AddressCollection(Interop.ControlDevel.DaliToolkitDevelControlNewGetAccessibilityRelations(view.SwigCPtr));
- Assert.IsNotNull(testingTarget, "Can't create success object AddressCollection");
- Assert.IsInstanceOf<AddressCollection>(testingTarget, "Should be an instance of AddressCollection type.");
+ AccessibilityAttributes[key] = value;
}
- tlog.Debug(tag, $"ViewAccessibilityAddressCollectionConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewAccessibility.AddressCollection IsInvalid.")]
- [Property("SPEC", "Tizen.NUI.ViewAccessibility.AddressCollection.IsInvalid A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewAccessibilityAddressCollectionIsInvalid()
- {
- tlog.Debug(tag, $"ViewAccessibilityAddressCollectionIsInvalid START");
-
- using (View view = new ImageView())
+ public void ClearAccessibilityAttributes()
{
- var testingTarget = new AddressCollection(Interop.ControlDevel.DaliToolkitDevelControlNewGetAccessibilityRelations(view.SwigCPtr));
- Assert.IsNotNull(testingTarget, "Can't create success object AddressCollection");
- Assert.IsInstanceOf<AddressCollection>(testingTarget, "Should be an instance of AddressCollection type.");
-
- Assert.IsFalse(testingTarget.IsInvalid);
+ AccessibilityAttributes.Clear();
}
- tlog.Debug(tag, $"ViewAccessibilityAddressCollectionIsInvalid END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewAccessibility.AddressCollection GetRelationSize.")]
- [Property("SPEC", "Tizen.NUI.ViewAccessibility.AddressCollection.GetRelationSize M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewAccessibilityAddressCollectionGetRelationSize()
- {
- tlog.Debug(tag, $"ViewAccessibilityAddressCollectionGetRelationSize START");
-
- using (View view = new ImageView())
+ public void RemoveAccessibilityAttributes(string key)
{
- var testingTarget = new AddressCollection(Interop.ControlDevel.DaliToolkitDevelControlNewGetAccessibilityRelations(view.SwigCPtr));
- Assert.IsNotNull(testingTarget, "Can't create success object AddressCollection");
- Assert.IsInstanceOf<AddressCollection>(testingTarget, "Should be an instance of AddressCollection type.");
-
- try
- {
- testingTarget.GetRelationSize(AccessibilityRelationType.DetailsFor);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
+ AccessibilityAttributes.Remove(key);
}
-
- tlog.Debug(tag, $"ViewAccessibilityAddressCollectionGetRelationSize END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("ViewAccessibility.AddressCollection ReleaseHandle.")]
- [Property("SPEC", "Tizen.NUI.ViewAccessibility.AddressCollection.ReleaseHandle M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewAccessibilityAddressCollectionReleaseHandle()
+ [SetUp]
+ public void Init()
{
- tlog.Debug(tag, $"ViewAccessibilityAddressCollectionReleaseHandle START");
-
- using (View view = new ImageView())
- {
- var testingTarget = new MyAddressCollection(Interop.ControlDevel.DaliToolkitDevelControlNewGetAccessibilityRelations(view.SwigCPtr));
- Assert.IsNotNull(testingTarget, "Can't create success object AddressCollection");
- Assert.IsInstanceOf<AddressCollection>(testingTarget, "Should be an instance of AddressCollection type.");
-
- try
- {
- testingTarget.OnReleaseHandle();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
- }
+ tlog.Info(tag, "Init() is called!");
+ }
- tlog.Debug(tag, $"ViewAccessibilityAddressCollectionReleaseHandle END (OK)");
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
}
[Test]
{
tlog.Debug(tag, $"ViewAccessibilityViewRemoveAccessibilityAttribute START");
- var testingTarget = new View();
+ var testingTarget = new MyView();
Assert.IsNotNull(testingTarget, "Can't create success object View");
Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
- testingTarget.AccessibilityAttributes["MyView"] = "test";
+ testingTarget.SetAccessibilityAttributes("view", "test");
try
{
- testingTarget.AccessibilityAttributes.Remove("MyView");
+ testingTarget.RemoveAccessibilityAttributes("view");
}
catch (Exception e)
{
Assert.Fail("Caught Exception: Failed!");
}
- Assert.IsEmpty(testingTarget.AccessibilityAttributes);
+ Assert.IsEmpty(testingTarget.GetAccessibilityAttributes("view"));
testingTarget.Dispose();
tlog.Debug(tag, $"ViewAccessibilityViewRemoveAccessibilityAttribute END (OK)");
{
tlog.Debug(tag, $"ViewAccessibilityViewClearAccessibilityAttributes START");
- var testingTarget = new View();
+ var testingTarget = new MyView();
Assert.IsNotNull(testingTarget, "Can't create success object View");
Assert.IsInstanceOf<View>(testingTarget, "Should be an instance of View type.");
- testingTarget.AccessibilityAttributes["MyView"] = "test";
+ testingTarget.SetAccessibilityAttributes("view", "test");
try
{
- testingTarget.AccessibilityAttributes.Clear();
+ testingTarget.ClearAccessibilityAttributes();
}
catch (Exception e)
{
Assert.Fail("Caught Exception: Failed!");
}
- Assert.IsEmpty(testingTarget.AccessibilityAttributes);
+ Assert.IsEmpty(testingTarget.GetAccessibilityAttributes("view"));
testingTarget.Dispose();
tlog.Debug(tag, $"ViewAccessibilityViewClearAccessibilityAttributes END (OK)");
private void OnUrlChange(object sender, WebViewUrlChangedEventArgs e) { }
private void OnFormRepostPolicyDecide(object sender, WebViewFormRepostPolicyDecidedEventArgs e) { }
private void OnFrameRender(object sender, EventArgs e) { }
- private void OnResponsePolicyDecide(object sender, WebViewResponsePolicyDecidedEventArgs e) { }
+ private void OnResponsePolicyDecide(object sender, WebViewPolicyDecidedEventArgs e) { }
private void OnCertificateConfirme(object sender, WebViewCertificateReceivedEventArgs e) { }
private void OnSslCertificateChange(object sender, WebViewCertificateReceivedEventArgs e) { }
private void OnHttpAuthRequeste(object sender, WebViewHttpAuthRequestedEventArgs e) { }
[Test]
[Category("P1")]
- [Description("GLWindow SetEglConfig")]
- [Property("SPEC", "Tizen.NUI.GLWindow.SetEglConfig M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void GLWindowSetEglConfig()
- {
- tlog.Debug(tag, $"GLWindowSetEglConfig START");
-
- var testingTarget = new GLWindow();
- Assert.IsNotNull(testingTarget, "Can't create success object GLWindow");
- Assert.IsInstanceOf<GLWindow>(testingTarget, "Should be an instance of GLWindow type.");
-
- try
- {
- testingTarget.SetEglConfig(true, true, 10, GLESVersion.Version20);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Destroy();
- tlog.Debug(tag, $"GLWindowSetEglConfig END (OK)");
- }
-
- [Test]
- [Category("P1")]
[Description("GLWindow Show")]
[Property("SPEC", "Tizen.NUI.GLWindow.Show M")]
[Property("SPEC_URL", "-")]
[Test]
[Category("P1")]
- [Description("GLWindow RegisterGlCallback")]
- [Property("SPEC", "Tizen.NUI.GLWindow.RegisterGlCallback M")]
+ [Description("GLWindow RegisterGLCallbacks")]
+ [Property("SPEC", "Tizen.NUI.GLWindow.RegisterGLCallbacks M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
- public void GLWindowRegisterGlCallback()
+ public void GLWindowRegisterGLCallbacks()
{
- tlog.Debug(tag, $"GLWindowRegisterGlCallback START");
+ tlog.Debug(tag, $"GLWindowRegisterGLCallbacks START");
string name = "myGLWindow";
Rectangle rectangle = new Rectangle(20, 20, 100, 100);
GLWindow a1 = new GLWindow(name, rectangle, true);
- a1.RegisterGlCallback(GLInit, GLRenderFrame, GLTerminate);
+ a1.RegisterGLCallbacks(GLInit, GLRenderFrame, GLTerminate);
a1.Destroy();
- tlog.Debug(tag, $"GLWindowRegisterGlCallback END (OK)");
+ tlog.Debug(tag, $"GLWindowRegisterGLCallbacks END (OK)");
}
[Test]
using Tizen.NUI.Components;
using Tizen.NUI.Xaml;
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.res.layout.MyResourceDictionary.xaml",
- "res.layout.MyResourceDictionary.xaml",
- typeof(ResourceDictionary))]
-
namespace Tizen.NUI.Devel.Tests
{
public class FocusEffect
public string[] Array { get; set; }
}
- [Tizen.NUI.Xaml.XamlFilePathAttribute("res/layout/MyResourceDictionary.xaml")]
- [Tizen.NUI.Xaml.XamlCompilationAttribute(global::Tizen.NUI.Xaml.XamlCompilationOptions.Compile)]
+
public partial class BaseXamlSample : View
{
public BaseXamlSample()
<?xml version="1.0" encoding="UTF-8" ?>
-<Layer x:Class="Tizen.NUI.Layer"
+<Layer x:Class="Tizen.NUI.Devel.Tests.BaseXamlSample2"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:l="clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
using Tizen.NUI.Components;
using Tizen.NUI.Xaml;
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.BaseXamlSample2.xaml",
- "testcase.public.Xaml.TotalSample.BaseXamlSample2.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.BaseXamlSample2))]
-
namespace Tizen.NUI.Devel.Tests
{
- [Tizen.NUI.Xaml.XamlFilePathAttribute("testcase\\public\\Xaml\\TotalSample\\BaseXamlSample2.xaml")]
- [Tizen.NUI.Xaml.XamlCompilationAttribute(global::Tizen.NUI.Xaml.XamlCompilationOptions.Compile)]
public partial class BaseXamlSample2 : Layer
{
public BaseXamlSample2()
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Binding;
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.BindablePropertiesAccessModifiers.xaml",
- "testcase.public.Xaml.TotalSample.BindablePropertiesAccessModifiers.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.BindablePropertiesAccessModifiers))]
-
namespace Tizen.NUI.Devel.Tests
{
public class AccessModifiersControl : View
}
}
- [Tizen.NUI.Xaml.XamlFilePathAttribute("testcase\\public\\Xaml\\TotalSample\\BindablePropertiesAccessModifiers.xaml")]
- [Tizen.NUI.Xaml.XamlCompilationAttribute(global::Tizen.NUI.Xaml.XamlCompilationOptions.Compile)]
public partial class BindablePropertiesAccessModifiers : View
{
internal class Data
public string Bar => "Bar";
}
- public AccessModifiersControl AMC;
-
public BindablePropertiesAccessModifiers()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(BindablePropertiesAccessModifiers));
<?xml version="1.0" encoding="UTF-8"?>
-<View
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:local="clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- x:Class="Tizen.NUI.Devel.Tests.BindingsCompiler" >
+<View x:Class="Tizen.NUI.Devel.Tests.BindingsCompiler"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ xmlns:local="clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests"
+ xmlns:sys="clr-namespace:System;assembly=mscorlib" >
- <View x:DataType="local:MockViewModel">
- <TextLabel Text="{Binding Text}" x:Name="label0" />
- <TextLabel Text="{Binding Path=Text}" x:Name="label1" />
- <TextLabel Text="{Binding Model.Text}" x:Name="label2" />
- <TextLabel Text="{Binding Model[3]}" x:Name="label3" />
- <TextLabel Text="{Binding}" x:Name="label4" x:DataType="sys:String"/>
- <TextLabel Text="{Binding I}" x:Name="label5" />
- <TextLabel Text="{Binding Model.Text}" x:Name="label6" x:DataType="local:MockStructViewModel" />
- <TextField Text="{Binding Text, Mode=TwoWay}" x:Name="entry0"/>
- <TextField Text="{Binding Model.Text, Mode=TwoWay}" x:Name="entry1" />
- <TextLabel Text="{Binding .}" x:Name="label7" x:DataType="sys:Int32"/>
- <TextLabel Text="{Binding Text, Mode=OneTime}" x:Name="label8" />
- <TextLabel Text="{Binding StructModel.Text, Mode=TwoWay}" x:Name="label9" />
- <TextLabel Text="{Binding StructModel.Model.Text, Mode=TwoWay}" x:Name="label10" />
- </View>
- <TextLabel Text="{Binding Text}" x:Name="labelWithUncompiledBinding" />
+ <View x:DataType="local:MockViewModel">
+ <TextLabel Text="{Binding Text}" x:Name="label0" />
+ <TextLabel Text="{Binding Path=Text}" x:Name="label1" />
+ <TextLabel Text="{Binding Model.Text}" x:Name="label2" />
+ <TextLabel Text="{Binding Model[3]}" x:Name="label3" />
+ <TextLabel Text="{Binding}" x:Name="label4" x:DataType="sys:String"/>
+ <TextLabel Text="{Binding I}" x:Name="label5" />
+ <TextLabel Text="{Binding Model.Text}" x:Name="label6" x:DataType="local:MockStructViewModel" />
+ <TextField Text="{Binding Text, Mode=TwoWay}" x:Name="entry0"/>
+ <TextField Text="{Binding Model.Text, Mode=TwoWay}" x:Name="entry1" />
+ <TextLabel Text="{Binding .}" x:Name="label7" x:DataType="sys:Int32"/>
+ <TextLabel Text="{Binding Text, Mode=OneTime}" x:Name="label8" />
+ <TextLabel Text="{Binding StructModel.Text, Mode=TwoWay}" x:Name="label9" />
+ <TextLabel Text="{Binding StructModel.Model.Text, Mode=TwoWay}" x:Name="label10" />
+ </View>
+ <TextLabel Text="{Binding Text}" x:Name="labelWithUncompiledBinding" />
</View>
\ No newline at end of file
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.BindingsCompiler.xaml",
- "testcase.public.Xaml.TotalSample.BindingsCompiler.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.BindingsCompiler))]
-
namespace Tizen.NUI.Devel.Tests
{
- [Tizen.NUI.Xaml.XamlFilePathAttribute("testcase\\public\\Xaml\\TotalSample\\BindingsCompiler.xaml")]
- [Tizen.NUI.Xaml.XamlCompilationAttribute(global::Tizen.NUI.Xaml.XamlCompilationOptions.Compile)]
public partial class BindingsCompiler : View
{
- public TextLabel label0;
- public TextLabel label1;
- public TextLabel label2;
- public TextLabel label3;
- public TextLabel label4;
- public TextLabel label5;
- public TextLabel label6;
- public TextLabel label7;
- public TextLabel label8;
- public TextLabel label9;
- public TextLabel label10;
- public TextField entry0;
- public TextField entry1;
-
public BindingsCompiler()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(BindingsCompiler));
using NUnit.Framework;
using Tizen.NUI.BaseComponents;
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.BuiltInConversions.xaml",
- "testcase.public.Xaml.TotalSample.BuiltInConversions.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.BuiltInConversions))]
-
namespace Tizen.NUI.Devel.Tests
{
- [Tizen.NUI.Xaml.XamlFilePathAttribute("testcase\\public\\Xaml\\TotalSample\\BuiltInConversions.xaml")]
- [Tizen.NUI.Xaml.XamlCompilationAttribute(global::Tizen.NUI.Xaml.XamlCompilationOptions.Compile)]
public partial class BuiltInConversions : View
{
- public TextLabel label0;
- public TextLabel label1;
- public TextLabel label2;
-
public BuiltInConversions ()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(BuiltInConversions));
using Tizen.NUI.Components;
using Tizen.NUI.Xaml;
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.ClockView.xaml", "testcase.public.Xaml.TotalSample.ClockView.xaml", typeof(global::Tizen.NUI.Devel.Tests.ClockView))]
-
namespace Tizen.NUI.Devel.Tests
{
class ClockViewModel : INotifyPropertyChanged
}
}
- [Tizen.NUI.Xaml.XamlFilePathAttribute("testcase\\public\\Xaml\\TotalSample\\ClockView.xaml")]
- [Tizen.NUI.Xaml.XamlCompilationAttribute(global::Tizen.NUI.Xaml.XamlCompilationOptions.Compile)]
public partial class ClockView : View
{
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.CustomXamlView.xaml",
- "testcase.public.Xaml.TotalSample.CustomXamlView.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.CustomXamlView))]
-
namespace Tizen.NUI.Devel.Tests
{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\CustomXamlView.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
public partial class CustomXamlView : View
{
public CustomXamlView ()
+++ /dev/null
-<BindableObject xmlns="http://tizen.org/Tizen.NUI/2018/XAML" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- x:Class="Tizen.NUI.Devel.Tests.DuplicatePropertyElements">
- <BindableObject.BindingContext>0</BindableObject.BindingContext>
- <BindableObject.BindingContext>0</BindableObject.BindingContext>
-</BindableObject>
+++ /dev/null
-using NUnit.Framework;
-using System;
-using Tizen.NUI.Binding;
-using Tizen.NUI.Xaml;
-
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.DuplicatePropertyElements.xaml",
- "testcase.public.Xaml.TotalSample.DuplicatePropertyElements.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.DuplicatePropertyElements))]
-
-namespace Tizen.NUI.Devel.Tests
-{
- [Tizen.NUI.Xaml.XamlFilePathAttribute("testcase\\public\\Xaml\\TotalSample\\DuplicatePropertyElements.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
- public partial class DuplicatePropertyElements : BindableObject
- {
- public DuplicatePropertyElements()
- {
- global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(DuplicatePropertyElements));
- }
- }
-
- [TestFixture]
- public class DuplicatePropertyElementsTests
- {
- [SetUp]
- public void Setup()
- {
- }
-
- [TearDown]
- public void TearDown()
- {
- }
-
- [Test]
- [Category("P1")]
- [Description("Extensions LoadFromXaml.")]
- [Property("SPEC", "Tizen.NUI.Xaml.Extensions.LoadFromXaml M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ThrowXamlParseException()
- {
- Assert.Throws<ArgumentException>(() => new DuplicatePropertyElements());
- }
- }
-}
+++ /dev/null
-<BindableObject xmlns="http://tizen.org/Tizen.NUI/2018/XAML" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:system="clr-namespace:System;assembly=mscorlib.dll" x:Class="Tizen.NUI.Devel.Tests.DuplicateXArgumentsElements">
- <BindableObject.BindingContext>
- <system:Uri>
- <x:Arguments>https://example.com/</x:Arguments>
- <x:Arguments>https://example.com/</x:Arguments>
- </system:Uri>
- </BindableObject.BindingContext>
-</BindableObject>
+++ /dev/null
-using NUnit.Framework;
-using System;
-using Tizen.NUI.Binding;
-using Tizen.NUI.Xaml;
-
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.DuplicateXArgumentsElements.xaml",
- "testcase.public.Xaml.TotalSample.DuplicateXArgumentsElements.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.DuplicateXArgumentsElements))]
-
-namespace Tizen.NUI.Devel.Tests
-{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\DuplicateXArgumentsElements.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
- public partial class DuplicateXArgumentsElements : BindableObject
- {
- public DuplicateXArgumentsElements()
- {
- global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(DuplicateXArgumentsElements));
- }
-
-
- }
-
- [TestFixture]
- public class DuplicateXArgumentsElementsTests
- {
- [SetUp]
- public void Setup()
- {
- }
-
- [TearDown]
- public void TearDown()
- {
- }
-
- [Test]
- [Category("P1")]
- [Description("Extensions LoadFromXaml.")]
- [Property("SPEC", "Tizen.NUI.Xaml.Extensions.LoadFromXaml M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void DuplicateXArgumentsElementsTest()
- {
- Assert.Throws<ArgumentException>(() => new DuplicateXArgumentsElements());
- }
- }
-}
<?xml version="1.0" encoding="UTF-8"?>
-<ContentPage xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+<View xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Tizen.NUI.Devel.Tests.DynamicResource">
<TextLabel Text="{DynamicResource FooBar}" x:Name="label0" />
-</ContentPage>
\ No newline at end of file
+</View>
\ No newline at end of file
using Tizen.NUI.Binding;
using Tizen.NUI.Xaml;
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.DynamicResource.xaml",
- "testcase.public.Xaml.TotalSample.DynamicResource.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.DynamicResource))]
-
namespace Tizen.NUI.Devel.Tests
{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\DynamicResource.xaml")]
- [XamlCompilation(XamlCompilationOptions.Compile)]
public partial class DynamicResource : View
{
- public TextLabel label0;
-
public DynamicResource ()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(DynamicResource));
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<local:MockView xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:local="clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests"
- x:Class="Tizen.NUI.Devel.Tests.FactoryMethodMissingCtor">
- <local:MockView.Content>
- <local:MockFactory>
- <x:Arguments>
- <x:Object/>
- <x:String>bar</x:String>
- <x:Int32>42</x:Int32>
- </x:Arguments>
- </local:MockFactory>
- </local:MockView.Content>
-</local:MockView>
\ No newline at end of file
+++ /dev/null
-using System;
-using NUnit.Framework;
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Xaml;
-
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.FactoryMethodMissingCtor.xaml",
- "testcase.public.Xaml.TotalSample.FactoryMethodMissingCtor.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.FactoryMethodMissingCtor))]
-
-namespace Tizen.NUI.Devel.Tests
-{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\FactoryMethodMissingCtor.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
- public partial class FactoryMethodMissingCtor : MockView
- {
- public FactoryMethodMissingCtor()
- {
- global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(FactoryMethodMissingCtor));
- }
- }
-
- [TestFixture]
- public class FactoryMethodMissingCtorTests
- {
- [SetUp] public void Setup() { }
-
- [TearDown] public void TearDown() { }
-
- [Test]
- [Category("P1")]
- [Description("Extensions LoadFromXaml.")]
- [Property("SPEC", "Tizen.NUI.Xaml.Extensions.LoadFromXaml M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void FactoryMethodMissingCtorThrow()
- {
- Assert.Throws<MissingMethodException>(() => new FactoryMethodMissingCtor());
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<local:MockView xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:local="clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests"
- x:Class="Tizen.NUI.Devel.Tests.FactoryMethodMissingMethod">
- <local:MockView.Content>
- <local:MockFactory x:FactoryMethod="Factory">
- <x:Arguments>
- <x:Object/>
- <x:String>bar</x:String>
- <x:Int32>42</x:Int32>
- </x:Arguments>
- </local:MockFactory>
- </local:MockView.Content>
-</local:MockView>
\ No newline at end of file
+++ /dev/null
-using System;
-using NUnit.Framework;
-using Tizen.NUI.Xaml;
-
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.FactoryMethodMissingMethod.xaml",
- "testcase.public.Xaml.TotalSample.FactoryMethodMissingMethod.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.FactoryMethodMissingCtor))]
-
-namespace Tizen.NUI.Devel.Tests
-{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\FactoryMethodMissingMethod.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
- public partial class FactoryMethodMissingMethod : MockView
- {
- public FactoryMethodMissingMethod()
- {
- global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(FactoryMethodMissingMethod));
- }
- }
-
- [TestFixture]
- public class FactoryMethodMissingMethodTests
- {
- [SetUp]
- public void SetUp()
- {
- }
-
- [Test]
- [Category("P1")]
- [Description("Extensions LoadFromXaml.")]
- [Property("SPEC", "Tizen.NUI.Xaml.Extensions.LoadFromXaml M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void FactoryMethodMissingMethodThrow()
- {
- //Assert.Throws<XamlParseException>(() => new FactoryMethodMissingMethod());
- var fm = new FactoryMethodMissingMethod();
- Assert.True(true, "Should go here");
- }
- }
-}
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.FactoryMethods.xaml",
- "testcase.public.Xaml.TotalSample.FactoryMethods.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.FactoryMethods))]
-
namespace Tizen.NUI.Devel.Tests
{
public class MockView : View
}
}
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\FactoryMethods.xaml")]
- [XamlCompilation(XamlCompilationOptions.Compile)]
public partial class FactoryMethods : View
{
- public MockView v0;
- public MockView v1;
- public MockView v2;
- public MockView v3;
- public MockView v4;
- public MockView v5;
- public MockView v6;
- public MockView v7;
- public MockView v8;
-
public FactoryMethods ()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(FactoryMethods));
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.FieldModifier.xaml",
- "testcase.public.Xaml.TotalSample.FieldModifier.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.FieldModifier))]
-
namespace Tizen.NUI.Devel.Tests
{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\FieldModifier.xaml")]
- [XamlCompilation(XamlCompilationOptions.Compile)]
public partial class FieldModifier : View
{
- public TextLabel privateLabel;
- public TextLabel internalLabel;
- public TextLabel publicLabel;
-
public FieldModifier()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(FieldModifier));
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.FindByName.xaml",
- "testcase.public.Xaml.TotalSample.FindByName.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.FindByName))]
-
namespace Tizen.NUI.Devel.Tests
{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\FindByName.xaml")]
- [XamlCompilation(XamlCompilationOptions.Compile)]
public partial class FindByName : View
{
- public FindByName root;
- public TextLabel label0;
-
public FindByName ()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(FindByName));
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<View xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:local="clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests"
- x:Class="Tizen.NUI.Devel.Tests.GenericCollections">
- <TextLabel x:Name="label0">
- <local:AttachedBP.AttachedBP>
- <local:GenericCollection>
- <x:String>Foo</x:String>
- </local:GenericCollection>
- </local:AttachedBP.AttachedBP>
- </TextLabel>
-</View>
\ No newline at end of file
+++ /dev/null
-using System;
-using System.Collections.ObjectModel;
-using NUnit.Framework;
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Binding;
-using Tizen.NUI.Xaml;
-
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.GenericCollections.xaml",
- "testcase.public.Xaml.TotalSample.GenericCollections.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.GenericCollections))]
-
-namespace Tizen.NUI.Devel.Tests
-{
- public class AttachedBP
- {
- public static readonly BindableProperty AttachedBPProperty = BindableProperty.CreateAttached (
- "AttachedBP",
- typeof(GenericCollection),
- typeof(AttachedBP),
- null);
-
- public static GenericCollection GetAttachedBP(BindableObject bindable)
- {
- throw new NotImplementedException();
- }
- }
-
- public class GenericCollection : ObservableCollection<object>
- {
- }
-
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\GenericCollections.xaml")]
- [XamlCompilation(XamlCompilationOptions.Compile)]
- public partial class GenericCollections : View
- {
- public TextLabel label0;
-
- public GenericCollections ()
- {
- global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(GenericCollections));
- label0 = global::Tizen.NUI.Binding.NameScopeExtensions.FindByName<TextLabel>(this, "label0");
- }
-
-
- }
-
- [TestFixture]
- public class GenericCollectionsTests
- {
- [SetUp]
- public void Setup()
- {
- }
-
- [TearDown]
- public void TearDown()
- {
- }
-
- [Test]
- [Category("P1")]
- [Description("Extensions LoadFromXaml.")]
- [Property("SPEC", "Tizen.NUI.Xaml.Extensions.LoadFromXaml M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void SupportsCrookedGenericScenarios()
- {
- var p = new GenericCollections();
- Assert.AreEqual("Foo", (p.label0.GetValue(AttachedBP.AttachedBPProperty) as GenericCollection)[0]);
- }
- }
-}
\ No newline at end of file
using Tizen.NUI.Components;
using Tizen.NUI.Xaml;
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.HslColorScrollView.xaml", "testcase.public.Xaml.TotalSample.HslColorScrollView.xaml", typeof(global::Tizen.NUI.Devel.Tests.HslColorScrollView))]
-
namespace Tizen.NUI.Devel.Tests
{
public class HslViewModel : INotifyPropertyChanged
}
}
- [Tizen.NUI.Xaml.XamlFilePathAttribute("testcase\\public\\Xaml\\TotalSample\\HslColorScrollView.xaml")]
- [Tizen.NUI.Xaml.XamlCompilationAttribute(global::Tizen.NUI.Xaml.XamlCompilationOptions.Compile)]
public partial class HslColorScrollView : View
{
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.I8.xaml",
- "testcase.public.Xaml.TotalSample.I8.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.I8))]
-
namespace Tizen.NUI.Devel.Tests
{
using tlog = Tizen.Log;
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\I8.xaml")]
- [XamlCompilation(XamlCompilationOptions.Compile)]
public partial class I8 : View
{
public long l0 { get; set; }
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.McIgnorable.xaml",
- "testcase.public.Xaml.TotalSample.McIgnorable.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.McIgnorable))]
-
namespace Tizen.NUI.Devel.Tests
{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\McIgnorable.xaml")]
- [XamlCompilation(XamlCompilationOptions.Compile)]
public partial class McIgnorable : View
{
public McIgnorable ()
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.ResourceDictionaryWithInvalidSource.xaml",
- "testcase.public.Xaml.TotalSample.ResourceDictionaryWithInvalidSource.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.ResourceDictionaryWithInvalidSource))]
-
namespace Tizen.NUI.Devel.Tests
{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\ResourceDictionaryWithInvalidSource.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
public partial class ResourceDictionaryWithInvalidSource : View
{
public ResourceDictionaryWithInvalidSource()
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.SetStyleIdFromXName.xaml",
- "testcase.public.Xaml.TotalSample.SetStyleIdFromXName.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.SetStyleIdFromXName))]
-
namespace Tizen.NUI.Devel.Tests
{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\SetStyleIdFromXName.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
public partial class SetStyleIdFromXName : View
{
- public TextLabel label0;
- public TextLabel label1;
- public TextLabel label2;
-
public SetStyleIdFromXName()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(SetStyleIdFromXName));
using Tizen.NUI.Components;
using Tizen.NUI.Xaml;
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.StaticDateTimeView.xaml", "testcase.public.Xaml.TotalSample.StaticDateTimeView.xaml", typeof(global::Tizen.NUI.Devel.Tests.StaticDateTimeView))]
-
namespace Tizen.NUI.Devel.Tests
{
- [Tizen.NUI.Xaml.XamlFilePathAttribute("testcase\\public\\Xaml\\TotalSample\\StaticDateTimeView.xaml")]
- [Tizen.NUI.Xaml.XamlCompilationAttribute(global::Tizen.NUI.Xaml.XamlCompilationOptions.Compile)]
public partial class StaticDateTimeView : View
{
public StaticDateTimeView()
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.StringLiterals.xaml",
- "testcase.public.Xaml.TotalSample.StringLiterals.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.StringLiterals))]
namespace Tizen.NUI.Devel.Tests
{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\StringLiterals.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
public partial class StringLiterals : View
{
- public TextLabel label0;
- public TextLabel label1;
- public TextLabel label2;
- public TextLabel label3;
-
public StringLiterals ()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(StringLiterals));
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.TestXmlnsUsing.xaml",
- "testcase.public.Xaml.TotalSample.TestXmlnsUsing.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.TestXmlnsUsing))]
-
namespace Tizen.NUI.Devel.Tests
{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\TestXmlnsUsing.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
public partial class TestXmlnsUsing : View
{
- public CustomXamlView view0;
-
public TestXmlnsUsing()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(TestXmlnsUsing));
public TotalSample(bool examl = false)
{
- if (examl)
+ if (!examl)
{
- LoadEXaml();
+ LoadXaml();
}
else
{
+++ /dev/null
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-using Tizen.NUI.Xaml;
-[assembly: global::Tizen.NUI.Xaml.XamlResourceIdAttribute("Tizen.NUI.Devel.Tests.res.layout.TotalSample.xaml", "res/layout/TotalSample.xaml", typeof(global::Tizen.NUI.Devel.Tests.TotalSample))]
-
-namespace Tizen.NUI.Devel.Tests
-{
-
-
- [Tizen.NUI.Xaml.XamlFilePathAttribute("res\\layout\\TotalSample.xaml")]
- [Tizen.NUI.Xaml.XamlCompilationAttribute(global::Tizen.NUI.Xaml.XamlCompilationOptions.Compile)]
- public partial class TotalSample : global::Tizen.NUI.Devel.Tests.UIElement
- {
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Tizen.NUI.Xaml.Build.Tasks.XamlG", "1.0.6.0")]
- public global::Tizen.NUI.Devel.Tests.UIElement t1;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Tizen.NUI.Xaml.Build.Tasks.XamlG", "1.0.6.0")]
- public global::Tizen.NUI.Devel.Tests.UIElement t2;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Tizen.NUI.Xaml.Build.Tasks.XamlG", "1.0.6.0")]
- public global::Tizen.NUI.Devel.Tests.UIElement t3;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Tizen.NUI.Xaml.Build.Tasks.XamlG", "1.0.6.0")]
- private object eXamlData;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Tizen.NUI.Xaml.Build.Tasks.XamlG", "1.0.6.0")]
- private void InitializeComponent()
- {
- //eXamlData = global::Tizen.NUI.EXaml.EXamlExtensions.LoadFromEXamlByRelativePath(this, GetEXamlPath());
- global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(TotalSample));
- t1 = global::Tizen.NUI.Binding.NameScopeExtensions.FindByName<global::Tizen.NUI.Devel.Tests.UIElement>(this, "t1");
- t2 = global::Tizen.NUI.Binding.NameScopeExtensions.FindByName<global::Tizen.NUI.Devel.Tests.UIElement>(this, "t2");
- t3 = global::Tizen.NUI.Binding.NameScopeExtensions.FindByName<global::Tizen.NUI.Devel.Tests.UIElement>(this, "t3");
- }
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Tizen.NUI.Xaml.Build.Tasks.XamlG", "1.0.6.0")]
- private string GetEXamlPath()
- {
- return default(string);
- }
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Tizen.NUI.Xaml.Build.Tasks.XamlG", "1.0.6.0")]
- private void RemoveEventsInXaml()
- {
- global::Tizen.NUI.EXaml.EXamlExtensions.RemoveEventsInXaml(eXamlData);
- }
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Tizen.NUI.Xaml.Build.Tasks.XamlG", "1.0.6.0")]
- private void ExitXaml()
- {
- RemoveEventsInXaml();
- global::Tizen.NUI.EXaml.EXamlExtensions.DisposeXamlElements(this);
- }
- }
-}
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.XArray.xaml",
- "testcase.public.Xaml.TotalSample.XArray.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.XArray))]
namespace Tizen.NUI.Devel.Tests
{
public object Content { get; set; }
}
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\XArray.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
public partial class XArray : MockBindableForArray
{
public XArray ()
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.XReference.xaml",
- "testcase.public.Xaml.TotalSample.XReference.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.XReference))]
-
namespace Tizen.NUI.Devel.Tests
{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\XReference.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
public partial class XReference : View
{
- public TextLabel label0;
- public TextLabel label1;
- public TextField entry;
-
public XReference ()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(XReference));
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Xaml;
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.XStatic.xaml",
- "testcase.public.Xaml.TotalSample.XStatic.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.XStatic))]
-
namespace Tizen.NUI.Devel.Tests
{
Third,
}
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\XStatic.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
public partial class XStatic : View
{
- public TextLabel staticproperty;
- public TextLabel memberisoptional;
- public TextLabel color;
- public TextLabel constant;
- public TextLabel field;
- public TextLabel field2;
- public TextLabel nestedField;
-
-
public XStatic ()
{
global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(XStatic));
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<View xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:local="clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests"
- x:Class="Tizen.NUI.Devel.Tests.XStaticException">
- <TextLabel x:Name="shouldThrow"
- Text="{x:Static Member=local:MockxStatic.InstanceProperty}" />
-</View>
\ No newline at end of file
+++ /dev/null
-using NUnit.Framework;
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Binding.Internals;
-using Tizen.NUI.Xaml;
-
-[assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.XStaticException.xaml",
- "testcase.public.Xaml.TotalSample.XStaticException.xaml",
- typeof(global::Tizen.NUI.Devel.Tests.XStaticException))]
-
-namespace Tizen.NUI.Devel.Tests
-{
- [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\XStaticException.xaml")]
- [XamlCompilation(XamlCompilationOptions.Skip)]
- public partial class XStaticException : View
- {
- public XStaticException()
- {
- global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(XStaticException));
- }
-
- }
-
-
- [TestFixture]
- public class XStaticExceptionTests
- {
- //{x:Static Member=prefix:typeName.staticMemberName}
- //{x:Static prefix:typeName.staticMemberName}
-
- //The code entity that is referenced must be one of the following:
- // - A constant
- // - A static property
- // - A field
- // - An enumeration value
- // All other cases should throw
-
- [SetUp]
- public void Setup()
- {
-
- //there's a test not resetting the values correctly, but can't find which one...
-#pragma warning disable 0618
- ResourceLoader.ExceptionHandler = null;
- Xaml.Internals.XamlLoader.DoNotThrowOnExceptions = false;
-#pragma warning restore 0618
- }
-
- [TearDown]
- public void TearDown()
- {
- }
-
- [Test]
- [Category("P1")]
- [Description("Extensions LoadFromXaml.")]
- [Property("SPEC", "Tizen.NUI.Xaml.Extensions.LoadFromXaml M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ThrowOnInstanceProperty()
- {
- //Assert.Throws<XamlParseException>(() => new XStaticException());
- var se = new XStaticException();
- Assert.True(true, "Should go here");
- }
- }
-}
\ No newline at end of file