[Property("SPEC", "Tizen.NUI.BaseComponents.TextEditor.ScrollStateChanged E")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]\r
+ [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
public async Task ScrollStateChanged_CHECK_EVENT()
{
var textEditor = new TextEditor()
[Test]
[Category("P1")]
+ [Description("Test SelectionChanged.Check whether SelectionChanged defined in the spec is callable.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.TextEditor.SelectionChanged E")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "EVL")]
+ [Property("AUTHOR", "Abdullah Ghujeh, a.ghujeh@samsung.com")]
+ public async Task SelectionChanged_CHECK_EVENT()
+ {
+ var textEditor = new TextEditor();
+ textEditor.Text = "123456789";
+ Window.Instance.GetDefaultLayer().Add(textEditor);
+ bool flag = false;
+ EventHandler handler = (obj, e) =>
+ {
+ flag = true;
+ };
+
+ textEditor.SelectionChanged += handler;
+ textEditor.SelectWholeText();
+ await Task.Delay(500);
+
+ Assert.IsTrue(flag, "SelectionChanged is not be called");
+ textEditor.SelectionChanged -= handler;
+ }
+
+ [Test]
+ [Category("P1")]
[Description("Test FontSizeScale. Check the default FontSizeScale and whether FontSizeScale is readable and writable.")]
[Property("SPEC", "Tizen.NUI.BaseComponents.TextEditor.FontSizeScale A")]
[Property("SPEC_URL", "-")]
using System;
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
+using System.Threading.Tasks;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
Assert.IsInstanceOf<TextField>(textField, "Should be an instance of TextField type.");
textField.MatchSystemLanguageDirection = false;
- Assert.AreEqual(false, textField.MatchSystemLanguageDirection, "should be same");\r
-\r
+ Assert.AreEqual(false, textField.MatchSystemLanguageDirection, "should be same");
+
textField.MatchSystemLanguageDirection = true;
Assert.AreEqual(true, textField.MatchSystemLanguageDirection, "should be same");
}
[Test]
[Category("P1")]
+ [Description("Test SelectionChanged.Check whether SelectionChanged defined in the spec is callable.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.TextField.SelectionChanged E")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "EVL")]
+ [Property("AUTHOR", "Abdullah Ghujeh, a.ghujeh@samsung.com")]
+ public async Task SelectionChanged_CHECK_EVENT()
+ {
+ var textField = new TextField();
+ textField.Text = "123456789";
+ Window.Instance.GetDefaultLayer().Add(textField);
+ bool flag = false;
+ EventHandler handler = (obj, e) =>
+ {
+ flag = true;
+ };
+
+ textField.SelectionChanged += handler;
+ textField.SelectWholeText();
+ await Task.Delay(500);
+
+ Assert.IsTrue(flag, "SelectionChanged is not be called");
+ textField.SelectionChanged -= handler;
+ }
+
+ [Test]
+ [Category("P1")]
[Description("Test FontSizeScale. Check the default FontSizeScale whether FontSizeScale is readable and writable.")]
[Property("SPEC", "Tizen.NUI.BaseComponents.TextField.FontSizeScale A")]
[Property("SPEC_URL", "-")]