[grilo-plugins] apple-trailers: Fix tests



commit 7f62e8767987423a22cadf10e3d043a7149160ac
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Mon Feb 3 19:00:51 2014 +0000

    apple-trailers: Fix tests
    
    Duration come as minutes:seconds, not hours:minutes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722398

 tests/apple-trailers/test_apple_trailers.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/apple-trailers/test_apple_trailers.c b/tests/apple-trailers/test_apple_trailers.c
index 0c07b70..77f0681 100644
--- a/tests/apple-trailers/test_apple_trailers.c
+++ b/tests/apple-trailers/test_apple_trailers.c
@@ -61,17 +61,17 @@ verify (GrlData *data,
     expected[0] = g_hash_table_new (NULL, NULL);
     g_hash_table_insert (expected[0], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ID), "7501");
     g_hash_table_insert (expected[0], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_TITLE), "2 Guns");
-    g_hash_table_insert (expected[0], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_DURATION), GINT_TO_POINTER 
(11100));
+    g_hash_table_insert (expected[0], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_DURATION), GINT_TO_POINTER 
(185));
 
     expected[1] = g_hash_table_new (NULL, NULL);
     g_hash_table_insert (expected[1], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ID), "7863");
     g_hash_table_insert (expected[1], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_TITLE), "20 Feet from Stardom");
-    g_hash_table_insert (expected[1], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_DURATION), GINT_TO_POINTER 
(7980));
+    g_hash_table_insert (expected[1], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_DURATION), GINT_TO_POINTER 
(133));
 
     expected[2] = g_hash_table_new (NULL, NULL);
     g_hash_table_insert (expected[2], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ID), "6466");
     g_hash_table_insert (expected[2], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_TITLE), "300: Rise of an 
Empire");
-    g_hash_table_insert (expected[2], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_DURATION), GINT_TO_POINTER 
(9000));
+    g_hash_table_insert (expected[2], GRLKEYID_TO_POINTER (GRL_METADATA_KEY_DURATION), GINT_TO_POINTER 
(150));
   }
 
   g_assert_cmpstr (grl_data_get_string (data, GRL_METADATA_KEY_ID),


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