mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
check setting nil document root.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34454 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
51d002c196
commit
39c4f035ba
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ int main()
|
|||
[elem release];
|
||||
PASS([[node children] count] == 1, "set root removes other children");
|
||||
|
||||
PASS_RUNS([node setRootElement: nil], "setting a nil root is ignored");
|
||||
PASS_EQUAL([node rootElement], elem, "root element remains");
|
||||
|
||||
[arp release];
|
||||
arp = nil;
|
||||
|
||||
|
|
Loading…
Reference in a new issue