[pango/pango2: 154/201] More test updates




commit 17b1c32c1d9e4d54566a39885075b3467fe73c16
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 20 13:54:42 2022 -0500

    More test updates

 tests/testattributes.c | 32 ++++++++++++++++----------------
 tests/testserialize.c  |  2 +-
 2 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/tests/testattributes.c b/tests/testattributes.c
index 41b0d961..12060bfa 100644
--- a/tests/testattributes.c
+++ b/tests/testattributes.c
@@ -731,7 +731,7 @@ test_list_splice (void)
   list = pango_attr_list_copy (base);
 
   other = pango_attr_list_from_string ("0 3 size 20\n"
-                                       "2 4 stretch 2\n");
+                                       "2 4 stretch condensed\n");
 
   pango_attr_list_splice (list, other, 11, 5);
 
@@ -822,7 +822,7 @@ test_list_filter (void)
   PangoAttrList *out;
 
   list = pango_attr_list_from_string ("0 -1 size 10\n"
-                                      "10 20 stretch 2\n"
+                                      "10 20 stretch condensed\n"
                                       "20 -1 weight 700\n");
 
   out = pango_attr_list_filter (list, never_true, NULL);
@@ -956,7 +956,7 @@ test_iter_get_font (void)
   pango_attr_list_insert (list, attr);
   attr = attribute_from_string ("20 -1 rise 100");
   pango_attr_list_insert (list, attr);
-  attr = attribute_from_string ("20 -1 fallback 0");
+  attr = attribute_from_string ("20 -1 fallback false");
   pango_attr_list_insert (list, attr);
 
   iter = pango_attr_list_get_iterator (list);
@@ -1015,7 +1015,7 @@ test_iter_get_attrs (void)
   pango_attr_list_insert (list, attr);
   attr = attribute_from_string ("20 -1 rise 100");
   pango_attr_list_insert (list, attr);
-  attr = attribute_from_string ("20 -1 fallback 0");
+  attr = attribute_from_string ("20 -1 fallback false");
   pango_attr_list_insert (list, attr);
 
   iter = pango_attr_list_get_iterator (list);
@@ -1025,21 +1025,21 @@ test_iter_get_attrs (void)
   pango_attr_iterator_next (iter);
   assert_attr_iterator (iter, "0 -1 size 10240\n"
                               "0 -1 family \"Times\"\n"
-                              "10 30 stretch 2\n"
+                              "10 30 stretch condensed\n"
                               "10 20 language ja-jp\n");
 
   pango_attr_iterator_next (iter);
   assert_attr_iterator (iter, "0 -1 size 10240\n"
                               "0 -1 family \"Times\"\n"
-                              "10 30 stretch 2\n"
+                              "10 30 stretch condensed\n"
                               "20 -1 rise 100\n"
-                              "20 -1 fallback 0\n");
+                              "20 -1 fallback false\n");
 
   pango_attr_iterator_next (iter);
   assert_attr_iterator (iter, "0 -1 size 10240\n"
                               "0 -1 family \"Times\"\n"
                               "20 -1 rise 100\n"
-                              "20 -1 fallback 0\n");
+                              "20 -1 fallback false\n");
 
   pango_attr_iterator_next (iter);
   g_assert_null (pango_attr_iterator_get_attrs (iter));
@@ -1056,8 +1056,8 @@ test_list_update (void)
   list = pango_attr_list_from_string ("0 200 rise 100\n"
                                       "5 15 family \"Times\"\n"
                                       "10 11 size 10240\n"
-                                      "11 100 fallback 0\n"
-                                      "30 60 stretch 2\n");
+                                      "11 100 fallback false\n"
+                                      "30 60 stretch condensed\n");
 
   pango_attr_list_update (list, 8, 10, 20);
 
@@ -1176,8 +1176,8 @@ test_insert (void)
   list = pango_attr_list_from_string ("0 200 rise 100\n"
                                       "5 15 family \"Times\"\n"
                                       "10 11 size 10240\n"
-                                      "11 100 fallback 0\n"
-                                      "30 60 stretch 2\n");
+                                      "11 100 fallback false\n"
+                                      "30 60 stretch condensed\n");
 
   attr = attribute_from_string ("10 25 family \"Times\"");
   pango_attr_list_change (list, attr);
@@ -1210,10 +1210,10 @@ test_insert2 (void)
   list = pango_attr_list_from_string ("0 200 rise 100\n"
                                       "5 15 family \"Times\"\n"
                                       "10 11 size 10240\n"
-                                      "11 100 fallback 0\n"
+                                      "11 100 fallback false\n"
                                       "20 30 family \"Times\"\n"
                                       "30 40 family \"Futura\"\n"
-                                      "30 60 stretch 2\n");
+                                      "30 60 stretch condensed\n");
 
   attr = attribute_from_string ("10 35 family \"Times\"");
   pango_attr_list_change (list, attr);
@@ -1246,8 +1246,8 @@ test_merge (void)
   list = pango_attr_list_from_string ("0 200 rise 100\n"
                                       "5 15 family \"Times\"\n"
                                       "10 11 size 10240\n"
-                                      "11 100 fallback 0\n"
-                                      "30 60 stretch 2\n");
+                                      "11 100 fallback false\n"
+                                      "30 60 stretch condensed\n");
 
   list2 = pango_attr_list_from_string ("11 13 size 10240\n"
                                        "13 15 size 11264\n"
diff --git a/tests/testserialize.c b/tests/testserialize.c
index 8f62cfc8..58d20f78 100644
--- a/tests/testserialize.c
+++ b/tests/testserialize.c
@@ -36,7 +36,7 @@ test_serialize_attr_list (void)
     "0 100 font-desc \"Cantarell, Sans, Italic Ultra-Light 64\", 10 11 weight 100",
     "0 -1 size 10",
     "0 1 weight 700, 2 4 weight book",
-    "0 200 rise 100\n5 15 family \"Times\"\n10 11 size 10240\n11 100 fallback 0\n30 60 stretch 2\n",
+    "0 200 rise 100\n5 15 family \"Times\"\n10 11 size 10240\n11 100 fallback false\n30 60 stretch 
condensed\n",
     ""
   };
   const char *roundtripped[] = {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]