X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-TextEditor.cpp;h=476da78706d2a8cf39c483b94ec04cc449fc67c4;hp=9db4289d04677e30cac9db8759abcab6dab805b8;hb=b020756d745758d3f23f3ed6354888364c0960a3;hpb=3e2d3713a2c8d2a31955830a973d0ca15fc116af diff --git a/automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp b/automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp index 9db4289..476da78 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp @@ -691,6 +691,14 @@ int UtcDaliTextEditorSetPropertyP(void) editor.SetProperty(TextEditor::Property::HORIZONTAL_ALIGNMENT, "END"); DALI_TEST_EQUALS(editor.GetProperty(TextEditor::Property::HORIZONTAL_ALIGNMENT), "END", TEST_LOCATION); + // Check that the Alignment properties can be correctly set + editor.SetProperty(DevelTextEditor::Property::VERTICAL_ALIGNMENT, "BOTTOM"); + DALI_TEST_EQUALS(editor.GetProperty(DevelTextEditor::Property::VERTICAL_ALIGNMENT), "BOTTOM", TEST_LOCATION); + editor.SetProperty(DevelTextEditor::Property::VERTICAL_ALIGNMENT, "CENTER"); + DALI_TEST_EQUALS(editor.GetProperty(DevelTextEditor::Property::VERTICAL_ALIGNMENT), "CENTER", TEST_LOCATION); + editor.SetProperty(DevelTextEditor::Property::VERTICAL_ALIGNMENT, "TOP"); + DALI_TEST_EQUALS(editor.GetProperty(DevelTextEditor::Property::VERTICAL_ALIGNMENT), "TOP", TEST_LOCATION); + // Check scroll properties. editor.SetProperty(TextEditor::Property::SCROLL_THRESHOLD, 1.f); DALI_TEST_EQUALS(editor.GetProperty(TextEditor::Property::SCROLL_THRESHOLD), 1.f, Math::MACHINE_EPSILON_1000, TEST_LOCATION);