[gxml/wip/ricotz/tests] Unit Tests: Adjust document test results




commit fcca1b76f867281bda9a2c8f439a54a5eb121196
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Jul 16 19:03:43 2021 +0200

    Unit Tests: Adjust document test results

 test/DocumentTest.vala | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/test/DocumentTest.vala b/test/DocumentTest.vala
index 9008677a..b682c6c7 100644
--- a/test/DocumentTest.vala
+++ b/test/DocumentTest.vala
@@ -681,8 +681,8 @@ class DocumentTest : GLib.Object {
                                assert (dt1.node_type == DomNode.NodeType.DOCUMENT_TYPE_NODE);
                                assert (dt1.node_name == "!DOCTYPE");
                                assert (dt1.name == "svg");
-                               assert (dt1.public_id == null);
-                               assert (dt1.system_id == null);
+                               assert (dt1.public_id == null || dt1.public_id == "");
+                               assert (dt1.system_id == null || dt1.system_id == "");
                                d.append_child (dt1);
                                assert (d.child_nodes.length == 1);
                                var r = d.create_element ("svg");
@@ -745,8 +745,8 @@ class DocumentTest : GLib.Object {
                                assert (dt1.node_type == DomNode.NodeType.DOCUMENT_TYPE_NODE);
                                assert (dt1.node_name == "!DOCTYPE");
                                assert (dt1.name == "svg");
-                               assert (dt1.public_id == null);
-                               assert (dt1.system_id == null);
+                               assert (dt1.public_id == null || dt1.public_id == "");
+                               assert (dt1.system_id == null || dt1.system_id == "");
                        } catch (GLib.Error e) {
                    GLib.message ("Error: "+e.message);
                    assert_not_reached ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]