[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void DestroyContext_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
Assert.IsNotNull(inputMethodContext, "The inputMethodContext object should not be null!");
tlog.Debug(TAG, $"DestroyContext_NO_RETURN_VALUE() checked if inputMethodContext object is null");
[Test]
[Category("P1")]
- [Description("Test constructor. Check whether it works or not.")]
- [Property("SPEC", "Tizen.NUI.InputMethodContext.InputMethodContext C")]
- [Property("SPEC_URL", " - ")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
- public void InputMethodContext_INIT()
- {
- var inputMethodContext = new InputMethodContext();
- Assert.NotNull(inputMethodContext, "Should not be null");
- Assert.IsInstanceOf<InputMethodContext>(inputMethodContext, "Should be the instance of InputMethodContext Type");
- tlog.Debug(TAG, $"InputMethodContext_INIT() checked if inputMethodContext object is null");
- }
-
- [Test]
- [Category("P1")]
[Description("Test Activate. Check whether Activate works or not.")]
[Property("SPEC", "Tizen.NUI.InputMethodContext.Activate M")]
[Property("SPEC_URL", " - ")]
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public async Task Activate_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
Assert.IsNotNull(inputMethodContext, "The inputMethodContext object should not be null!");
tlog.Debug(TAG, $"Activate_NO_RETURN_VALUE() checked if inputMethodContext object is null");
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void Deactivate_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.Deactivate();
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void RestoreAfterFocusLost_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.SetRestoreAfterFocusLost(true);
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void SetRestoreAfterFocusLost_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.SetRestoreAfterFocusLost(true);
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void Reset_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.Reset();
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void NotifyCursorPosition_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.NotifyCursorPosition();
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void SetCursorPosition_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
uint cursorPosition = 0;
try
{
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void GetCursorPosition_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
inputMethodContext.SetCursorPosition(100);
uint pos = inputMethodContext.GetCursorPosition();
Assert.AreEqual(100, pos, "Should be equal to GetCursorPosition");
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void SetSurroundingText_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
string example = "Test";
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void GetSurroundingText_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
inputMethodContext.SetSurroundingText("Test");
string text = inputMethodContext.GetSurroundingText();
Assert.AreEqual("Test", text, "Should be equal to GetSurroundingText");
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void NotifyTextInputMultiLine_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.NotifyTextInputMultiLine(true);
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void GetTextDirection_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
if (inputMethodContext)
{
Assert.AreEqual(InputMethodContext.TextDirection.LeftToRight, inputMethodContext.GetTextDirection(), "Should be equal");
public void TextPrediction_SET_GET_VALUE()
{
/* TEST CODE */
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
inputMethodContext.TextPrediction = true;
Assert.AreEqual(true, inputMethodContext.TextPrediction, "Should be true but error");
inputMethodContext.TextPrediction = false;
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public async Task GetInputMethodArea_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
inputMethodContext.Activate();
inputMethodContext.ShowInputPanel();
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void SetInputPanelUserData_TEST()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.SetInputPanelUserData("layouttype = 1 & entrylimit = 255 & action = clearall_for_voice_commit & caller = org.volt.search - all");
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void GetInputPanelUserData_TEST()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.SetInputPanelUserData("layouttype = 1 & entrylimit = 255 & action = clearall_for_voice_commit & caller = org.volt.search - all");
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public async Task GetInputPanelState_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
Assert.IsNotNull(inputMethodContext, "InputMethodContext should not be null");
if (inputMethodContext.RestoreAfterFocusLost())
{
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void SetReturnKeyState_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.SetReturnKeyState(true);
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public async Task AutoEnableInputPanel_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
tlog.Debug(TAG, $"AutoEnableInputPanel_NO_RETURN_VALUE: start");
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public async Task ShowInputPanel_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.Activate();
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void HideInputPanel_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.Deactivate();
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public void GetKeyboardType_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
if (inputMethodContext)
{
Assert.AreEqual(InputMethodContext.KeyboardType.SoftwareKeyboard, inputMethodContext.GetKeyboardType(), "Should be not null");
[Property("AUTHOR", "Seoyeon Kim, seoyeon2.kim@samsung.com")]
public void SetMIMEType_TEST()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.SetMIMEType("text/plain,image/png,image/gif,application/pdf");
[Property("AUTHOR", "Seoyeon Kim, seoyeon2.kim@samsung.com")]
public void SetInputPanelPosition_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
try
{
inputMethodContext.SetInputPanelPosition(100, 100);
[Property("AUTHOR", "Seoyeon Kim, seoyeon2.kim@samsung.com")]
public void SetInputPanelLanguage_NO_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
InputMethodContext.InputPanelLanguage language = InputMethodContext.InputPanelLanguage.Alphabet;
try
{
[Property("AUTHOR", "Seoyeon Kim, seoyeon2.kim@samsung.com")]
public void GetInputPanelLanguage_RETURN_VALUE()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
if (inputMethodContext)
{
inputMethodContext.SetInputPanelLanguage(InputMethodContext.InputPanelLanguage.Automatic);
[Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
public async Task Activated_EVENT()
{
- var inputMethodContext = new InputMethodContext();
+ var _editor = new TextEditor();
+ var inputMethodContext = _editor.GetInputMethodContext();
if (inputMethodContext)
{
_temp = 0;