[gxml] * handle DomErrors in tests
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] * handle DomErrors in tests
- Date: Tue, 9 Aug 2011 01:58:03 +0000 (UTC)
commit 516a993607e30e07b7726175af2d09205ab17f5a
Author: Richard Schwarting <aquarichy gmail com>
Date: Tue Aug 9 03:22:15 2011 +0200
* handle DomErrors in tests
test/ElementTest.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/test/ElementTest.vala b/test/ElementTest.vala
index 5e0450e..2ba0dd7 100644
--- a/test/ElementTest.vala
+++ b/test/ElementTest.vala
@@ -40,6 +40,8 @@ class ElementTest : GXmlTest {
assert (node.local_name == "Potion");
assert (node.node_name == "Potion");
} catch (GXml.Dom.DomError e) {
+ GLib.warning ("%s", e.message);
+ assert (false);
}
});
Test.add_func ("/gxml/element/namespace_uri", () => {
@@ -51,6 +53,8 @@ class ElementTest : GXmlTest {
assert (node.namespace_uri == "http://hogwarts.co.uk/magic");
} catch (GXml.Dom.DomError e) {
+ GLib.warning ("%s", e.message);
+ assert (false);
}
});
Test.add_func ("/gxml/element/prefix", () => {
@@ -61,6 +65,8 @@ class ElementTest : GXmlTest {
assert (node.prefix == "magic");
} catch (GXml.Dom.DomError e) {
+ GLib.warning ("%s", e.message);
+ assert (false);
}
});
Test.add_func ("/gxml/element/local_name", () => {
@@ -71,6 +77,8 @@ class ElementTest : GXmlTest {
assert (node.local_name == "Potion");
} catch (GXml.Dom.DomError e) {
+ GLib.warning ("%s", e.message);
+ assert (false);
}
});
Test.add_func ("/gxml/element/attributes", () => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]