From: Adeel Kazmi Date: Fri, 11 Sep 2020 16:51:12 +0000 (+0000) Subject: Merge "Dali-Text: Keyboard Shortcuts" into devel/master X-Git-Tag: dali_1.9.30~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e79b1b333af799839c8e7b11a077f754132dc24;hp=-c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Merge "Dali-Text: Keyboard Shortcuts" into devel/master --- 6e79b1b333af799839c8e7b11a077f754132dc24 diff --combined automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp index d5cfb41,1f80374..fd1fb32 --- a/automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp @@@ -1557,6 -1557,8 +1557,6 @@@ int utcDaliTextEditorEvent02(void application.Render(); Actor layer = editor.GetChildAt( 1u ); - DALI_TEST_CHECK( layer.GetProperty< bool >( Actor::Property::IS_LAYER ) ); - DALI_TEST_EQUALS( layer.GetChildCount(), 1u, TEST_LOCATION ); // The cursor. DALI_TEST_EQUALS( stencil.GetChildCount(), 0u, TEST_LOCATION ); @@@ -2155,6 -2157,23 +2155,23 @@@ int utcDaliTextEditorEvent07(void // The text is not selected and not changed because of 'SetProperty( DevelTextEditor::Property::ENABLE_SHIFT_SELECTION, false )' DALI_TEST_EQUALS( "Hello\nld\nHello lo\nworld", editor.GetProperty( TextEditor::Property::TEXT ), TEST_LOCATION ); + // Select all Text + application.ProcessEvent( GenerateKey( "a", "", "a", KEY_A_CODE, KEY_CONTROL_MODIFIER, 0, Integration::KeyEvent::DOWN, "a", DEFAULT_DEVICE_NAME, Device::Class::NONE, Device::Subclass::NONE ) ); + + // Render and notify + application.SendNotification(); + application.Render(); + + // replace text with "c" + application.ProcessEvent( GenerateKey( "c", "", "c", KEY_C_CODE, 0, 0, Integration::KeyEvent::DOWN, "c", DEFAULT_DEVICE_NAME, Device::Class::NONE, Device::Subclass::NONE ) ); + + // Render and notify + application.SendNotification(); + application.Render(); + + //text is "c" + DALI_TEST_EQUALS( "c", editor.GetProperty( TextEditor::Property::TEXT ), TEST_LOCATION ); + END_TEST; }