gdbus-introspection test: test escaping attributes
authorRyan Lortie <desrt@desrt.ca>
Wed, 8 Jan 2014 16:01:55 +0000 (11:01 -0500)
committerRyan Lortie <desrt@desrt.ca>
Thu, 9 Jan 2014 03:58:06 +0000 (22:58 -0500)
Make sure attribute values are properly escaped in generated XML.

https://bugzilla.gnome.org/show_bug.cgi?id=721796

gio/tests/gdbus-introspection.c

index f2b268d..b7580f3 100644 (file)
@@ -163,7 +163,9 @@ test_generate (void)
   "      <method name='Sleep'>"
   "        <arg type='i' name='timeout' direction='in'/>"
   "      </method>"
-  "      <property name='y' type='y' access='readwrite'/>"
+  "      <property name='y' type='y' access='readwrite'>"
+  "        <annotation name='needs-escaping' value='bar&lt;&gt;&apos;&quot;'/>"
+  "      </property>"
   "    </interface>"
   "  </node>";