Skip to content
GitLab
Explore
Sign in
Commit
8e2f0819
authored
11 years ago
by
Richard Schwarting
Browse files
Options
Downloads
Patches
Plain Diff
TextTest.vala: INDEX_SIZE exceptions no longer result in null returns
parent
481bcef3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/TextTest.vala
+4
-2
4 additions, 2 deletions
test/TextTest.vala
with
4 additions
and
2 deletions
test/TextTest.vala
+
4
−
2
View file @
8e2f0819
...
...
@@ -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"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment