[totem/wip/hadess/subtitle-labels-fixes] tests: And add test for language-less tracks
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/subtitle-labels-fixes] tests: And add test for language-less tracks
- Date: Mon, 18 Feb 2019 17:10:34 +0000 (UTC)
commit 66b21619e0adb2bdbe57797d578b0ca416a1cbf9
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 18 18:03:54 2019 +0100
tests: And add test for language-less tracks
src/test-totem.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/src/test-totem.c b/src/test-totem.c
index 9ff714052..fcb8a9db4 100644
--- a/src/test-totem.c
+++ b/src/test-totem.c
@@ -24,6 +24,18 @@ test_menus_lang_info (void)
{
GList *l, *ret;
+ /* No language, no codec */
+ l = NULL;
+ l = g_list_append (l, bvw_lang_info_new ("und", NULL));
+ l = g_list_append (l, bvw_lang_info_new ("und", NULL));
+
+ ret = bvw_lang_info_to_menu_labels (l, BVW_TRACK_TYPE_AUDIO);
+ g_list_free_full (l, (GDestroyNotify) bacon_video_widget_lang_info_free);
+
+ g_assert_cmpstr (g_list_nth_data (ret, 0), ==, "Audio Track #1");
+ g_assert_cmpstr (g_list_nth_data (ret, 1), ==, "Audio Track #2");
+ g_list_free_full (ret, g_free);
+
/* Same language, same codecs */
l = NULL;
l = g_list_append (l, bvw_lang_info_new ("eng", "Dolby Pro Racing"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]