[glom/glom-1-22] Update a test for the newer translations.



commit c72a33bf408545641fce433a5c5144d04366b6f3
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Nov 11 07:48:26 2012 +0100

    Update a test for the newer translations.
    
            * tests/test_document_load_translations.cc: Increase the number
        of expected translation locales and adapt to us having a
        (mostly useless) en_GB translation.

 ChangeLog                                |    8 ++++++++
 tests/test_document_load_translations.cc |    3 +--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b0db5ac..0b8773b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-11-10  Murray Cumming  <murrayc murrayc com>
+
+        Update a test for the newer translations.
+
+        * tests/test_document_load_translations.cc: Increase the number
+       of expected translation locales and adapt to us having a 
+       (mostly useless) en_GB translation.
+
 2013-02-25  Murray Cumming  <murrayc murrayc com>
 
         Fix the build on Ubuntu Raring.
diff --git a/tests/test_document_load_translations.cc b/tests/test_document_load_translations.cc
index b29addb..17c54e0 100644
--- a/tests/test_document_load_translations.cc
+++ b/tests/test_document_load_translations.cc
@@ -196,7 +196,6 @@ void check_title(const T_Item& item, const char* title_en, const char* title_de)
     //Check that fallbacks do not happen when we don't want them:
     g_assert( item->get_title_translation(Glib::ustring(), false) == Glib::ustring() );
     g_assert( item->get_title_translation("en_US", false) == Glib::ustring() );
-    g_assert( item->get_title_translation("en_GB", false) == Glib::ustring() );
     g_assert( item->get_title_translation("de_AU", false) == Glib::ustring() );
   }
 }
@@ -243,7 +242,7 @@ int main()
   }
 
   const std::vector<Glib::ustring> locales = document.get_translation_available_locales();
-  g_assert(locales.size() == 9);
+  g_assert(locales.size() == 12);
   g_assert(contains(locales, "de"));
 
   const std::vector<Glib::ustring> table_names = document.get_table_names();


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