[glib] gdbus-introspection test: test escaping attributes
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdbus-introspection test: test escaping attributes
- Date: Thu, 9 Jan 2014 03:58:23 +0000 (UTC)
commit 8bc63b0ef03ee431eeaaf12191cb2cf983ee7de2
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Jan 8 11:01:55 2014 -0500
gdbus-introspection test: test escaping attributes
Make sure attribute values are properly escaped in generated XML.
https://bugzilla.gnome.org/show_bug.cgi?id=721796
gio/tests/gdbus-introspection.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/gdbus-introspection.c b/gio/tests/gdbus-introspection.c
index f2b268d..b7580f3 100644
--- a/gio/tests/gdbus-introspection.c
+++ b/gio/tests/gdbus-introspection.c
@@ -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<>'"'/>"
+ " </property>"
" </interface>"
" </node>";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]