From 8e2f0819ead34e9fa3304b56ac73fa4a8c4f1cf2 Mon Sep 17 00:00:00 2001 From: Richard Schwarting Date: Sun, 28 Jul 2013 01:30:12 -0400 Subject: [PATCH] TextTest.vala: INDEX_SIZE exceptions no longer result in null returns --- test/TextTest.vala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/TextTest.vala b/test/TextTest.vala index b24290c9..bfd82dd6 100644 --- a/test/TextTest.vala +++ b/test/TextTest.vala @@ -33,11 +33,13 @@ class TextTest : GXmlTest { assert (txt2.node_value == "Const"); txt1 = txt2.split_text (-2); - assert (txt1 == null); + test_error (DomException.INDEX_SIZE); + assert (txt1.node_value == ""); // TODO: decide if we want to return null instead assert (txt2.node_value == "Const"); txt1 = txt2.split_text (10); - assert (txt1 == null); + test_error (DomException.INDEX_SIZE); + assert (txt1.node_value == ""); // TODO: decide if we want to return null instead assert (txt2.node_value == "Const"); -- GitLab