diff --git a/test/TextTest.vala b/test/TextTest.vala index b24290c9c50c46a8fc516bdea8bd75d7ba477178..bfd82dd63af4a88b39e37320c44a5ab36dfe752d 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");