[libgdata] [youtube] Fix keyword tests
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] [youtube] Fix keyword tests
- Date: Tue, 30 Mar 2010 23:29:22 +0000 (UTC)
commit 4e36bb3457f45828c79f9f9794307f1205d9e59d
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Mar 30 17:24:31 2010 +0100
[youtube] Fix keyword tests
gdata/tests/youtube.c | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/gdata/tests/youtube.c b/gdata/tests/youtube.c
index 6db6e9e..2f10a50 100644
--- a/gdata/tests/youtube.c
+++ b/gdata/tests/youtube.c
@@ -269,6 +269,7 @@ test_upload_simple (gconstpointer service)
GDataMediaCategory *category;
GFile *video_file;
gchar *xml;
+ const gchar * const tags[] = { "toast", "wedding", NULL };
GError *error = NULL;
video = gdata_youtube_video_new (NULL);
@@ -278,7 +279,7 @@ test_upload_simple (gconstpointer service)
category = gdata_media_category_new ("People", "http://gdata.youtube.com/schemas/2007/categories.cat", NULL);
gdata_youtube_video_set_category (video, category);
g_object_unref (category);
- gdata_youtube_video_set_keywords (video, "toast, wedding");
+ gdata_youtube_video_set_keywords (video, tags);
/* Check the XML */
xml = gdata_parsable_get_xml (GDATA_PARSABLE (video));
@@ -288,13 +289,13 @@ test_upload_simple (gconstpointer service)
"xmlns:gd='http://schemas.google.com/g/2005' "
"xmlns:yt='http://gdata.youtube.com/schemas/2007' "
"xmlns:app='http://www.w3.org/2007/app'>"
- "<title type='text'>Bad Wedding Toast</title>"
- "<media:group>"
- "<media:category scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>People</media:category>"
- "<media:title type='plain'>Bad Wedding Toast</media:title>"
- "<media:description type='plain'>I gave a bad toast at my friend's wedding.</media:description>"
- "<media:keywords>toast, wedding</media:keywords>"
- "</media:group>"
+ "<title type='text'>Bad Wedding Toast</title>"
+ "<media:group>"
+ "<media:category scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>People</media:category>"
+ "<media:title type='plain'>Bad Wedding Toast</media:title>"
+ "<media:description type='plain'>I gave a bad toast at my friend's wedding.</media:description>"
+ "<media:keywords>toast,wedding</media:keywords>"
+ "</media:group>"
"<app:control>"
"<app:draft>no</app:draft>"
"</app:control>"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]