Skip to content
Snippets Groups Projects
Commit 3154056e authored by Tinny Ng's avatar Tinny Ng
Browse files

Test DOM Level missing functions:

1. NodeIterator::getRoot
2. TreeWalker::getRoot


git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173456 13f79535-47bb-0310-9956-ffa450edef68
parent fa8c0564
No related branches found
No related tags found
No related merge requests found
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* Copyright (c) 1999-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
......@@ -66,6 +66,11 @@
/**
* $Log$
* Revision 1.5 2002/02/04 20:12:43 tng
* Test DOM Level missing functions:
* 1. NodeIterator::getRoot
* 2. TreeWalker::getRoot
*
* Revision 1.4 2002/02/01 22:43:48 peiyongz
* sane_include
*
......@@ -314,6 +319,10 @@ int main()
nd = iter.previousNode();
TASSERT(nd == E131);
//test getRoot
TASSERT(iter.getRoot() == root);
TASSERT(iter.getRoot() != doc);
}
TESTEPILOG;
......@@ -538,6 +547,10 @@ int main()
TASSERT(tw.firstChild() == 0); //E11 rejected and no children is TEXT
TASSERT(tw.getCurrentNode() == root);
TASSERT(tw.nextNode() == 0); //E11 rejected so can't get to textNode1
//test getRoot
TASSERT(tw.getRoot() == root);
TASSERT(tw.getRoot() != doc);
}
TESTEPILOG;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment