Skip to content
Commit 8e2f0819 authored by Richard Schwarting's avatar Richard Schwarting
Browse files

TextTest.vala: INDEX_SIZE exceptions no longer result in null returns

parent 481bcef3
Branches
Tags
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment