[libgdata/libgdata-0-6] tests: Fix the escaping tests
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/libgdata-0-6] tests: Fix the escaping tests
- Date: Sat, 11 Dec 2010 01:04:32 +0000 (UTC)
commit 64a2294e175a2548be8981753fd4325846c08670
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Dec 11 01:00:40 2010 +0000
tests: Fix the escaping tests
gdata/tests/general.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/gdata/tests/general.c b/gdata/tests/general.c
index 70b8ae2..dbccdf0 100644
--- a/gdata/tests/general.c
+++ b/gdata/tests/general.c
@@ -1346,7 +1346,6 @@ test_gd_email_address_escaping (void)
/* Check the outputted XML is escaped properly */
xml = gdata_parsable_get_xml (GDATA_PARSABLE (email));
g_assert_cmpstr (xml, ==,
- "<?xml version='1.0' encoding='UTF-8'?>"
"<gd:email xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' "
"address='Fubar <fubar gmail com>' rel='http://schemas.google.com/g/2005#home?foo&bar' "
"label='Personal & Private' displayName='<John Smith>' primary='true'/>");
@@ -1434,7 +1433,6 @@ test_gd_im_address_escaping (void)
/* Check the outputted XML is escaped properly */
xml = gdata_parsable_get_xml (GDATA_PARSABLE (im));
g_assert_cmpstr (xml, ==,
- "<?xml version='1.0' encoding='UTF-8'?>"
"<gd:im xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' "
"address='Fubar <fubar gmail com>' protocol='http://schemas.google.com/g/2005#GOOGLE_TALK?foo&bar' "
"rel='http://schemas.google.com/g/2005#home?foo&bar' label='Personal & Private' primary='true'/>");
@@ -1634,7 +1632,6 @@ test_gd_organization_escaping (void)
/* Check the outputted XML is escaped properly */
xml = gdata_parsable_get_xml (GDATA_PARSABLE (org));
g_assert_cmpstr (xml, ==,
- "<?xml version='1.0' encoding='UTF-8'?>"
"<gd:organization xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' "
"rel='http://schemas.google.com/g/2005#work?foo&bar' label='Personal & Private' primary='true'>"
"<gd:orgName>Steptoe & Son</gd:orgName>"
@@ -1732,7 +1729,6 @@ test_gd_phone_number_escaping (void)
/* Check the outputted XML is escaped properly */
xml = gdata_parsable_get_xml (GDATA_PARSABLE (phone));
g_assert_cmpstr (xml, ==,
- "<?xml version='1.0' encoding='UTF-8'?>"
"<gd:phoneNumber xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' "
"uri='tel:+012345678954?foo&bar' rel='http://schemas.google.com/g/2005#work_mobile?foo&bar' "
"label='Personal & Private' primary='true'>0123456789 <54></gd:phoneNumber>");
@@ -1847,7 +1843,6 @@ test_gd_postal_address_escaping (void)
/* Check the outputted XML is escaped properly */
xml = gdata_parsable_get_xml (GDATA_PARSABLE (address));
g_assert_cmpstr (xml, ==,
- "<?xml version='1.0' encoding='UTF-8'?>"
"<gd:structuredPostalAddress xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' "
"rel='http://schemas.google.com/g/2005#work?foo&bar' label='Personal & Private' "
"mailClass='http://schemas.google.com/g/2005#both?foo&bar' "
@@ -1970,7 +1965,6 @@ test_gd_reminder_escaping (void)
/* Check the outputted XML is escaped properly */
xml = gdata_parsable_get_xml (GDATA_PARSABLE (reminder));
g_assert_cmpstr (xml, ==,
- "<?xml version='1.0' encoding='UTF-8'?>"
"<gd:reminder xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' "
"minutes='15' method='alert?foo&bar'/>");
g_free (xml);
@@ -2081,7 +2075,6 @@ test_gd_when_escaping (void)
/* Check the outputted XML is escaped properly */
xml = gdata_parsable_get_xml (GDATA_PARSABLE (when));
g_assert_cmpstr (xml, ==,
- "<?xml version='1.0' encoding='UTF-8'?>"
"<gd:when xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' "
"startTime='2005-06-07T01:00:00Z' valueString='Value string & stuff!'/>");
g_free (xml);
@@ -2163,7 +2156,6 @@ test_gd_where_escaping (void)
/* Check the outputted XML is escaped properly */
xml = gdata_parsable_get_xml (GDATA_PARSABLE (where));
g_assert_cmpstr (xml, ==,
- "<?xml version='1.0' encoding='UTF-8'?>"
"<gd:where xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' "
"label='<label>' rel='http://schemas.google.com/g/2005#event?foo&bar' "
"valueString='Value string & stuff!'/>");
@@ -2245,7 +2237,6 @@ test_gd_who_escaping (void)
/* Check the outputted XML is escaped properly */
xml = gdata_parsable_get_xml (GDATA_PARSABLE (who));
g_assert_cmpstr (xml, ==,
- "<?xml version='1.0' encoding='UTF-8'?>"
"<gd:who xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' "
"email='John Smith <john smith gmail com>' rel='http://schemas.google.com/g/2005#event.attendee?foo&bar' "
"valueString='Value string & stuff!'/>");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]