aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2018-11-16 00:29:32 +0200
committerDaniel Hirt <hirt.danny@gmail.com>2018-11-16 00:29:32 +0200
commit70253b3112833a64519eb7fb823157f3993d4e31 (patch)
tree54698c4b0b1dbef8ce078e0b53b413bc1a4daa9e
parentevas textblock: remove white space after line-break by a next item (diff)
downloadefl-70253b3112833a64519eb7fb823157f3993d4e31.tar.gz
Evas textblock: fix test to use provided hyphen dictionarydevs/herdsman/next
This fixes the test suite so it does not rely on the system's dictionary files.
-rw-r--r--src/tests/evas/evas_test_textblock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index 29ab7110f7..ad6d806331 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -4148,6 +4148,9 @@ EFL_START_TEST(evas_textblock_hyphenation)
Evas_Coord w, fw;
const char *buf = "Automati-";
+
+ setenv("EVAS_DICTS_HYPHEN_DIR", TESTS_DIC_DIR, 1);
+
evas_object_textblock_text_markup_set(tb, buf);
evas_object_textblock_size_formatted_get(tb, &w, NULL);
evas_object_resize(tb, w, 100);
@@ -4202,8 +4205,6 @@ EFL_START_TEST(evas_textblock_hyphenation)
evas_object_textblock_text_markup_set(tb, buf);
_hyphenation_width_stress(tb, cur);
- setenv("EVAS_DICTS_HYPHEN_DIR", TESTS_DIC_DIR, 1);
-
buf = "europäi-";
evas_object_textblock_text_markup_set(tb, buf);
evas_object_textblock_size_formatted_get(tb, &w, NULL);