From 85e07c939de163b660ffb8eb48d23b329e5ef8e8 Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Tue, 7 Aug 2012 13:35:19 +0300 Subject: [PATCH] tests: Update tests/playlist.c for title --- tests/playlist.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/playlist.c b/tests/playlist.c index 70faca9..620eb99 100644 --- a/tests/playlist.c +++ b/tests/playlist.c @@ -63,6 +63,10 @@ static void test_playlist() g_assert_cmpint(qerr(q), ==, QUVI_OK); g_assert_cmpint(strlen(s), >, 0); + quvi_playlist_get(qp, QUVI_PLAYLIST_PROPERTY_TITLE, &s); + g_assert_cmpint(qerr(q), ==, QUVI_OK); + g_assert_cmpstr(s, ==, "Destroyed"); + quvi_playlist_get(qp, QUVI_PLAYLIST_PROPERTY_ID, &s); g_assert_cmpint(qerr(q), ==, QUVI_OK); g_assert_cmpstr(s, ==, "thelittleidiot_destroyed"); @@ -143,6 +147,10 @@ static void test_playlist_short() g_assert_cmpint(qerr(q), ==, QUVI_OK); g_assert_cmpint(strlen(s), >, 0); + quvi_playlist_get(qp, QUVI_PLAYLIST_PROPERTY_TITLE, &s); + g_assert_cmpint(qerr(q), ==, QUVI_OK); + g_assert_cmpstr(s, ==, "Destroyed"); + quvi_playlist_get(qp, QUVI_PLAYLIST_PROPERTY_ID, &s); g_assert_cmpint(qerr(q), ==, QUVI_OK); g_assert_cmpstr(s, ==, "thelittleidiot_destroyed"); @@ -191,6 +199,10 @@ static void test_playlist_nosupport() g_assert_cmpint(qerr(q), ==, QUVI_OK); g_assert_cmpstr(s, ==, ""); + quvi_playlist_get(qp, QUVI_PLAYLIST_PROPERTY_TITLE, &s); + g_assert_cmpint(qerr(q), ==, QUVI_OK); + g_assert_cmpstr(s, ==, ""); + quvi_playlist_get(qp, QUVI_PLAYLIST_PROPERTY_ID, &s); g_assert_cmpint(qerr(q), ==, QUVI_OK); g_assert_cmpstr(s, ==, ""); -- 2.11.4.GIT