[gxml] GomElement: Added tests for errors in ns attributes
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] GomElement: Added tests for errors in ns attributes
- Date: Thu, 3 Nov 2016 00:02:57 +0000 (UTC)
commit b4b776572d4407b763ea7e577eec4952e35dbed1
Author: Daniel Espinosa <esodan gmail com>
Date: Wed Nov 2 17:54:16 2016 -0600
GomElement: Added tests for errors in ns attributes
test/GomElementTest.vala | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/test/GomElementTest.vala b/test/GomElementTest.vala
index bf49b43..3048a74 100644
--- a/test/GomElementTest.vala
+++ b/test/GomElementTest.vala
@@ -131,8 +131,13 @@ class GomElementTest : GXmlTest {
elem.remove_attribute_ns ("http://www.gnome.org/GXml", "xola");
assert (elem.get_attribute_ns ("http://www.gnome.org/GXml", "xola") == null);
assert (elem.attributes.size == 2);
+ try {
+ elem.set_attribute_ns ("http://www.gnome.org/GXml",
"gxml2:xola","Mexico");
+ assert_not_reached ();
+ } catch {}
+ assert (elem.attributes.size == 2);
} catch (GLib.Error e) {
- Test.message (e.message);
+ GLib.message (e.message);
assert_not_reached ();
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]