Evas tests: Make sure default bidi direction of empty texts is correct.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 13 Jul 2011 11:36:34 +0000 (11:36 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 13 Jul 2011 11:36:34 +0000 (11:36 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61333 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/tests/evas_test_text.c

index 56c8816..f87ee79 100644 (file)
@@ -276,6 +276,10 @@ START_TEST(evas_text_set_get)
    evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO);
    evas_font_hinting_set(evas, EVAS_FONT_HINTING_BYTECODE);
 
+   /* Direction of an empty text should be NEUTRAL */
+   evas_object_text_text_set(to, "");
+   fail_if(evas_object_text_direction_get(to) != EVAS_BIDI_DIRECTION_NEUTRAL);
+
    END_TEXT_TEST();
 }
 END_TEST